#1  
Old 17th January 2010, 07:40
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default Backup Script now Failing

Hello,

I have been running a backup script. The link to the full script is here.

I use the rdiff-backup option in the script. The script has been working fine until a few nights ago. I was doing general maintenance on the server. I performed an apt-get update and apt-get upgrade. The other task I did was add a RAID 5 array to the server. I can't foresee the impact either of these would have on the backup script.

In any event, here is the error message I receive from one of the backups.

Code:
xenBackup: backing up domain: test.example.com
xenBackup: Mounting /dev/data/test.example.com-files read-only
xenBackup: backing up domain test.example.com to /mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files using rdiff-backup
Exception '[Errno 95] Operation not supported: '/mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files/rdiff-backup-data/rdiff-backup.tmp.0'' raised of class '<type 'exceptions.OSError'>':
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 334, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 919, in backup_set_globals
    dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 152, in init_readwrite
    subdir.mkdir()
  File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 983, in mkdir
    self.conn.os.mkdir(self.path)

Traceback (most recent call last):
  File "/usr/bin/rdiff-backup", line 30, in <module>
    rdiff_backup.Main.error_check_Main(sys.argv[1:])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 304, in error_check_Main
    try: Main(arglist)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 324, in Main
    take_action(rps)
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 280, in take_action
    elif action == "backup": Backup(rps[0], rps[1])
  File "/var/lib/python-support/python2.5/rdiff_backup/Main.py", line 334, in Backup
    rpout.conn.fs_abilities.backup_set_globals(rpin, force)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 919, in backup_set_globals
    dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
  File "/var/lib/python-support/python2.5/rdiff_backup/fs_abilities.py", line 152, in init_readwrite
    subdir.mkdir()
  File "/var/lib/python-support/python2.5/rdiff_backup/rpath.py", line 983, in mkdir
    self.conn.os.mkdir(self.path)
OSError: [Errno 95] Operation not supported: '/mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files/rdiff-backup-data/rdiff-backup.tmp.0'
xenBackup: purging increments older than 120D from /mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files
Fatal Error: Could not open rdiff-backup directory

/mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files/rdiff-backup-data

due to

[Errno 95] Operation not supported: '/mnt/wd/backup/test.example.com.rdiff-backup.mirror/home/user/files/rdiff-backup-data/rdiff-backup.tmp.0'


xenBackup: FAILURE: error backing up domain test.example.com
xenBackup: Cleaning up
xenBackup: FAILURE: backup completed with some failures
When I read the error message, I though the drive was not mounted. I have verified the drive is mounted and has space available. Can anyone shed some light on what I should do to fix the problem?

Last edited by atjensen11; 17th January 2010 at 07:43.
Reply With Quote
Sponsored Links
  #2  
Old 19th January 2010, 06:11
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default

I think I have isolated the problem to the drive. I ran the backup script manually to another drive and the rdiff-backup was completed without errors.

As I mentioned before, the drive has capacity. It is currently about 80% full. It is formated as NTFS and is attached through fstab with the NTFS-3g driver.

When i tried to create a new directory on the drive, it threw an error.
Code:
mkdir: cannot create directory `test': Operation not supported
I tried to run fsck on the drive, but it too threw an error since the drive is NTFS.

Any ideas on how I can troubleshoot the problem further?
Reply With Quote
  #3  
Old 21st February 2010, 17:34
atjensen11 atjensen11 is offline
Senior Member
 
Join Date: Dec 2007
Posts: 199
Thanks: 9
Thanked 6 Times in 6 Posts
Default [solved]

I solved this issue by removing the drive and connecting it to a Windows machine. Windows went through and did a check on the NTFS file system. Then the drive was properly removed which likely closed the journal appropriately.

After doing this, the drive was reconnected to the Linux machine and backups were able to write to the drive correctly.
Reply With Quote
The Following User Says Thank You to atjensen11 For This Useful Post:
falko (22nd February 2010)
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
ISPConfig 3 - back-res a Backup and Restore script go0ogl3 Plugins/Modules/Addons 222 26th August 2014 06:00
freebsd 7, samba 3, domain controller alexdimarco Suggest HOWTO 6 5th November 2010 17:54
Online Backup : What do you use and how do you setup it ? XZed Technical 5 4th January 2010 19:02
ISPConfig Backup Script vaio1 General 14 13th November 2009 15:23
Shell Script backup a file HELP anything Programming/Scripts 4 5th February 2008 19:09


All times are GMT +2. The time now is 08:11.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.