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
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
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.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.