Operating System - HP-UX
1753948 Members
7613 Online
108811 Solutions
New Discussion юеВ

Moving /home and /opt out of vg00

 
SOLVED
Go to solution
Eduardo Gaxiola
New Member

Moving /home and /opt out of vg00

I want to move /home and /opt out of the root volume group (vg00) to vg01 or vg02.

What would be the best course of action?

Any comments would be higly appreciated!

e-gaxiola
Life is a journey, enjoy it!
4 REPLIES 4
Emil Velez
Honored Contributor

Re: Moving /home and /opt out of vg00


Create new logical volumes
mount it at /newhome

cd /home
find . | cpio -pudmvl /newhome
umount /newhome
umount /home
vi /etc/fstab
mount -a
Venu_2
Regular Advisor
Solution

Re: Moving /home and /opt out of vg00

Hi,

I dont think moving var to another disk should be a health talk as this is where all the system logs and tmp is available, in case the vg/disk containing var doesnot come up it would be more complex.

Any way if have to do this i'll do this way

lvcreate -n newhome /dev/vg01
newfs -F vxfs/hfs /dev/vg01/rnewhome
mount /dev/vg01/newhome /newhome

lvcreate -n newvar /dev/vg01
newfs -F vxfs/hfs /dev/vg01/rnewvar
mount /dev/vg01/newvar /newvar

cd /home
find . -depth | cpio -pvd /newhome
cd /var
find . -depth | cpio -pvd /newvar

reboot the system in maitance mode
break autoboot process
interact with IPL

ISL>hpux -lm

#cp /etc/fstab /etc/fstab.old
#vi /etc/fstab
change the entries corresponding to /var /home

boot normally.

Goodluck

venu
Alan Riggs
Honored Contributor

Re: Moving /home and /opt out of vg00

The procedures above will work, but please choose your cpio flags carefully. I personally use "cpio -pdumx" out of long habit.

u is unnecessary in the case of a fresh filesystem, but does not harm anything.

x is required if you are copying device files -- again not required in this case but not harmful and I prefer to use the same procedure no matter which directories I am working with.

p,d are absolutely required.

m should be used unless you wish to have the access times on all files changed.
Dan_4
Advisor

Re: Moving /home and /opt out of vg00

I'm not sure how we went from moving /opt and /home to moving /var, but I wanted to put my two cents in.

Moving /var out of vg00 is NOT supported or recommended by Hewlett-Packard. The software and patch installer files are there, and SD-UX (swinstall) gets very touchy about where things are.