Go Back   The UNIX and Linux Forums > Operating Systems > AIX


AIX AIX is IBM's industry-leading UNIX operating system that meets the demands of applications that businesses rely upon in today's marketplace.

Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 02-25-2013
Registered User
 
Join Date: Oct 2010
Posts: 24
Thanks: 14
Thanked 0 Times in 0 Posts
[Solved] Backup and restore question

I run a backup sucessfully:

Code:
 find . | backup -ivqf/dev/rmt0

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

Code:
restore -rvqf /dev/rmt0

However, we fail with this error:

Code:
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

Code:
# 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.

Code:
 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

Code:
# 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:

Code:
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...
Sponsored Links
    #2  
Old 02-25-2013
alister alister is offline Forum Advisor  
Registered User
 
Join Date: Dec 2009
Posts: 2,600
Thanks: 123
Thanked 717 Times in 600 Posts
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
The Following User Says Thank You to alister For This Useful Post:
landog (02-25-2013)
Sponsored Links
    #3  
Old 02-25-2013
Registered User
 
Join Date: Oct 2010
Posts: 24
Thanks: 14
Thanked 0 Times in 0 Posts
works, now

It works much better after changing the max file size.

Thanks!

Moderator's Comments:
edit by bakunin: changed thread title to "solved".

Last edited by bakunin; 02-26-2013 at 07:04 PM..
    #4  
Old 02-25-2013
Registered User
 
Join Date: Nov 2012
Location: on the road for work; home is private time
Posts: 243
Thanks: 6
Thanked 59 Times in 56 Posts
Good point!

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


Code:
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
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Backup / Restore Duffs22 Red Hat 6 07-17-2012 10:23 AM
Backup and restore polar AIX 7 10-12-2011 10:52 PM
F-Backup restore paultittel HP-UX 3 06-27-2006 09:46 AM
Backup and restore uXion AIX 3 06-25-2006 09:02 PM
Backup / restore tt155 Solaris 4 01-22-2006 12:39 PM



All times are GMT -4. The time now is 07:59 AM.