Re: move a lv / fs to another vg

From: Andy (gk15374_at_yahoo.com)
Date: 04/05/04


Date: 5 Apr 2004 04:59:13 -0700

aeh@quest.cc.purdue.edu (Dale Talcott) wrote in message news:<aeh.1080915411@quest.cc.purdue.edu>...
> "Bert Moos" <bert.moos@hotmail.com> writes:
>
> >within an existing vg (uservg1) i have a lv (/dev/lv01) which contains only
> >one filesystem (/data/app/zone1). i'd like to move this lv (/dev/lv01) with
> >its filesystem (/data/app/zone1) to a new vg (uservg2). this new vg already
> >exists and is empty. how can i move the lv with the filesystems and its data
> >to the new vg.
>
> You can unmount the file system, use cplv to copy its logical volume (lv01)
> to a new LV inside uservg2, edit /etc/filesystems to refer to the new
> LV, and remount the file system.
>
> Double check with the man pages, but I think the steps would be:
>
> umount /data/app/zone1
> cplv -v uservg2 -y newlv01 lv01
> vi /etc/filesystems # change /dev/lv01 to /dev/newlv01

after cplv I would suggest run following command (instead modifying
/etc/filesystems):

chfs -a dev=/dev/newlv01 -a log=/dev/"jfslogonnewvg" /data/app/zone1

(VGDAs and ODM will be then updated)

reg.



Relevant Pages

  • Re: Using a file-backed swap via md0 results in panic on reboot..
    ... unmount filesystems. ... sometimes we want to first remove swap devices. ... In your case you have swap device residing on a file system. ...
    (freebsd-arch)
  • Re: [UNIONFS] 00/42 Unionfs and related patches review
    ... data changes will happen on a lower inode all within one second and not be ... lowerfilesystems are able to be local filesystems. ... saves on inodes and pages by having BOTH the upper and lower dentry point to ... dentry of the upper file system now points to an inode ...
    (Linux-Kernel)
  • Re: disklabel differences FreeBSD, DragonFly
    ... and most of those qualify as needing to "run commands that workon ... filesystems on the two parts with different arguments ...". ... in root filesystem increases robustness if you have a power outage. ... true that converted me to the idea that reducing the file system count ...
    (freebsd-hackers)
  • question about file system rights
    ... There is this file system right thing bugging me for quite some time ... The problem is mainly with the eXecute right, ... How I get these directories and files with the inappropriate rights is ... different filesystems on my firewire disk and the CF ...
    (comp.unix.bsd.freebsd.misc)
  • Re: FC6 mount ntfs-3g problem.
    ... normally the users option given in fstab will let anyone mount the device (only root or the user who mounted it can then unmount it), however FUSE filesystems apparently need setuid style permissions to operate like this. ... user Allow an ordinary user to mount the file system. ... If any user should be able to unmount, then use users instead of user in the fstab line. ...
    (Fedora)