set home2 on another partition
Hi,
the home partition (/dev/md3) is almost 50% filled, the HDD is 4TB,
I can see another partition (/dev/md2),
how can I set it to be home2?
hardware from Hetzner:
current status:
thanks.
Intel Xeon E5-1650V3
2x HDD SATA 4,0 TB
8x RAM 32768 MB DDR4
current status:
Filesystem Size Used Avail Use% Mounted on
devtmpfs 126G 0 126G 0% /dev
tmpfs 126G 0 126G 0% /dev/shm
tmpfs 126G 1.9M 126G 1% /run
tmpfs 126G 0 126G 0% /sys/fs/cgroup
/dev/md2 2.0T 40G 1.8T 3% /
/dev/md1 989M 223M 716M 24% /boot
/dev/md3 1.7T 605G 990G 38% /home
/dev/loop0 3.9G 8.2M 3.7G 1% /tmp
tmpfs 26G 0 26G 0% /run/user/0
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT
NAME SIZE FSTYPE TYPE MOUNTPOINT
sda 3.7T disk
??sda1 4G linux_raid_member part
? ??md0 4G swap raid1 [SWAP]
??sda2 1G linux_raid_member part
? ??md1 1022M ext3 raid1 /boot
??sda3 2T linux_raid_member part
? ??md2 2T ext4 raid1 /
??sda4 1.7T linux_raid_member part
? ??md3 1.7T ext4 raid1 /home
??sda5 1M part
sdb 3.7T disk
??sdb1 4G linux_raid_member part
? ??md0 4G swap raid1 [SWAP]
??sdb2 1G linux_raid_member part
? ??md1 1022M ext3 raid1 /boot
??sdb3 2T linux_raid_member part
? ??md2 2T ext4 raid1 /
??sdb4 1.7T linux_raid_member part
? ??md3 1.7T ext4 raid1 /home
??sdb5 1M part
loop0 4G ext3 loop /home/virtfs/alouroba/var/tmp
thanks.
-
Hi, the home partition (/dev/md3) is almost 50% filled, the HDD is 4TB, I can see another partition (/dev/md2), how can I set it to be home2? hardware from Hetzner:
Intel Xeon E5-1650V3 2x HDD SATA 4,0 TB 8x RAM 32768 MB DDR4
current status:Filesystem Size Used Avail Use% Mounted on devtmpfs 126G 0 126G 0% /dev tmpfs 126G 0 126G 0% /dev/shm tmpfs 126G 1.9M 126G 1% /run tmpfs 126G 0 126G 0% /sys/fs/cgroup /dev/md2 2.0T 40G 1.8T 3% / /dev/md1 989M 223M 716M 24% /boot /dev/md3 1.7T 605G 990G 38% /home /dev/loop0 3.9G 8.2M 3.7G 1% /tmp tmpfs 26G 0 26G 0% /run/user/0
lsblk -o NAME,SIZE,FSTYPE,TYPE,MOUNTPOINT NAME SIZE FSTYPE TYPE MOUNTPOINT sda 3.7T disk ??sda1 4G linux_raid_member part ? ??md0 4G swap raid1 [SWAP] ??sda2 1G linux_raid_member part ? ??md1 1022M ext3 raid1 /boot ??sda3 2T linux_raid_member part ? ??md2 2T ext4 raid1 / ??sda4 1.7T linux_raid_member part ? ??md3 1.7T ext4 raid1 /home ??sda5 1M part sdb 3.7T disk ??sdb1 4G linux_raid_member part ? ??md0 4G swap raid1 [SWAP] ??sdb2 1G linux_raid_member part ? ??md1 1022M ext3 raid1 /boot ??sdb3 2T linux_raid_member part ? ??md2 2T ext4 raid1 / ??sdb4 1.7T linux_raid_member part ? ??md3 1.7T ext4 raid1 /home ??sdb5 1M part loop0 4G ext3 loop /home/virtfs/alouroba/var/tmp
thanks.
you can set this up in WHM> Server Configuration > Basic webhost manager Setup read more here: Basic WebHost Manager Setup | cPanel & WHM Documentation
and after you can rearrange different cpanel accounts to home2Enter the location where you wish for new users" home directories to be created. By default all directories matching the "Home Directory Prefix" are checked for available disk space and the directory with the most free space will be used. Example: /home - /home default
Additional home directories matching the following value will also be used for new home directory creations. (Leaving this value blank disables the feature.) Only mount points are considered. This option only takes one value. Examples: "home" matches /home, /home2, /newhome, /usr/home, /anythingwith/homeinit 0 -
Hello Sahfy, The mentioned /dev/md2 Raid partition is already mounted with " / "which is the default one so we can't change the mount point at any manner on this case. In order to solve the disk usage warnings we can try two methods. 1) I suggest you to add an extra disk on this server then create the raid partition on the new disk and add it to same RAID array so your storage space can be increased on /home partition to avoid the disk usage warnings. 2)You can also remove the unwanted logs and backup from the /home partition to free up the space. 0 -
Hello Sahfy, The mentioned /dev/md2 Raid partition is already mounted with " / "which is the default one so we can't change the mount point at any manner on this case. In order to solve the disk usage warnings we can try two methods.
So I can't create home2 on /dev/md2 by anyway?0 -
@sahafy I agree with the options shared by the @rahulkr. In your case, it is not possible to create home2 on /dev/md2 0 -
So I can't create home2 on /dev/md2 by anyway?
You can, just create directory /home2 mkdir /home20 -
So I can't create home2 on /dev/md2 by anyway?
You can create the /home2 but it's not good idea to mount /home2 with /dev/md2 because the "/" partition is already mounted with the same. /dev/md2 2.0T 40G 1.8T 3% /0 -
You can create the /home2 but it's not good idea to mount /home2 with /dev/md2 because the "/" partition is already mounted with the same. /dev/md2 2.0T 40G 1.8T 3% /
I didn't advice to mount anything, but instead create the /home2 directory in the root (/) partition. That is totally different thing.0 -
I didn't advice to mount anything, but instead create the /home2 directory in the root (/) partition. That is totally different thing.
I count on cPanel for running the server, other than this my experience is partition C, D, E on Windows. so, I have to go to root (/) andmkdir /home2
, and set cPanel to create new accounts on /home2 and I am ok then?0 -
I count on cPanel for running the server, other than this my experience is partition C, D, E on Windows. so, I have to go to root (/) and
mkdir /home2
, and set cPanel to create new accounts on /home2 and I am ok then?
Yes you are.0
Please sign in to leave a comment.
Comments
9 comments