On Mon, 7 Jan 2013, Mircea MITU wrote: > Salut si LMA
Salut. > am un nas $subj defect cu 4 hdd-uri sanatoase ce as vrea sa le accesez > intr-un linux (debian 6). > > Din cate vad hdd-urile sunt o combinatie de (fake) raid cu lvm si probabil > inca ceva. > > Ce am pana acum: > - sda+sdd lvm (si par fakeraid) > - sdb si sdc nu stiu ce sunt > - *aparent* am ori: > 1. un raid 1 intre sda si sdd si lvm cu acest raid1 + sdb + sdc, sau > 2. raid1 (sda+sdd) si raid0 (sdb+sdc) si apoi lvm peste ele, sau > 3. altcevat (Nu am lucrat cu acel tip de NAS.) Compara primele blocuri din sdb si sdc ca sa vezi daca sint la fel. Eu suspectez ca ai 'linear' intre sda+sdb si tot linear intre sdd+sdc. Si, apoi, RAID 1 peste. Ordinea pare ciudata, dar... Nu stii cit spatiu era disponibil inainte de buseala? Daca ma uit la size-ul raportat de LVM, pare ca e peste 500G+500G. Ciudat. > Cineva a mai avut de a face cu astfel de echipamente si stie cum se pot monta > intr-un linux? > Multumesc in avans > > > root@debian:~# fdisk -l|grep sd > Disk /dev/sda doesn't contain a valid partition table > Disk /dev/sdc doesn't contain a valid partition table > Disk /dev/sdb doesn't contain a valid partition table > Disk /dev/sdd doesn't contain a valid partition table > Disk /dev/dm-0 doesn't contain a valid partition table > Disk /dev/sda: 500.1 GB, 500106780160 bytes > Disk /dev/sdc: 500.1 GB, 500107862016 bytes > Disk /dev/sdb: 500.1 GB, 500107862016 bytes > Disk /dev/sdd: 500.1 GB, 500106780160 bytes > > > root@debian:~# pvck /dev/sd{a..d} > Found label on /dev/sda, sector 1, type=LVM2 001 > Found text metadata area: offset=4096, size=192512 > Could not find LVM label on /dev/sdb > Could not find LVM label on /dev/sdc > Found duplicate PV oMzVfHR636T5rd11ApNhxTwzqyRzbuNH: using /dev/sdd not > /dev/sda > Found label on /dev/sdd, sector 1, type=LVM2 001 > Found text metadata area: offset=4096, size=192512 > > # pvdisplay > Found duplicate PV oMzVfHR636T5rd11ApNhxTwzqyRzbuNH: using /dev/sdd not > /dev/sda > --- Physical volume --- > PV Name /dev/sdd > VG Name vg001 > PV Size 1.36 TiB / not usable 3.47 MiB > Allocatable yes > PE Size 4.00 MiB > Total PE 357627 > Free PE 35859 > Allocated PE 321768 > PV UUID oMzVfH-R636-T5rd-11Ap-NhxT-wzqy-RzbuNH > > root@debian:~# lvdisplay > Found duplicate PV oMzVfHR636T5rd11ApNhxTwzqyRzbuNH: using /dev/sdd not > /dev/sda > --- Logical volume --- > LV Name /dev/vg001/nsswap > VG Name vg001 > LV UUID EoNMa7-J0uh-z036-Unj1-EoNb-aLTU-p4Akte > LV Write Access read/write > LV Status available > # open 0 > LV Size 512.00 MiB > Current LE 128 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 254:0 > > --- Logical volume --- > LV Name /dev/vg001/lv001 > VG Name vg001 > LV UUID gb9lHu-JR1K-zgG7-eOAV-YtrK-vu1J-bYRE8v > LV Write Access read/write > LV Status suspended > # open 0 > LV Size 1.23 TiB > Current LE 321640 > Segments 1 > Allocation inherit > Read ahead sectors auto > - currently set to 256 > Block device 254:1 > > root@debian:~# lvchange -ay /dev/vg001/lv001 > Found duplicate PV oMzVfHR636T5rd11ApNhxTwzqyRzbuNH: using /dev/sdd not > /dev/sda > device-mapper: resume ioctl failed: Invalid argument > Unable to resume vg001-lv001 (254:1) > > > _______________________________________________ > RLUG mailing list > RLUG@lists.lug.ro > http://lists.lug.ro/mailman/listinfo/rlug > -- Catalin(ux) M. BOIE http://kernel.embedromix.ro/ _______________________________________________ RLUG mailing list RLUG@lists.lug.ro http://lists.lug.ro/mailman/listinfo/rlug