Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

moving /home out of the rootvg

Status
Not open for further replies.

grimwyre

MIS
Jan 31, 2002
68
GB
Can anyone give me any reasons not to move the /home (hd1) file system out of the rootvg and onto a different volume group?

Assuming that there is no problem how would you move the filesystem?
 
grimwyre,

There is no issue in doing this, On customer sites which used NFS servers I have moved /home onto external disks without any problem. The best way forward is as follow:

- Create a newlv and filesystem the same size as /home i.e.:

/dev/homelv /home_new

- Copy the data from /home to /home_new

cd /home

find . -print |cpio -pudvm /home_new

- Check that the directory sizes are almost identical - there may be a slight difference and compare the number of files, directories and links i.e.:

In both directories /home and /home_new

find . -type f |wc -l
find . -type d |wc -l
find . -type l |wc -l
du -sk

- Once you are happy unmount both filesystems:

rename /home to /home_old - use chfs to update the LVCB do not just hack /etc/filesystems

chfs -m /home_old /home

chfs -m /home /home_new

- Now mount up /home

mount /home

- If you have any client NFS mounting /home you will need to unmount/remount the filesystem as the volume group major number is now different and the mount will be stale. Otherwise thats it....

Best of luck

PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 

I would definately use the 'cplv' command. Ten times easier.
Remember to unmount /home first.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
hi,

you can do it , but you need to take into considerations , since /home gets installed as part of the OS install , if you do an upgrade would it require /home to be in rootvg
my guess is not , also try mksysb

Steps you would take , since you will be moving /home
to a new volume group, :-

1. Create your new volume group
2. backup /home
3. umount /home
4. remove /home :- rmfs /home
5. Create /home in new volume group
6. restore /home


HTH
 
In HACMP-Clusters /home (or better: the content of /home) must sometimes be moved outside the rootvg into shared volumes on shared filesystems. Just build a symbolic link /home -> /home_in_shared_volume_group, when the link /home remains in rootvg while the content is placed on a different shared FS.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top