Re: dm-mirror/kmirrord oops

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jun 27, 2005 at 09:07:09AM +0200, Cyril Chaboisseau wrote:
> I just had a big problem lately when I wanted to migrate my PV from one
> disk to another
> 
> to do so, I first created a LVM partition on my second disk,
> 
> then I initialized the partition (pvcreate)
> # pvcreate /dev/sdb1
> 
> I extended my vg to the newly PV
> # vgextend vg /dev/sdb1
> 
> and then I tried to move the data from the old PV to the newly created
> # pvmove -v /dev/sda4 /dev/sdb1
> 
> everything went fine for maybe half an hour, but at 21% it froze

Is your root filesystem mounted on an LV in 'vg' ?

As far as I know, this is a known problem - you cannot pvmove your root
filesystem.

But on another note; you should not have your root (or at least /etc)
filesystem on LVM - because the LVM backup/recovery files are written
there, and if LVM screws up completely, you'll then have no way of
recovering (since the recovery files you need to get LVM going are
stored via. LVM).

I always create a partition for / and keep /boot, /sbin, /lib and /etc
there.

Then, I create another partition and make it a PV, put /var, /usr and
everything else on LVM.

That way I can pvmove anything without running into the bug you
(probably) saw, and I will be able to recover the LVM in case it screws
up (which I haven't seen yet).

-- 

 / jakob

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux