LVM and VxVM

Removing FS and space re-allocation

 
SOLVED
Go to solution
myr001
Advisor

Removing FS and space re-allocation

Hi,

Planning to remove two filesystems/LVs each having one PV and residing on same VG (VG1). Out of two PVs one need to be tranfer to another VG (VG2) while the remaining one will be distributed among multiple LVs within the same VG (VG1).

All VGs are part of a cluster.
Each PV is of 150GB (/dev/dsk/c0t0d1 & /dev/dsk/c0t0d2).

We assume following sequence of steps will be required:

1) lvremove /dev/vg1/lv4 (fs4)
2) lvremove /dev/vg1/lv5 (fs5)

3) vgreduce /dev/vg1 /dev/dsk/c0t0d1
4) vgextend /dev/vg2 /dev/dsk/c0t0d1

5) lvextend -L 50000 /dev/vg1/lv1 /dev/dsk/c0t0d2
6) fsadm -F vxfs -b 51200000 /fs1

7) lvextend -L 50000 /dev/vg1/lv2 /dev/dsk/c0t0d2
8) fsadm -F vxfs -b 51200000 /fs2

9) lvextend -L 50000 /dev/vg1/lv3 /dev/dsk/c0t0d2
10) fsadm -F vxfs -b 51200000 /fs3

11) lvextend -L 150000 /dev/vg2/lv1 /dev/dsk/c0t0d1
12) fsadm -F vxfs /fs6

13) vgimport # Node 1
14) vgexport # Node 2


Please confirm if all the above steps are correct and in proper sequence.

Thanks.
5 REPLIES 5
Steven E. Protter
Exalted Contributor
Solution

Re: Removing FS and space re-allocation

Shalom,

Your plan looks reasonable up until steps 13 and 14.

You need to specifiy a volume group to export on step 14.

If any of this data is critical, back it up before you start.

If you run into any error messages post them up here and you'll get good help.

SEP

Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
jaivinder
Frequent Advisor

Re: Removing FS and space re-allocation

Hi,

According to me your plan is good and do not need any changes leaving point no 13& 14.
While importing vg's give vg name also
myr001
Advisor

Re: Removing FS and space re-allocation

Thanks guys.

I will let you the outcome as soon as I perform all these steps.

BTW, how can I check the FS type if it is not listed in "/etc/fstab" file?

Mridul Shrivastava
Honored Contributor

Re: Removing FS and space re-allocation

execute fstyp /dev//
Time has a wonderful way of weeding out the trivial
myr001
Advisor

Re: Removing FS and space re-allocation

Thanks to all participants.

I think we will not be able to perform these steps in next few days. Anyway, I have distributed the points.