linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvconvert and create mirror for root fs
@ 2006-12-15 16:36 a a
  2006-12-15 18:20 ` Alasdair G Kergon
  0 siblings, 1 reply; 2+ messages in thread
From: a a @ 2006-12-15 16:36 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 2460 bytes --]

Hi,
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

[-- Attachment #2: Type: text/html, Size: 4259 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] lvconvert and create mirror for root fs
  2006-12-15 16:36 [linux-lvm] lvconvert and create mirror for root fs a a
@ 2006-12-15 18:20 ` Alasdair G Kergon
  0 siblings, 0 replies; 2+ messages in thread
From: Alasdair G Kergon @ 2006-12-15 18:20 UTC (permalink / raw)
  To: LVM general discussion and development

On Fri, Dec 15, 2006 at 05:36:13PM +0100, a a wrote:
> rename("/etc/lvm/metadata/vg00.tmp", "/etc/lvm/metadata/vg00") = 0

> Can you tell me where is problem?

You keep your metadata on a filesystem mounted on the volume concerned?
That can never work.  See doc/example.conf.

    # List of directories holding live copies of text format metadata.
    # These directories must not be on logical volumes!

Alasdair
-- 
agk@redhat.com

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-12-15 18:20 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-12-15 16:36 [linux-lvm] lvconvert and create mirror for root fs a a
2006-12-15 18:20 ` Alasdair G Kergon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).