Block storage with cPanel
Hey all,
I bought some block storage at my VPS company Hetzner.
They gave me this instruction for adding it to my vps.
But how to use it with cPanel? Anyone who can help me?
Configure volume
To configure your volume, use the following commands on your server.
FORMAT VOLUME
sudo mkfs.ext4 -F /dev/disk/by-id/scsi-0HC_Volume_1232690
CREATE DIRECTORY
mkdir /mnt/home2
MOUNT VOLUME
mount -o discard,defaults /dev/disk/by-id/scsi-0HC_Volume_1232690 /mnt/home2
The volume is now accessible at /mnt/home2 for data storage.
I named it home2 because i readed it on this forum but it won't work when i rearrange an account.
Greetings,
Rens
-
You have to mount it at / not /mnt once you do that cpanel will see it 0 -
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 -
What is the output of df -H 0 -
What is the output of df -H
552850 -
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 -
/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 -
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 sadly0 -
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 -
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 -
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 -
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.
Comments
11 comments