Ahoj, lamicka pokorne prosi o radu:
udelal jsem si (rucne) nasledujici raid+lvm
# fdisk -l
Disk /dev/sdb: 36.4 GB, 36364615680 bytes
255 heads, 63 sectors/track, 4421 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000c1228
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 33 265041 83 Linux
/dev/sdb2 34 425 3148740 82 Linux swap / Solaris
/dev/sdb3 426 4421 32097870 f W95 Ext'd (LBA)
/dev/sdb5 426 1469 8385898+ 83 Linux
/dev/sdb6 1470 2253 6297448+ 83 Linux
/dev/sdb7 2254 3037 6297448+ 83 Linux
/dev/sdb8 3038 3430 3156741 83 Linux
Disk /dev/sdc: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x61d6cbd5
Device Boot Start End Blocks Id System
/dev/sdc1 1 60801 488384001 fd Linux raid autodetect
Disk /dev/sdd: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xf080e997
Device Boot Start End Blocks Id System
/dev/sdd1 1 60801 488384001 fd Linux raid autodetect
Disk /dev/md0: 500.1 GB, 500105150464 bytes
2 heads, 4 sectors/track, 122095984 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk identifier: 0x00000000
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/dm-0: 53.7 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000
Disk /dev/dm-0 doesn't contain a valid partition table
# mdadm --detail /dev/md0
/dev/md0:
Version : 0.90
Creation Time : Tue Mar 6 04:24:14 2012
Raid Level : raid1
Array Size : 488383936 (465.76 GiB 500.11 GB)
Used Dev Size : 488383936 (465.76 GiB 500.11 GB)
Raid Devices : 2
Total Devices : 2
Preferred Minor : 0
Persistence : Superblock is persistent
Update Time : Tue Mar 6 07:47:18 2012
State : active
Active Devices : 2
Working Devices : 2
Failed Devices : 0
Spare Devices : 0
UUID : 7d2befc4:a4f37491:7012a1f4:1ab82073 (local to host linux-1unw)
Events : 0.19
Number Major Minor RaidDevice State
0 8 33 0 active sync /dev/sdc1
1 8 49 1 active sync /dev/sdd1
# lvm vgdisplay -v
Finding all volume groups
Finding volume group "sata_raid"
--- Volume group ---
VG Name sata_raid
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size 465.76 GB
PE Size 4.00 MB
Total PE 119234
Alloc PE / Size 12800 / 50.00 GB
Free PE / Size 106434 / 415.76 GB
VG UUID ar01Fv-7sKK-zkOo-0rez-n6z3-mzac-F0IXsA
--- Logical volume ---
LV Name /dev/sata_raid/cifs0
VG Name sata_raid
LV UUID uopoG1-AEiS-Mjtq-0K2h-AeDt-QVJi-S5MDHo
LV Write Access read/write
LV Status available
# open 1
LV Size 50.00 GB
Current LE 12800
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
--- Physical volumes ---
PV Name /dev/md0
PV UUID 9QYSGH-dqpT-qaTx-C3cV-JyS3-8nTb-bPAgUW
PV Status allocatable
Total PE / Free PE 119234 / 106434
^^ prosim vsimnete si, ze misto klasickeho Linux oddilu (id 83 v fdisk `t' menu) tam mam:
/dev/sdc1 1 60801 488384001 fd Linux raid autodetect
/dev/sdd1 1 60801 488384001 fd Linux raid autodetect
problem: nedari se mi zprovoznit aby to detekovalo ten raid podle oddilu *bez etc/mdadm.conf .. rebuildnul jsem kvuli tomu initrd a pridal featury dm a md (device mapper pro lvm a mdraid). Kdyz mam vytvorenej mdadm.conf (mdadm --detail --scan >/etc/mdadm.conf) tak vse po bootu funguje. Kdyz ne tak se nevytvori raid a neprectou se VG.
Zajimave je, ze i bez mdadm.conf normalne ``mdadm --assemble --scan'' projde v pohode a md0 se vytvori ..
Zda-se tedy, ze kernel naprosto ignoruje detekci mdraid. Ten je nakonfigurovan spravne vc lvm.
diky, ntz