/mnt/md1 full

Status
Not open for further replies.

Malpensilo

Cadet
Joined
Aug 14, 2013
Messages
5
Apologies for asking a noob question, but: I have been using rsync to backup my FreeNAS, which has worked fine for a couple of days. But I have a problem where the dev/md1 keeps filling up and causing rsync to fail. If I delete the backup from /mnt then the space returns. Is rsync writing some data to /mnt/md1? If so, how can I find out, and change where it goes?
 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Backup your FreeNAS to where? What parameters have you given rsync? A little info might help.

Sent from my Galaxy Nexus
 

Malpensilo

Cadet
Joined
Aug 14, 2013
Messages
5
I am backing up to a usb external disk at the moment. I format the disks as follows:

dd < /dev/zero > /dev/da0 count=1
fdisk -I /dev/da0
newfs -m 1 -i 1024 /dev/da0s1
glabel label ext da0s1
mkdir -p /mnt/ext
Then run a shell script via cron like this:
mkdir /mnt/backup
mount /dev/da0s1 /mnt/backup
rsync -av /mnt/MYPOOLNAME /mnt/backup
umount /mnt/backup
rm -r /mnt/backup

The second time the script runs, it fails with a disk full error.
I have found this: http://forums.freenas.org/threads/filesystem-full-help-pls.5062/ Which seems pertinent, but I cannot understand what I need to do.
In short, the /dev/md1 fills up. /mnt always has another /mnt/backup? (with question mark) folder in there for some reason. If I delete it (rm -rf /mnt/backup?) then I can run rsync again successfully, but it does not just backup the changed data - it starts over.
Which leads me to believe that rsync is putting its logs or something in /dev/md1. But if this is so, I cannot find how to stop it.



 

pirateghost

Unintelligible Geek
Joined
Feb 29, 2012
Messages
4,219
Why would you not use the GUI to create your filesystem and mount point?

Sent from my Galaxy Nexus
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
Why would you not use the GUI to create your filesystem and mount point?

Sent from my Galaxy Nexus

+1. Many people that have problems are having problems because they aren't using the GUI to do what its supposed to do. The CLI should only be used in situations where the GUI is insufficient for the task(be it a bug, or preventing you from using a feature that you need, etc).
 

Malpensilo

Cadet
Joined
Aug 14, 2013
Messages
5
Please excuse my ignorance - I did not know how to set up a rsync to and external disk without using a shell script. I thought that the rsync area of the GUI was more aimed at syncing between remote instances of FreeNAS, but closer inspection makes me think I was wrong.
Not wiping the disk with the GUI was also an oversight.
So, I shall try again using the GUI and see what happens.
 

cyberjock

Inactive Account
Joined
Mar 25, 2012
Messages
19,525
FreeNAS' rsync area is absolutely aimed between remote servers(not necessarily 2 FreeNAS servers). But rsync will definitely work from local location to another local location.
 
Status
Not open for further replies.
Top