Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

External hard drive no longer accepted

Discussion in 'General Discussion' started by Jonza, Jun 23, 2019.

  1. Jonza

    Jonza Registered

    Joined:
    Feb 8, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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?
     
  2. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hello @Jonza

    What is the output of the following:

    Code:
    cat /proc/mounts
    cat /etc/fstab
    grep HOME /etc/wwwacct.conf
    
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. Jonza

    Jonza Registered

    Joined:
    Feb 8, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Finland
    cPanel Access Level:
    Reseller Owner
    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] ~]#
    
     
  4. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    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:

    That output corresponds to the setting you'll find If you go to WHM>>Server Configuration>>Basic WebHost Manager Setup:
    If you're storing userdata on /mnt/storage1 you'd need to add that here to have them be placed here.

     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
    Jonza likes this.
  5. Jonza

    Jonza Registered

    Joined:
    Feb 8, 2017
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    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).
     
  6. cPanelLauren

    cPanelLauren Forums Analyst II Staff Member

    Joined:
    Nov 14, 2017
    Messages:
    6,466
    Likes Received:
    505
    Trophy Points:
    263
    Location:
    Houston
    cPanel Access Level:
    DataCenter Provider
    Hi @Jonza

    That setting has been there for as long as I can remember, I am wondering if at some point the mount maybe had a different label? I'm really glad it's working for you now. Thanks for updating and if you have questions when you go through the settings feel free to ask away!
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice