Skip to main content

Block storage with cPanel

Comments

11 comments

  • GOT
    You have to mount it at / not /mnt once you do that cpanel will see it
    0
  • Rens
    I did these commands: ORMAT VOLUME sudo mkfs.ext4 -F /dev/disk/by-id/scsi-0HC_Volume_1232690 CREATE DIRECTORY mkdir /home2 MOUNT VOLUME mount -o discard,defaults /dev/disk/by-id/scsi-0HC_Volume_1232690 /home2 Still no new disk found, see 55281
    0
  • GOT
    What is the output of df -H
    0
  • Rens
    What is the output of df -H

    55285
    0
  • GOT
    Yeah, its not mounted at all, otherwise it would show up in there. I would adjust your /etc/fstab file so that it includes that volume in there (otherwise it won't mount at boot time) and try mounting it again.
    0
  • GOT
    /dev/disk/by-id/scsi-0HC_Volume_1232690

    Also, this in general does not look right at all. I would use ll /dev/disk/by-uuid/ The uuid you find in that folder when adding to your fstab.
    0
  • Rens
    Also, this in general does not look right at all. I would use ll /dev/disk/by-uuid/ The uuid you find in that folder when adding to your fstab.

    I don't know how this works, i think it will not work. I don't understand the fstab thing sadly
    0
  • GOT
    Your /etc/fstab should get a line added that looks like this UUID=8ba4095a-7cdd-470c-803f-fd2b25dafa49 /home2 ext4 defaults,uquota 1 1 Though your UUID should be different.
    0
  • Rens
    Also, this in general does not look right at all. I would use ll /dev/disk/by-uuid/ The uuid you find in that folder when adding to your fstab.

    cPanel sees the disk when i migrate a user i get this error how to fix? The "Account" restore module failed because of an error: Failed to create the account: Unable to add user mensenkn: add_system_user failed due to an error: (XID n5nsb6) The system failed to create the directory "/mnt/home2/mensenkn" because of an error: Read-only file system at /usr/local/cpanel/Whostmgr/Accounts/Create.pm line 1364.
    0
  • GOT
    That would imply its trying to create it in /mnt which is wrong, and that the drive is read-only which also is a problem. You may have to contact your provider for more assistance.
    0
  • cPanelLauren
    I'd like to chime in here and note that I would definitely contact your provider about this. They should be able to provide some assistance with ensuring that the server is set up properly. Thanks!
    0

Please sign in to leave a comment.