XO disk usage issue
-
So this is the 3rd time that my XO VM has run out of space. I notice it each time, by not being able to login to the web interface. Sure enough, I login via SSH and the disk (27 GB) is 100% used. I've expanded that disk twice already. The only thing on this Ubuntu VM is XO.
xoadmin@xo-server:~$ df -h Filesystem Size Used Avail Use% Mounted on udev 976M 0 976M 0% /dev tmpfs 200M 24M 176M 12% /run /dev/mapper/xo--server--vg-root 27G 27G 0 100% / tmpfs 996M 0 996M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 996M 0 996M 0% /sys/fs/cgroup /dev/xvda1 472M 153M 295M 35% /boot tmpfs 200M 0 200M 0% /run/user/1000
Any idea what could be going on?
-
I'd start with using du to figure out which directory is the largest.
-
Are you clearing out your logs regularly?
-
Filesystem Size Used Avail Use% Mounted on udev 10M 0 10M 0% /dev tmpfs 405M 46M 359M 12% /run /dev/xvda1 7.4G 2.6G 4.5G 37% / tmpfs 1011M 0 1011M 0% /dev/shm tmpfs 5.0M 0 5.0M 0% /run/lock tmpfs 1011M 0 1011M 0% /sys/fs/cgroup
-
@DustinB3403 said in XO disk usage issue:
Are you clearing out your logs regularly?
No, not at all actually. Where is a good place to start?
-
@fuznutz04 Look under your backup logs, and under Settings > Logs
-
Having a 27G root partition is massive. I've never gone beyond the 8GB I started with.
-
@DustinB3403 said in XO disk usage issue:
Having a 27G root partition is massive. I've never gone beyond the 8GB I started with.
Right, I started with a 10 GB, but then this happened twice now, so I had to expand each time. I haven't had this issue with any CentOS install, it just seems to be Ubuntu.
-
@DustinB3403 said in XO disk usage issue:
@fuznutz04 Look under your backup logs, and under Settings > Logs
In XO interface? I can't log into it.
-
@fuznutz04 said in XO disk usage issue:
@DustinB3403 said in XO disk usage issue:
Having a 27G root partition is massive. I've never gone beyond the 8GB I started with.
Right, I started with a 10 GB, but then this happened twice now, so I had to expand each time. I haven't had this issue with any CentOS install, it just seems to be Ubuntu.
Clearly that is incorrect (as it hasn't happened with me)
-
@fuznutz04 said in XO disk usage issue:
@DustinB3403 said in XO disk usage issue:
@fuznutz04 Look under your backup logs, and under Settings > Logs
In XO interface? I can't log into it.
Um... you can't access the web interface for XO... are you the admin?
-
@DustinB3403 said in XO disk usage issue:
@fuznutz04 said in XO disk usage issue:
@DustinB3403 said in XO disk usage issue:
@fuznutz04 Look under your backup logs, and under Settings > Logs
In XO interface? I can't log into it.
Um... you can't access the web interface for XO... are you the admin?
Correct, I can access the login page, but it just sits and spins, and never logs in. I suspect it is because the disk is 100% used. I can't even tab to autocomplete commands in the console. Not enough space on the disk.
-
@fuznutz04 said in XO disk usage issue:
@DustinB3403 said in XO disk usage issue:
@fuznutz04 said in XO disk usage issue:
@DustinB3403 said in XO disk usage issue:
@fuznutz04 Look under your backup logs, and under Settings > Logs
In XO interface? I can't log into it.
Um... you can't access the web interface for XO... are you the admin?
Correct, I can access the login page, but it just sits and spins, and never logs in. I suspect it is because the disk is 100% used. I can't even tab to autocomplete commands in the console. Not enough space on the disk.
Hrm, that is possible I suppose you could clear out the logs using the CLI, I've never bothered though.
-
Fixed it. Thanks @DustinB3403 .
Total face palm moment. When I setup backups a few months ago, I properly had XO backing up to a remote SMB share on another PC, with the share called Backups. At some point, probably during troubleshooting, I must have pointed the backup folder to just /Backups...which was located on the XO vm itself. I was backing up XO to itself.
Is that like Inception?
-
@fuznutz04 said in XO disk usage issue:
Fixed it. Thanks @DustinB3403 .
Total face palm moment. When I setup backups a few months ago, I properly had XO backing up to a remote SMB share on another PC, with the share called Backups. At some point, probably during troubleshooting, I must have pointed the backup folder to just /Backups...which was located on the XO vm itself. I was backing up XO to itself.
Is that like Inception?
Yeah, backing up to XO, while allowed, isn't ideal for this very reason. Glad we were able to resolve the issue.