Backup and restore question

I run a backup sucessfully:

 find . | backup -ivqf/dev/rmt0 

I want to make sure I can restore, so I change to a test directory and try this:

restore -rvqf /dev/rmt0

However, we fail with this error:

New volume on /dev/rmt0:
Cluster size is 51200 bytes (100 blocks).
The volume number is 1.
The backup date is: Mon Feb 25 11:36:47 EST 2013
Files are backed up by name.
The user is root.
x            0 .
x        10240 ./testfile1
restore: 0511-138 Cannot write to file ./testfile2.
Restore : A system call received a parameter that is not valid.

Here's the directory listing

# ls -l
total 2098208
-rw-r--r--    1 root     system        10240 Feb 20 03:00 testfile1
-rw-r--r--    1 root     system   1073741312 Feb 25 12:29 testfile2

testfile1 was restored correctly.
testfile2 original size is 52758169600

Thanks for any help you can offer.
-dog

---------- Post updated at 01:40 PM ---------- Previous update was at 12:42 PM ----------

Both the source directory and the target directory, in this case, is on NFS share on a NAS.

I have a backup process on an AIX 6.1 box that writes files to the NFS share. I would like to backup them up to tape from an AIX 7.1 partition.

To get more information about my problem, I tried copying the files from the source directory to the test restore directory.

 cp source/* test
cp : 0653-447 Requested a write of 4096 bytes, but wrote only 3584.
cp : 0653-447 Requested a write of 4096 bytes, but wrote only 3584.
cp : 0653-447 Requested a write of 4096 bytes, but wrote only 3584.

Diretciory listing of source directory

# ls -l
total 237919696
-rw-r--r--    1 root     system        10240  Feb 20 03:00 testfile1
-rw-r--r--    1 root     system   52758169600 Feb 20 03:09 testfile2
-rw-r--r--    1 root     system       286720  Feb 20 03:09 testfile3
-rw-r--r--    1 root     system   37696358400 Feb 20 03:15 testfile4
-rw-r--r--    1 root     system       215040  Feb 20 03:15 testfile5
-rw-r--r--    1 root     system   31300044800 Feb 20 03:21 testfile6
-rw-r--r--    1 root     system       215040  Feb 20 03:21 testfile7
-rw-r--r--    1 root     system          415  Feb 25 12:08 wedbackup.log

Directory listing of restore directory:

ls -l
total 6296096
-rw-r--r--    1 root     system        10240 Feb 25 13:26 testfile1
-rw-r--r--    1 root     system   1073741312 Feb 25 13:26 testfile2
-rw-r--r--    1 root     system       286720 Feb 25 13:26 testfile3
-rw-r--r--    1 root     system   1073741312 Feb 25 13:26 testfile4
-rw-r--r--    1 root     system       215040 Feb 25 13:26 testfile5
-rw-r--r--    1 root     system   1073741312 Feb 25 2013  testfile6
-rw-r--r--    1 root     system       215040 Feb 25 2013  testfile7
-rw-r--r--    1 root     system          415 Feb 25 2013  wedbackup.log

Thanks for the help...

---------- Post updated at 02:12 PM ---------- Previous update was at 01:40 PM ----------

I changed the max file size by editing the /etc/security/limits file.
retesting...

I have absolutely no experience with AIX, but a post that I read in another thread may be relevant: from AIX & TAR related stuff , specifically the chuser/fsize advice.

Regards,
Alister

1 Like

It works much better after changing the max file size. :o

Thanks!

Good point!

Good idea on AIX after install is to run this command:

chuser fsize=-1 cpu=-1 data=-1 stack=-1 core=-1 rss=-1 root

This sets all ulimt settings to unlimited for root in /etc/security/limits