I have a music backup server running Ispconfig3 with 850M streaming audio with vlc. I had 10G allocated to the file system and that filed up. I increased it to 50G but now that amount is getting filled-up. What could be using up so much storage? Could it be the apache log files? I'm really at a loss to find out what is using up so much space on the hard-drive. Any suggestions would be appreciated.
You can check out the /var/log directory and its subdirectories to find out if the logs are using so much space.
Thank you for your reply. You are always so helpful. I ran du -hs on the /var/log folder and it the value was 1.7G. I have a backup drive attached to the same machine. The drive is 350G. I'm running rsnapshot to it. I'm not understanding what is taking up so much storage. I'm really stumped.
I think the problem is with rsnapshot. It is suppose to write to the backup drive only but it seems to be for the past month (or maybe longer) to be writing to the /media/backup folder as well. I used the du -h command to tell me the folder contains 36G. So everytime I was running rsnapshot it was compounding the amount of memory used. It was backing up the backup. I forgot to remount the backup drive when I had to do a reboot on an update. Rsnapshot then saved the backups to the hard drive instead of the backup drive. Does anyone know where I would place the command to mount the usb external drive on boot?
You can add a line to /etc/fstab, or if you have a shell command to execute, you can add it to /etc/rc.local.
In adding the command to fstab, would it be something like this? <file system> <mount point> /dev/sdb1 /media/backup The only problem is that I don't know what the file type should be or what options I should include. This is my current fstab file: # /etc/fstab: static file system information. # # Use 'blkid -o value -s UUID' to print the universally unique identifier # for a device; this may be used with UUID= as a more robust way to name # devices that works even if disks are added and removed. See fstab(5). # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/mapper/hashbox3-root / ext4 errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0 0 1 # /boot was on /dev/sda5 during installation UUID=9c0a3f76-98b0-4ccf-8e37-385f841a1ea1 /boot ext2 defaults 0 2 /dev/mapper/hashbox3-swap_1 none swap sw 0 0 /dev/scd0 /media/cdrom0 udf,iso9660 user,noauto,exec,utf8 0 0 UUID=cd47896c-e2c1-46dc-b399-b7044ea1454e /media/backup auto defaults 0 0 I doubt that this fstab is correct to auto-mount the usb drive. The UUID number beside /media/backup is not the number that corresponds to the actual usb drive. I'm a bit confused as to what the last UUID number does. It appears if the number is suppose to correspond with the usb drive but when I ran the blkid command the numbers don't correspond. Would the drive automount if the number were correct or do I need other commands in the file to get it to function properly? Maybe it would be easier using rc.local?
Can you mount it manually and then post the output of Code: mount ? That should show the correct mount options.
This is the result of the mount command after mounting the usb drive manually Code: /dev/mapper/hashbox3-root on / type ext4 (rw,errors=remount-ro,usrjquota=aquota.user,grpjquota=aquota.group,jqfmt=vfsv0) proc on /proc type proc (rw) none on /sys type sysfs (rw,noexec,nosuid,nodev) none on /sys/fs/fuse/connections type fusectl (rw) none on /sys/kernel/debug type debugfs (rw) none on /sys/kernel/security type securityfs (rw) udev on /dev type tmpfs (rw,mode=0755) none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620) none on /dev/shm type tmpfs (rw,nosuid,nodev) none on /var/run type tmpfs (rw,nosuid,mode=0755) none on /var/lock type tmpfs (rw,noexec,nosuid,nodev) none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755) /dev/sda5 on /boot type ext2 (rw) /dev/sdb1 on /media/backup type ext3 (rw)
Is it the /dev/sdb1 device? If so, try this in your /etc/fstab: Code: /dev/sdb1 /media/backup ext3 defaults 0 0
By inserting this code in fstab, Code: /dev/sdb1 /media/backup ext3 defaults 0 0 Do I remove this code from the fstab? Code: UUID=cd47896c-e2c1-46dc-b399-b7044ea1454e /media/backup auto defaults 0 0
Not sure what the second line is, but you could mount your device to another location, e.g. /media/backup2 (create the directory before you do it): Code: /dev/sdb1 /media/backup2 ext3 defaults 0 0
[solved] Code: /dev/sdb1 /media/backup ext3 defaults 0 0 Code: UUID= /media/backup auto defaults 0 0 I placed these two lines of code in the fstab with the appropriate UUID number for the sdb1 drive using the Code: blkid command. I then rebooted and the USB drive mounted no problem. I ran rsnapshot and it backed up to the external drive.
I doubt that this fstab is correct to auto-mount the usb drive. The UUID number beside /media/backup is not the number that corresponds to the actual usb drive. I'm a bit confused as to what the last UUID number does. It appears if the number is suppose to correspond with the usb drive but when I ran the blkid command the numbers don't correspond. Would the drive automount if the number were correct or do I need other commands in the file to get it to function properly?