Moving the /home directory to /

terrymason

Registered
Jan 24, 2013
3
0
1
cPanel Access Level
Root Administrator
My host setup my server in this fashion:

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_finland-lv_root 50G 31G 17G 66% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/cciss/c0d0p1 485M 52M 409M 12% /boot
/dev/mapper/vg_finland-lv_home 202G 24G 169G 13% /home
/usr/tmpDSK 485M 11M 449M 3% /tmp

notice the 202G /home and the 50G / partitions.

I'd like to combine this space into a 252G partition. Is it possible to move /home into / (assuming that I free up enough space), then delete /home and extend / ?

I'm a linux noob, so let me know if this is just a bad idea.

Thanks
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello :)

There is some documentation on this provided by CentOS:

Disk Storage

However, I do not recommend making these changes on an active server. Instead, you should backup your accounts to a remote location, reinstall the OS with the new partition scheme, and then restore the accounts from backup.

Thank you.