[email protected]

Active Member
PartnerNOC
Aug 6, 2018
32
3
8
india
cPanel Access Level
Root Administrator
Hi,

can you help me with root partition

here is the partition table

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 98G 97G 1G 98% /
devtmpfs 16G 0 16G 0% /dev
tmpfs 16G 7.4M 16G 1% /dev/shm
tmpfs 16G 2.0M 16G 1% /run
tmpfs 16G 0 16G 0% /sys/fs/cgroup
/dev/sda2 976M 278M 648M 31% /boot
tmpfs 3.2G 0 3.2G 0% /run/user/0
/dev/sda4 337G 39G 281G 13% /home1
/dev/sdb1 1.8T 110G 1.6T 7% /home2
/dev/sdc1 1.8T 185G 1.6T 11% /home3
tmpfs 3.2G 0 3.2G 0% /run/user/1137
tmpfs 3.2G 0 3.2G 0% /run/user/1189
tmpfs 3.2G 0 3.2G 0% /run/user/1008
tmpfs 3.2G 0 3.2G 0% /run/user/1199
tmpfs 3.2G 0 3.2G 0% /run/user/1254

hi can delete sda4 as i can move their accounts to home2 and delete sda4, is there an option to increase root sda3 size.

it was by mistake created while installing cpanel this is a dedicated server so can boot to rescue system if need

Thank you
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,755
316
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
As you are not set up with volume groups, this won't be possible.

However, you could use sda4 for either /usr or /var which is probably a source of a lot of disk usage. You might want to check each of those to see which is bigger and then use sda4 for it.

You also might just want to run though those two folders and see what is taking up so much space because that is pretty high usage for a root partition without home in it. Or if /home is in fact on the root partition, make sure you don't have any accounts in it.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,755
316
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
Depends on the folders. What I would do is go into /var and run

du -h --max=1|grep G

and see what folders are the biggest and start drilling down. Then do the same thing for /usr.

For exmaple, if /var/lib/mysql is 20+gb then that would be a good candidate to move to a different partition.

However, some fodlers are moveable and some are not. And the ones that are may have different considerations as to how to best move them.

Or, you can do as I initially suggested which would be to move the entire /var or /usr to sda4 after you clear it of accounts.
 

GOT

Get Proactive!
PartnerNOC
Apr 8, 2003
1,755
316
363
Chesapeake, VA
cPanel Access Level
DataCenter Provider
You canb't just move /var on a live system. You would need to boot in rescue mode and move them that way.

Its a delicate procedure and if you make an error then your system won't boot, so if you are not comfortable doing it, you would be better off rearranging folders.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463