Share Tape drive between Solaris servers


 
Thread Tools Search this Thread
Operating Systems Solaris Share Tape drive between Solaris servers
# 1  
Old 10-03-2012
Share Tape drive between Solaris servers

Hi,

I have two solaris servers running Oracle Applications. One is SPARC 5.9 and other one is SPARC 5.10
I want to share the tape drive attached to 5.10 with other machine so that i can enhance my backup strategy for backing up Oracle DB.

I tried to share my tape drive by performing the below which I got it from one forum

1. On the server with the tape drive, you must share this drive to the other servers. Go to the /etc/dfs/dfstab file and enter the following line:
share -F nfs -o rw /path/nameoftapedrive
2. To share it out you must type the command: shareall
note: you must be root to do all this.
3. From the server you want to back up mount the tape drive to a local directory something like this:
mount server1:/path/drivename /mnt
4. back up the server info to that mount point which is your tape drive.
5. unmount the drive

But i got the below error when sharing

root@KSEBSDB # shareall
share_nfs: /devices/pci@2,600000/LSI,sas@0/iport@80/tape@w500110a001392e28,0:n: Operation not applicable

Could you kindly help me on to proceed with this.

Regards,
Srinath
# 2  
Old 10-03-2012
Here is a workaround - use tar and rsh (or ssh)
nfs is for filesystems, I have never seen it documented for use on tape drives. Tape drives do not have filesystems like disks do. Which is why you can use dd to write directly to a tape device. But not a disk device.



here is how to use tar to get files from a tape on the remote system back to the local system:

restore from remote
Code:
 rsh -n hostname dd if=/dev/rmt/0 bs=20b | tar xvBfb - 20 [ file list ... ]

files to remote archive
Code:
tar cvfb  -  20[list of files ...] | rsh host dd of=/dev/rmt/0  obs=20b

20 is the tape block size: 20 bytes

Last edited by jim mcnamara; 10-03-2012 at 11:54 PM..
# 3  
Old 10-04-2012
HI Jim,

Thanks for your reply. I have to copy the entire mount point.

I have the below 2 mount points /db1 and /db2 on solaris 9
Code:
 
/dev/dsk/c1t2d0s0    70592505 63624124 6262456    92%    /db1
/dev/dsk/c1t3d0s0    70592505 42817688 27068892    62%    /db2

I have to copy these files to the tape drive on solaris 10.

I also tried the way you suggested for copying files under a particulat directory and i got the below error
Code:
$ tar cvfb -20 /dev01/oracle/patch/13496672/u13496672.drv | rsh 192.168.0.27 of=/dev/rmt/0n obs=20b
tar: invalid blocksize "/dev01/oracle/patch/13496672/u13496672.drv".
permission denied.

Regards,
Srinath

Last edited by fpmurphy; 10-04-2012 at 05:34 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Install ext DLT Sun Tape drive on V445 Solaris 10

I have a SunFire V445 running Solaris 10 and am adding a Sun DLT tape drive. From the OK prompt the probe-scsi-all does see the drive and it is the proper target of 4. When I do the boot -- -r it does build the /dev/rmt directories correctly and the links to /devices appear correct as well. When I... (8 Replies)
Discussion started by: chastings
8 Replies

2. Solaris

NFS- share drive question

Ok. Here is the situation, I have server A which need to access /tmp folder of server B. Can I mount NFS share (/tmp) from client (serverA)?please let me know (3 Replies)
Discussion started by: sam101
3 Replies

3. Solaris

Backup files to tape drive on solaris

Hi, I want to take backup of files older than 20 days from a directory onto a tape drive on remote machine on Solaris. The files are of format abc-20100301000000.gz on my local machine. I know the below commands for searching files older than x days and command for backup procedure. solar1 #... (7 Replies)
Discussion started by: jyothi_wipro
7 Replies

4. AIX

Share Blade IBM Tape drive with Windows Server

Hi , We have a Blade Chassis H housing 4 servers. It has a single tape drive. Can i share this tape drive with a HP Server Running Windows Server 2003? They are in the same LAN btw. (0 Replies)
Discussion started by: muzahed
0 Replies

5. Solaris

configure tape drive to sun solaris 10

Hi everyone. Im new to Sun Solaris or the Unix environment. My only background is the DOS command in windows and a little bit of c++ programming. I always worked with troubleshooting hardware and software issues with windows. Now that I need to configure tape drives using sun solaris, I had... (11 Replies)
Discussion started by: graboid888
11 Replies

6. Solaris

Configuring HP Tape Drive HP Q1553A on Solaris 10

Hi All, Need some help............. I have a Solaris 10 installed on x86 PC. I need some help on how to configure my HP Q1553A tape drive StorageWorks DAT 40 It is connected via Adaptec PCI SCSI card. I tried to check the drive using commands Command Output ls... (1 Reply)
Discussion started by: real-chess
1 Replies

7. UNIX Desktop Questions & Answers

How share X servers for pair programming?

VNC will let me share a desktop with another user. Will "xhost +" and "ssh -X" allow me to do this? Thanks, Siegfried (0 Replies)
Discussion started by: siegfried
0 Replies

8. Linux

linux backup to solaris tape drive

All, Has anybody ever got a Linux server to backup to a remote Solaris tape drive using the dump command and rsh? I can remtoely backup two Solaris server this way. Any help would be appreciated. Thanks, Mike (0 Replies)
Discussion started by: bubba112557
0 Replies

9. Filesystems, Disks and Memory

Tape Drive Connected to a Sun Ultra 10/Solaris 2.7

I have a Sun Ultra 10/Solaris 2.7 with a differential SCSI card connected to a Supter DLt1 Tape Drive. When I boot the machine, and I do a probe-scsi-all in the very beginning of the boot process. It shows up correctly. If I wait for the boot process to proceed and then I do a probe-scsi-all, I get... (1 Reply)
Discussion started by: brv
1 Replies
Login or Register to Ask a Question