Sponsored Content
Top Forums UNIX for Dummies Questions & Answers Backup system to NFS Appliance device Post 39872 by Perderabo on Tuesday 2nd of September 2003 06:07:35 PM
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.
 

10 More Discussions You Might Find Interesting

1. 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

2. 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

3. 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

4. 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

5. 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

6. 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

7. 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

8. 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

9. 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

10. 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
scnas(1M)						  System Administration Commands						 scnas(1M)

NAME
scnas - manage network-attached storage (NAS) device configuration data for Sun Cluster. SYNOPSIS
scnas [-H] scnas -a [-H] [-n] -h device-name -t device-type -o specific-options [-f input-file] scnas -c [-H] [-n ] -h device-name -o specific-options [-f input-file] scnas -p [-H] [-h device-name] [-t device-type] scnas -r [-H ] -h device-name DESCRIPTION
Note - Beginning with the Sun Cluster 3.2 release, Sun Cluster software includes an object-oriented command set. Although Sun Cluster software still supports the original command set, Sun Cluster procedural documentation uses only the object-oriented command set. For more infor- mation about the object-oriented command set, see the Intro(1CL) man page. The scnas command manages NAS devices in a Sun Cluster configuration. To manage NAS directories in the cluster, use the scnasdir command. You can use the scnas command to create the NAS device configuration, to update the NAS type-specific properties, and to remove the device configuration from Sun Cluster. The options to this command are processed in the order in which they are typed on the command line. The scnas command can only be run from an active cluster node. The results of running the command are always the same, regardless of the nodethat is used. All forms of the scnas command accept the -H option. Specifying -H displays help information. All other options are ignored. Help informa- tion is also printed when scnas is run without options. The NAS device must be set up before using the scnas command to manage a NAS device. Refer to the documentation for the particular NAS device for procedures for setting up a device. You can use this command only in the global zone. OPTIONS
Basic Options The following options are common to all forms of the scnas command: -H If this option is specified on the command line at any position, the command prints help information. All other options are ignored and are not executed. Help information is also printed if scnas is run with no options. You can use this option only in the global zone. -n If this option is specified on the command line at any position, the scnas command only checks the usage and does not write the config- uration data. If the -n option is specified with the -f option, the scnas command checks the input file for the password. The following options modify the basic form and function of the scnas command. None of these options can be combined on the same command line. -a Specifies the add form of the scnas command. You can use this option only in the global zone. The -a option can be used to add a NAS device into the Sun Cluster configuration. Depending on the type of your NAS device, you might have to set additional properties. These required properties are also explained in the -t option description in the "Additional Options" section. -c Specifies the change form of the scnas command. The -c option is used to change specific NAS device properties. You can use this option only in the global zone. -r Specifies the remove form of the scnas command. The -r option is used to remove the NAS device from the Sun Cluster configuration. You can use this option only in the global zone. Before removing a device, all its exported directories must be removed by using scnasdir. -p Specifies the print form of the scnas command. You can use this option only in the global zone. When no other options are given, the -p option prints a listing of all the current NAS devices configured in Sun Cluster and all their associated properties. This option can be used with additional options to query a particular device or a particular type of device. Additional Options The following additional options can be combined with one or more of the previously described basic options to configure all properties for a device. The device does not need to be online to use these options. Refer to the SYNOPSIS section to see the options that can be used with each form of scnas. The additional options are as follows: -h device-name Use this option to specify the name of the NAS device in the Sun Cluster configuration. The device name identifies the device and can be used to remotely access the device by using rhs or telnet. This device name must be specified for the add, change, and remove forms of the scnas command. -t device-type The NAS device type. You must specify this option when you add a NAS device to the Sun Cluster configuration. The NAS device type is identified by the vendor name. You can specify either sun for a NAS device from Sun Microsystems, Inc. or netapp for a NAS device from Network Appliance, Inc. Different types of NAS devices have different or in some cases, no properties. -o specific-options Use this option to provide the properties that are specific to a NAS device type. For example, the NAS device from Network Appliance, Inc. has the following property: -o userid=userid Note - You do not specify properties for the NAS device from Sun Microsystems, Inc. As this device does not have any properties, the -f and -o options do not apply. The userid property is used by the cluster to perform administrative duties on the device. When you add a userid to the device configu- ration, you are prompted for its password. You can also place the password in a text file and use it by specifying the -f option. -finput-file For security reasons, the password cannot be specified in command-line options. To keep the password secure, place it in a text file and specify the file by using the -f option. If you do not specify an input file for the password, the command prompts for the pass- word. Note - You do not specify properties for the NAS device from Sun Microsystems, Inc. As this device does not have any properties, the -f and -o options do not apply. Set permissions of the input file to readable by root and prohibit access by either group or world. In the input file, the password cannot be entered across multiple lines. Leading white spaces and tabs are ignored. Comments begin with an unquoted pound (#) sign, and continue to the next new line. The parser ignores all comments. When you use an input file for the device user password, the # sign cannot be part of the password. EXAMPLES
Example 1 Adding a NAS Device From Sun Microsystems, Inc. to a Cluster The following scnas command adds a Sun Microsystems, Inc. storage system to the Sun Cluster configuration. # scnas -a -h sunnas1 -t sun Example 2 Adding a NAS Device From Network Appliance, Inc. to a Cluster The following scnas command adds a Network Appliance, Inc. storage system to the Sun Cluster configuration. # scnas -a -h netapp1 -t netapp -o userid=root Please enter password: Example 3 Removing a NAS Device From a Cluster The following scnas command removes a NAS device from the Sun Cluster configuration. # scnas -r -h sunnas1 EXIT STATUS
The following exit values are returned: 0 The command executed successfully. nonzero An error has occurred. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWsczu | +-----------------------------+-----------------------------+ |Stability |Evolving | +-----------------------------+-----------------------------+ SEE ALSO
Intro(1CL), clnasdevice(1CL), clquorum(1CL), cluster(1CL), scconf(1M), scnasdir(1M) Sun Cluster 3.2 6 Sep 2007 scnas(1M)
All times are GMT -4. The time now is 01:41 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy