Unmounting volume leaves the "backup volume"
-
Hy folks,
i just wanted to re-add a volume for backups caus i resized it at Hetzner (hoster) and a re-mount in the cloudron ui didn't load the changes.So i removed the volume:
Now i wonder why the backup volume is still mounted (despite a reboot):
Backup section:
System info section
How can i remove this volume completely?
Thanks a lot!
Kai -
@kk_cloudron If you want to add a hetzner volume for cloudron backup, you have to add this in the Backups view. The Volumes view in cloudron is meant for mounting the volume into apps.
As for your size problem - there are two sizes. The size of the hetzner volume itself (which I assume you adjust from the control panel). The other size is the size of the file system inside the hetzner volume. The filesystem size is what Cloudron shows. You have to "resize" the file system to take up extra space you allocated on the disk manually. Please see https://docs.hetzner.com/cloud/volumes/faq/#can-i-resize-volumes and https://community.hetzner.com/tutorials/resize-ext-partition. In short,
resize2fs /dev/sdb
orxfs_growpart /dev/sdb
. You have to replace /dev/sdb with the disk name (you can get this by runningdf
on the server).Sometimes, resize2fs won't work on a mounted disk. So, you have to remove the disk in the Backups view, run resize2fs and then add it again in Backups view.
-
Thanks for reply, i changed the backup config to no-op.. The volume is still mounted.
So i let this thing, as it was and returned to the volumes ui: If i want to add the volume there it runs to the Error "diskPath is not a string"
I only used letters, numbers and / - _ -
Not exactly sure what you are aiming for, but if this is a disk you want to use as backups only, then there is no need to add it as a volume as such there.
If you manage the mountpoint manually (or your VPS provider already does this) then can you try to add the actual mountpoint instead? Our error is probably not correct here then.
-
Ah, sorry - I basically just want cloudron to take the size of the volume correctly - in fact it is 20 GB.
At the resizing process at Hetzner there was a notification i have to remount the volume to apply the changes... -
@kk_cloudron If you want to add a hetzner volume for cloudron backup, you have to add this in the Backups view. The Volumes view in cloudron is meant for mounting the volume into apps.
As for your size problem - there are two sizes. The size of the hetzner volume itself (which I assume you adjust from the control panel). The other size is the size of the file system inside the hetzner volume. The filesystem size is what Cloudron shows. You have to "resize" the file system to take up extra space you allocated on the disk manually. Please see https://docs.hetzner.com/cloud/volumes/faq/#can-i-resize-volumes and https://community.hetzner.com/tutorials/resize-ext-partition. In short,
resize2fs /dev/sdb
orxfs_growpart /dev/sdb
. You have to replace /dev/sdb with the disk name (you can get this by runningdf
on the server).Sometimes, resize2fs won't work on a mounted disk. So, you have to remove the disk in the Backups view, run resize2fs and then add it again in Backups view.
-
-
Aye! Thanks @girish for the help beyond cloudron topics! I thought cloudron would take over and ignored the info from Hetzner on this. I am smarter for the future! - However, it worked fine while the hard disk was mounted as a backup volume.
Even though the problem is solved, can you answer a question for me? - Where do I remove the disk as a backup volume? I could not find the option during my search for a solution
-
@kk_cloudron said in Unmounting volume leaves the "backup volume":
Where do I remove the disk as a backup volume? I could not find the option during my search for a solution
You have to set another backup location. For example, you can switch to
Filesystem
and put the path as/var/backups
(this is also the default after you install cloudron).