Backup system to NFS Appliance device


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Backup system to NFS Appliance device
# 1  
Old 08-29-2003
Backup system to NFS Appliance device

I have been tasked with getting an AIX 4.3.3 box to backup to a NAS applicance device which provides NFS service. It is an intermediary repository so that other tools can transport the resulting backup file to another NAS Applicance at a remote site on a secondary frame connection.

Anyone have some ideas?

I have tried tar but it aborts at 2Gbyte.

backup commmand aborts at 2Gbyte limit also.

I have increased hard ulimits to:

time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) unlimited
memory(kbytes) unlimited
coredump(blocks) 2097151
nofiles(descriptors) 2000

The NAS Appliance guys said to use cpio so I tried the following:

find / ! -fstype nfs ! -type s -print | cpio -oc $BUPFILE
This seems to work in that it goes beyond the 2GB limit from command line under my login and root.

When same command line is in script with >>$MAILMSG 2>&1
added on the end I get the echo line before the command in the mail message and a series of numbers.

----------------------------------------------------------------------------
[Fri Aug 29 02:25:46 PDT 2003] actual 'backup' command begins ...
----------------------------------------------------------------------------
0707070000010000010407770000020000020000330000130772334652000000200000000000.


Need help
# 2  
Old 09-02-2003
c'mon guys and gals 24 views and not a single idea!!
# 3  
Old 09-02-2003
Post your script - and realize that not everyone has a NA server in their data centers (ours was retired four months ago - after we found out it was obsolete and we could not get maintenance on it ).
# 4  
Old 09-02-2003
The actual script is too long. I exceed the 10000 character limit.
I don't readily see a way to attach a file to the message.
It does a fair amount of housekeeping prior to the backup

Rats!

The copy command line is given at the top of the thread.

Here is what it looks like in the actual script:

echo "${line}" >> $MAILMSG
#
# do the actual backup
#
datestamp "actual 'backup' command begins ..."
echo "${line}" >> $MAILMSG
cd $STARTDIR
find . ! -fstype nfs ! -type s -print | /bin/cpio -oc >$TAPEDRIVE >>$MAILMSG 2>&
1


I have been able to confirm that I get to the echo "${line}" >> $MAILMSG as shown at beginning of thread
Then I get the series of numbers and the filesize ends up 0


Any ideas would help!
Thx
# 5  
Old 09-02-2003
I would certainly expect that to fail!

> $TAPEDRIVE
send stdout to $TAPEDRIVE

>> $MAILMSG
send stdout to $MAILMSG in append mode

If you really want to mail yourself a copy of the cpio output you will need to use tee or something. Since you were complaining that the output was more than 2 GB, expect a lengthy mail message.
# 6  
Old 09-02-2003
$TAPEDRIVE is the variable. It is defined earlier in the script as

/mavesbu/backup

The directory /mavesbu is the nfs network appliance device.

I wish there was room to put the whole script.

The script is modified to point the backup to the nfs device rather than the tapedrive.
We have been using the script for several years to backup to tape using the backup command. I have modified to use the cpio command and set the variables to point to the directory and file that it should create but cannot get it to go to completion see the start of thread post.
# 7  
Old 09-02-2003
Maybe your backup script never worked.

When the shell encounters "> $TAPEDRIVE" It will open /mavesbu/backup and connect that file to stdout. If the file did not exist, it will be created. At this point, the output is destined to go to /mavesbu/backup.

Then the shell moves along to ">> $MAILMSG". Here it will open $MAILMSG in append mode and connect stdout to that. Now the output will go to whatever file is in MAILMSG. You have overridden the effect of your earlier "> $TAPEDRIVE". (Except that if the file was created, it will continue to exist.)

Next the shell encounters 2>&1 and so stderr will now go to where ever stdout is pointing.

At this point, the shell will run the pipeline. By the time that the cpio program is invoked, it has no file descriptors pointing to /mavesbu/backup.

The command was ok until ">> $MAILMSG" which is what is screwed you up. Are you sure that the original script had that?

Go to a completely empty directory. Try this command:
date > one >> two

What do you get in one? And in two? That syntax is wrong.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. SCO

Backup of files using NFS a faster way

Hi All! i am trying to copy files from a SCO Openserver 5.0.6 to a NAS Server using NFS. I have a cron job that takes 1.5 hours to run and most of the data is static. I would like to find a faster way. In the event I needed to running manually or avoid an issue with taking down the servers... (9 Replies)
Discussion started by: trolley
9 Replies

2. AIX

Cloning a system via mksysb backup from one system and restore to new system

Hello All, I am trying to clone an entire AIX virtual machine to a new virtual machine including all partitions and OS.Can anyone help me on the procedure to follow? I am not really sure on how it can be done.Thanks in advance. Please use CODE tags for sample input, sample output, and for code... (4 Replies)
Discussion started by: gull05
4 Replies

3. SCO

NFS umount shows the "Device busy (Error 16)"

Hi there After making a backup copy of it sometimes happens that when I want to unmount an NFS indicates the error:umount: /path_mount busy: Device busy (Error 16) if I run lsoff, I can not find the process that is blocking the application. I'm using OpenServer 5.0.2c as one NFS server ... (14 Replies)
Discussion started by: flako
14 Replies

4. AIX

Backup to a remote tape device. Is it possible?

Hi all The situation is as follows: We need to take an mksysb image from an AIX 6.1 server. From some reason (irrelevant to this discussion) this server does not have access to a local CD-ROM or a tape drive. We do have another server with AIX 6.1 (but different technology level) which got access... (1 Reply)
Discussion started by: abohmeed
1 Replies

5. Shell Programming and Scripting

Help with Backup Shell Script for Network Device Configuration backup

HI all, im new to shell scripting. need your guidence for my script. i wrote one script and is attached here Im explaining the requirement of script. AIM: Shell script to run automatically as per scheduled and backup few network devices configurations. Script will contain a set of commands... (4 Replies)
Discussion started by: saichand1985
4 Replies

6. UNIX for Advanced & Expert Users

how to make a full system backup excluding data and restoring it to a new system

Hi, In order to have a sand box machine that I could use to test some system changes before going to production state, I'd like to duplicate a working system to a virtual one. Ideally, I'd like to manage to do it this way : - Make a full system backup excluding the user file system (this... (7 Replies)
Discussion started by: pagaille
7 Replies

7. UNIX for Dummies Questions & Answers

Fishworks appliance file system ??

Hi, could any one please let me know what is Fishworks appliance file system ?? How could I find out whether given filesystem is on Fishworks appliance? Thanks, Paresh (0 Replies)
Discussion started by: masaniparesh
0 Replies

8. UNIX for Dummies Questions & Answers

backup to NFS mount Redhat-Solaris

Hi guys, I have a redhat laptop and a sun solaris 8 server networked together I created an nfs share on the sun server and backed up an image of the Redhat laptop to it. The Hard disk size of the laptop is 40Gb but I have about 38Gb free space on the sun server. So I compressed the image... (9 Replies)
Discussion started by: Stin
9 Replies

9. UNIX for Advanced & Expert Users

Showing Device Does Not Exist While Taking Backup

Friends, while taking backup on /dev/rmt/0cn it is showing device does not exists. I have checked /dev/rmt 0cn is present there with link file created in /devices/pci@8,700000/scsi@5/st@5,0:cn I have checked cd /devices/pci@8,700000/scsi@5 but st@5,0:cn is not there. But I found st@3,0:cn. ... (3 Replies)
Discussion started by: ailnilanjan
3 Replies

10. UNIX for Dummies Questions & Answers

cpio backup to a remote device..

Hi, Needing to perform a backup of one system to the tape unit on another system. Why, well because the local tape device is stuffed and I desparately need to have a backup completed successfully sooner rather than not at all. My question is how do I set the below code to allow me to perform... (3 Replies)
Discussion started by: Cameron
3 Replies
Login or Register to Ask a Question