I tried create mirror for root fs - lvol1.
dunco:~# lvs
LV VG Attr LSize Origin Snap% Move Log Copy%
lvol1 vg00 -wi-ao 200.00M
lvol2 vg00 -wi-ao 1.00G
lvol3 vg00 -wi-ao 644.00M
lvol4 vg00 -wi-ao 400.00M
lvol5 vg00 -wi-ao 100.00M
lvol6 vg00 -wi-ao 1.00G
lvol7 vg00 mwi-a- 52.00M 46.15
dunco:~#
I ran lvconvert -dv -m 1 --corelog /dev/vg00/lvol1 /dev/hda2
Checking for existing volume group "vg00"
Archiving volume group "vg00" metadata (seqno 40).
Creating logical volume lvol1_mimage_0
Creating logical volume lvol1_mimage_1
Creating volume group backup "/etc/lvm/backup/vg00" (seqno 41).
Found volume group "vg00"
Found volume group "vg00"
Creating vg00-lvol1_mimage_0
Loading vg00-lvol1_mimage_0 table
Resuming (253:7)
Creating vg00-lvol1_mimage_1
Loading vg00-lvol1_mimage_1 table
Resuming (253:8)
Loading vg00-lvol1 table
Suspending vg00-lvol1 (253:0)
And after that lvconvert hanging. I used strace and I found that command hanging on fsync
...
write(2, "Suspending vg00-lvol1 (253:0)", 29Suspending vg00-lvol1 (253:0)) = 29
write(2, "\n", 1
) = 1
ioctl(3, DM_DEV_SUSPEND, 0x8116918) = 0
rename("/etc/lvm/metadata/vg00.tmp", "/etc/lvm/metadata/vg00") = 0
stat64("/etc/lvm/metadata/vg00.tmp", 0xbf9f8464) = -1 ENOENT (No such file or directory)
open("/etc/lvm/metadata", O_RDONLY|O_LARGEFILE) = 7
fsync(7
I tried to create mirror on another lvols and I can do it.
OS : Debian etch
Disk /dev/hda: 20.0 GB, 20020396032 bytes
255 heads, 63 sectors/track, 2434 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hda1 1 8 64228+ fd Linux raid autodetect
/dev/hda2 9 2434 19486845 8e Linux LVM
Disk /dev/hdc: 30.0 GB, 30020272128 bytes
255 heads, 63 sectors/track, 3649 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/hdc1 * 1 7 56196 fd Linux raid autodetect
/dev/hdc2 8 3649 29254365 8e Linux LVM
dunco:/usr/src/LVM2.2.02.17# lvdisplay --version
LVM version: 2.02.17 (2006-12-14)
Library version: 1.02.13 (2006-11-28)
Driver version: 4.7.0
dunco:/usr/src/LVM2.2.02.17#
Can you tell me where is problem?
Thanks,
John
_______________________________________________ linux-lvm mailing list linux-lvm@redhat.com https://www.redhat.com/mailman/listinfo/linux-lvm read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/