linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "a a" <jan.corba@gmail.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] lvconvert and create mirror for root fs
Date: Fri, 15 Dec 2006 17:36:13 +0100	[thread overview]
Message-ID: <d0438a1f0612150836x55199571x14d815c78a7b4a11@mail.gmail.com> (raw)

[-- 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 --]

             reply	other threads:[~2006-12-15 16:36 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-12-15 16:36 a a [this message]
2006-12-15 18:20 ` [linux-lvm] lvconvert and create mirror for root fs Alasdair G Kergon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d0438a1f0612150836x55199571x14d815c78a7b4a11@mail.gmail.com \
    --to=jan.corba@gmail.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).