LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-21-2013, 07:49 PM   #1
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
Question Strange "no space available" message using btrfs on Fedora 19


Before posting this to the Fedora bugzilla, I thought I should ask if I'm missing something.

I was trying to set up rsnapshot to do a full backup of my F19 installation to a Passport 1.5Tb USB drive. Here are the settings I was using:
Code:
$ sudo grep -vE '(^[[:space:]]*$)|(^[[:space:]]*#)' /etc/rsnapshot.conf 
config_version  1.2
snapshot_root   /Passport/rsnapshots/
cmd_cp          /usr/bin/cp
cmd_rm          /usr/bin/rm
cmd_rsync       /usr/bin/rsync
cmd_logger      /usr/bin/logger
cmd_du          /usr/bin/du
cmd_rsnapshot_diff      /usr/bin/rsnapshot-diff
interval        hourly  6
interval        daily   7
interval        weekly  4
interval        monthly 3
verbose         2
loglevel        3
logfile /var/log/rsnapshot
lockfile        /var/run/rsnapshot.pid
rsync_short_args        -aAHX
rsync_long_args         --delete --numeric-ids --relative --delete-excluded
du_args         -csh
one_fs          1
exclude         /proc/
exclude         /tmp/
exclude         /home/*/tmp/
exclude         /dev/
exclude         /var/run/
exclude         /[[:upper:]]*/
link_dest       1
use_lazy_deletes        1
backup  /               localhost/Passport/rsnapshots/
When I ran sudo rsnapshot -V hourly I got this in the log file:
Code:
$ grep '16:42' /var/log/rsnapshot 
[21/Jun/2013:16:42:26] /bin/rsnapshot -V hourly: started
[21/Jun/2013:16:42:26] echo 30899 > /var/run/rsnapshot.pid
[21/Jun/2013:16:42:26] mv /Passport/rsnapshots/hourly.0/ /Passport/rsnapshots/hourly.1/
[21/Jun/2013:16:42:26] /bin/rsnapshot -V hourly: ERROR: Could not rename("/Passport/rsnapshots/hourly.0", "/Passport/rsnapshots/hourly.1")
[21/Jun/2013:16:42:26] /bin/rsnapshot -V hourly: ERROR: Error! safe_rename("/Passport/rsnapshots/hourly.0/", "/Passport/rsnapshots/hourly.1/")
[21/Jun/2013:16:42:26] /usr/bin/logger -i -p user.err -t rsnapshot /bin/rsnapshot -V hourly: ERROR: Error! safe_rename("/Passport/rsnapshots/hourly.0/", "/Passport/rsnapshots/hourly.1/")
[21/Jun/2013:16:42:26] rm -f /var/run/rsnapshot.pid
So I tried to see what happened to the Passport drive:
Code:
$ sudo mv /Passport/rsnapshots/hourly.0/ /Passport/rsnapshots/hourly.1/
mv: cannot move ‘/Passport/rsnapshots/hourly.0/’ to ‘/Passport/rsnapshots/hourly.1/’: No space left on device
$ sudo umount /Passport 
$ sudo btrfsck /dev/sdd1
Checking filesystem on /dev/sdd1
UUID: 926e48e5-dc5f-4b6b-a137-918474444271
checking extents
checking fs roots
checking root refs
found 368033935360 bytes used err is 0
total csum bytes: 357478568
total tree bytes: 1610190848
total fs tree bytes: 1075429376
btree space waste bytes: 377697383
file data blocks allocated: 366423744512
 referenced 367877095424
Btrfs v0.20-rc1
$ sudo mount /Passport
$ df -h /Passport
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1       1.4T  345G  1.1T  25% /Passport
$ df -h /Passport/rsnapshots/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1       1.4T  345G  1.1T  25% /Passport
$ sudo df -h /Passport/rsnapshots/hourly.0/
Filesystem      Size  Used Avail Use% Mounted on
/dev/sdd1       1.4T  345G  1.1T  25% /Passport
$ sudo du -csh /Passport/rsnapshots/hourly.0/
59G     /Passport/rsnapshots/hourly.0/
59G     total
So, does anyone have have any clue why the mv command (which is only renaming the directory) "thinks" that it's going to run out of space whilst doing the move? Even if a full copy of the 59Gb directory were to be made (which should not be done), there is, apparently, 1.1 Tb free on the drive.

Last edited by PTrenholme; 06-21-2013 at 07:52 PM.
 
Old 06-21-2013, 08:37 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,119

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Space (free or otherwise) in btrfs ain't necessarily what you might think. This article has been around for a while.

BTW, there is also an article off the main page for (native) efficient incremental backups - faster than rsync allegedly.
 
Old 06-23-2013, 09:48 PM   #3
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Original Poster
Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
OK, thanks.

I tried all the suggestions in the Q&A section, and none of then could be made to work.

I "solved" the problem by deleting the partition table and just using mkfs.btrfs to recreate the whole thing with subvolumes. Now I'm playing with seeing if I can mirror the stuff I want to backup onto the correct subvolume. (This may not be easy, since - for some reason I haven't yet found - "profiles" can only be specified by device. . .)

Anyhow, I'll mark this "solved" for now.
 
  


Reply

Tags
btrfs, rsnapshot


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] "Not enough space" message copying files from Windows 7 to Ext3 filesystem GTCG Linux - Server 5 05-29-2013 03:11 PM
Strange message "Speicherzugriffsfehleresen" friotto Linux - General 2 03-27-2009 12:06 PM
Getting a "No space left on device" message on a non-full partition... sugar2 Linux - Hardware 12 07-06-2007 01:43 AM
strange message exiting "startx" fatblueduck Linux - Software 2 07-26-2004 10:20 AM
REd hat linux 8.0 installation fail with error message "insufient disk space" drweirdow Linux - Newbie 1 07-16-2003 07:51 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 02:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration