External hard drive no longer accepted

Jonza

Registered
Feb 8, 2017
3
0
1
Finland
cPanel Access Level
Reseller Owner
I am using my first VPS cPanel server so I am new to root level cPanel and VPS in general.
I am using OVH with external Ceph storage.

If I wrote all the commands to this text file then the storage was mounted using these commands;
mkdir -p /mnt/sdb
mkfs.ext4 /dev/sdb
mount /dev/sdb /mnt/sdb

/dev/sdb /mnt/storage1
/dev/sdb1 /mnt/storage1 ext4 defaults 0 2

Now after cPanel version 80+ I can no longer move accounts to the external storage using WHM, the error which get is:
New mount point: The user is already installed on the only usable partition on this machine.

However the accounts which I have already moved in the past are still there and fully functional, WHM even is able to move them back from external into internal storage. (I haven't tested this but WHM says it's a possibility)

How do I restore the ability to move accounts from internal into external storage?
Do I need to further configure the VPS for cPanel 80+ to accept the external storage?
 

Jonza

Registered
Feb 8, 2017
3
0
1
Finland
cPanel Access Level
Reseller Owner
Hello @Jonza

What is the output of the following:

Code:
cat /proc/mounts
cat /etc/fstab
grep HOME /etc/wwwacct.conf
Code:
[[email protected] ~]# cat /proc/mounts
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
devtmpfs /dev devtmpfs rw,relatime,size=1898884k,nr_inodes=474721,mode=7550 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
/dev/sda1 / ext4 rw,relatime,errors=remount-ro,barrier=1,data=ordered,discard,usrquota 0 0
/proc/bus/usb /proc/bus/usb usbfs rw,relatime 0 0
/dev/sdb1 /mnt/storage1 ext4 rw,relatime,barrier=1,data=ordered 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw,relatime 0 0
/dev/loop0 /tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0
/dev/loop0 /var/tmp ext3 rw,nosuid,noexec,relatime,errors=continue,barrier=1,data=ordered 0 0
[[email protected] ~]# cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Fri Mar  3 14:56:02 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/sda1       /       ext4    errors=remount-ro,discard,usrquota      1 1
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/usr/tmpDSK             /tmp                    ext3    defaults,noauto    0 0
/dev/sdb1                /mnt/storage1          ext4    defaults        0 2
[[email protected] ~]# grep HOME /etc/wwwacct.conf
HOMEDIR /home
HOMEMATCH
[[email protected] ~]#
 

cPanelLauren

Forums Analyst II
Staff member
Nov 14, 2017
8,012
647
263
Houston
cPanel Access Level
DataCenter Provider
Hi @Jonza


It looks like the mount is present as /mnt/storage1 but based on the output you provided the system isn't set up to place accounts there:

Code:
[[email protected] ~]# grep HOME /etc/wwwacct.conf
HOMEDIR /home
HOMEMATCH
That output corresponds to the setting you'll find If you go to WHM>>Server Configuration>>Basic WebHost Manager Setup:
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.
If you're storing userdata on /mnt/storage1 you'd need to add that here to have them be placed here.

Examples: “home” matches /home, /home2, /newhome, /usr/home, /anythingwith/homeinit
 
  • Like
Reactions: Jonza

Jonza

Registered
Feb 8, 2017
3
0
1
Finland
cPanel Access Level
Reseller Owner
Thanks that did it.
Now I can move accounts to external storage again.

I never had done that before so I didn't know such option existed.
I guess it would be a good idea to go through all of the settings a few more times to learn more about cPanel (at root level).