Koozali.org: home of the SME Server

when backup up to usb, it fills my sme hdd until it fails

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« on: April 13, 2007, 06:33:43 PM »
Hi,

For some reason when i mount my usb hdd (which has plenty of room) to sme and start copyin across the ibays to back them up. It copies so much and then stopped. After trying many times, i done df -h to check the size and my usb had plenty of space left but my sme hard drive was full, after i remove it from the usb drive and then reboot the system its fine again. The hdd on sme is 180Gb and i am using about 160gb (about 50gb on ibays). My usb has plenty of room on it it is a 320gb.

Any ideas why it is doing that?

Thanks
k0r54

Offline Gaston94

  • *****
  • 184
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #1 on: April 13, 2007, 09:33:08 PM »
Hi
check that your usb drive is correctly mounted where you expect it to be.
use "df -P "
Looks like you are performing the backup on a mount point where nothing is attached so it's only a directory entry on you main hdd

G.

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #2 on: April 13, 2007, 11:09:12 PM »
hi,

yes it is mounted to the right place.

Thanks
k0r54

Offline pfloor

  • *****
  • 889
  • +1/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #3 on: April 14, 2007, 06:31:03 PM »
Quote from: "k0r54"
hi,

yes it is mounted to the right place.

Thanks
k0r54

How/where did you mount it?

Show output of:

# df -P

Before and after you mount the USB drive.
In life, you must either "Push, Pull or Get out of the way!"

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #4 on: April 14, 2007, 09:11:43 PM »
hi

I have mounted it by mount /dev/sda2 /media/backup/

df -P before
Code: [Select]

Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153305412  27141128      85% /
/dev/md1                101018     18926     76876      20% /boot
none                    517208         0    517208       0% /dev/shm


and after
Code: [Select]

Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153305448  27141092      85% /
/dev/md1                101018     18926     76876      20% /boot
none                    517208         0    517208       0% /dev/shm
/dev/sda2            109082784     32812 104544384       1% /media/backup


Thanks
k0r54

Offline pfloor

  • *****
  • 889
  • +1/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #5 on: April 14, 2007, 09:26:53 PM »
That all looks good.  Lets see:

# fdisk -l /dev/sda
(-l is a lower case L)
# cat /etc/fstab

Also, how are you attempting to copy files?
In life, you must either "Push, Pull or Get out of the way!"

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #6 on: April 14, 2007, 09:30:25 PM »
Hi,

Ok i go to the ibay directory cp * /media/backup

the fdisk is
Code: [Select]


Disk /dev/sda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        6374    51199123+   c  W95 FAT32 (LBA)
/dev/sda2            6375       20397   112639747+  83  Linux
/dev/sda3           20398       38913   148729770    7  HPFS/NTFS


and fstab
Code: [Select]


#------------------------------------------------------------
# BE CAREFUL WHEN MODIFYING THIS FILE! It is updated automatically
# by the SME server software. A few entries are updated during
# the template processing of the file and white space is removed,
# but otherwise changes to the file are preserved.
# For more information, see http://www.e-smith.org/custom/ and
# the template fragments in /etc/e-smith/templates/etc/fstab/.
#
# copyright (C) 2002 Mitel Networks Corporation
#------------------------------------------------------------
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/main/root          /                       ext3    usrquota,grpquota        1 1
/dev/md1                /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/main/swap          swap                    swap    defaults        0 0
LABEL=LinuxBackup /media/backup auto auto,defaults 0 0
/dev/sda3               /media/WHSBackup        ntfs    pamconsole,exec,noauto,managed 0 0
/dev/sda2               /media/LinuxBackup      ext3    pamconsole,exec,noauto,managed 0 0
/dev/sda1               /media/SEA_DISC         vfat    pamconsole,exec,noauto,managed 0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0


Thanks
k0r54

Offline pfloor

  • *****
  • 889
  • +1/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #7 on: April 14, 2007, 09:49:00 PM »
"I have mounted it by mount /dev/sda2 /media/backup/"

I didn't see that before, don't mount it that way because it doesn't match your fstab entries.  Mount it like this:

mount /dev/sda2

and let fstab mount it correctly.  Then show df -P
In life, you must either "Push, Pull or Get out of the way!"

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #8 on: April 14, 2007, 09:52:20 PM »
hey,

ok it now looks like
Code: [Select]

Filesystem         1024-blocks      Used Available Capacity Mounted on
/dev/mapper/main-root 190103268 153306336  27140204      85% /
/dev/md1                101018     18926     76876      20% /boot
none                    517208         0    517208       0% /dev/shm
/dev/sda2            109082784     32812 104544384       1% /media/LinuxBackup


looks the same though?

Thanks
k0r54

Offline pfloor

  • *****
  • 889
  • +1/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #9 on: April 14, 2007, 09:55:53 PM »
Look closer, they are different:
Code: [Select]

Old way:
/dev/sda2            109082784     32812 104544384       1% /media/backup
New way:
/dev/sda2            109082784     32812 104544384       1% /media/LinuxBackup

Now you should be able to copy using:

cp * /media/LinuxBackup
In life, you must either "Push, Pull or Get out of the way!"

Offline Gaston94

  • *****
  • 184
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #10 on: April 14, 2007, 11:25:39 PM »
and check you do not have a large /media/backup directory created previously :
 du -sk /media/*

G.

Offline pfloor

  • *****
  • 889
  • +1/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #11 on: April 14, 2007, 11:31:39 PM »
Quote from: "Gaston94"
and check you do not have a large /media/backup directory created previously :
 du -sk /media/*

G.

Oh ya, that too :-)
In life, you must either "Push, Pull or Get out of the way!"

Offline k0r54

  • ****
  • 111
  • +0/-0
when backup up to usb, it fills my sme hdd until it fails
« Reply #12 on: April 16, 2007, 11:51:21 AM »
Hi,

Worked a treat,

Thanks very much

Adam