Moving home directory to new partition
We need to move our home directory to a new partition. I have found a large number of resources but not sure if there are anything specific to WHM we should be aware of?
- ]
- Create new partition with temp mount point
- rsync current /home to new temp directory
- modify fstab to point to new partition and uncommenting the original fstab entry to old path
- switch off network
- do last rsync
- move /home to /homeold
- mount -a to load new mount
- switch on network
- test and confirm
- do a restart with a last test and confirm
- remove old partition from system
-
Might be SELinux is already disable on your server and you can switch you home partition with following. 1) Mount new partition with temp mount point 2) Rsync your all files and folder from old to new partition 3) Switch off network and run final rsync 4) Change fstab file and start network 5) Test all thing and remove old partition 0 -
Howdy, Why not mount it as /home2 and use the rearrange accounts feature in WHM? Seems like it would be easier. Thanks! 0
Please sign in to leave a comment.
Comments
2 comments