Sponsored Content
Full Discussion: remote ufsdump permissions
Top Forums UNIX for Advanced & Expert Users remote ufsdump permissions Post 302076180 by jabberwocky on Friday 9th of June 2006 10:41:09 AM
Old 06-09-2006
remote ufsdump permissions

Hi,

I have two solaris 9 boxes:
SunOS bmsapp01 5.9 Generic_118558-06 sun4u sparc SUNW,Sun-Fire-V440
and
SunOS bmsdb01 5.9 Generic_118558-06 sun4u sparc SUNW,Sun-Fire-V440.
The bmsapp01 server has a SDLT tape drive attached to it. I am trying to perform a remote ufsdump to the tape drive on bmsapp01 from bmsdb01.
I have performed this on other Sun server combinations successfully (backing up the database server to the tape drive on the application server) using the syntax from the command line as root on the database server:

ufsdump 0fuc - <filesystem> | rsh <applicationserver> dd of=/dev/rmt/0cbn

These machines are behind a very secure firewall so there has not been a problem with creating the .rhosts file in / on the application server.

However on the two Sun servers listed above, performing a remote ufsdump gives:

# ufsdump 0fuc - / | rsh bmsapp01 dd of=/dev/rmt/0cbn
DUMP: Date of this level 0 dump: Fri 09 Jun 2006 02:32:21 PM BST
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/md/rdsk/d10 (bmsdb01:/) to standard output.
dd: /dev/rmt/0cbn: open: Permission denied
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 63 Kilobyte records
DUMP: Estimated 10872978 blocks (5309.07MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Broken pipe
DUMP: The ENTIRE dump is aborted.

The remote tape drive can be contacted from the database server and its status can be checked:

# rsh bmsapp01 mt -f /dev/rmt/0cbn status
Quantum Super DLT 320 tape drive:
sense key(0x7)= Write Protected residual= 0 retries= 0
file no= 0 block no= 0

The tape drive can be written to from the application server correctly using the ufsdump syntax:

bash-2.05# ufsdump 0fuc /dev/rmt/0bcn /
DUMP: Date of this level 0 dump: Fri 09 Jun 2006 02:41:04 PM BST
DUMP: Date of last level 0 dump: the epoch
DUMP: Dumping /dev/md/rdsk/d10 (bmsapp01:/) to /dev/rmt/0bcn.
DUMP: Mapping (Pass I) [regular files]
DUMP: Mapping (Pass II) [directories]
DUMP: Writing 63 Kilobyte records
DUMP: Estimated 16548348 blocks (8080.25MB).
DUMP: Dumping (Pass III) [directories]
DUMP: Dumping (Pass IV) [regular files]
DUMP: 16.95% done, finished in 0:48
DUMP: 34.01% done, finished in 0:38
DUMP: 47.56% done, finished in 0:33
DUMP: 61.64% done, finished in 0:24
DUMP: 77.43% done, finished in 0:14
etc...

So the tape can be written to locally, and its status can be checked remotely. However it cannot be written to remotely. The ufsdump is performed as root.
The entry in /.rhosts on bmsapp01 is + + and the permissions on /dev/rmt/0cbn are:

bash-2.05# ls -lt /dev/rmt/0cbn
lrwxrwxrwx 1 root other 45 May 31 2005 /dev/rmt/0cbn -> ../../devices/pci@1c,600000/scsi@1/st@5,0:cbn

The permissions on /devices/pci@1c,600000/scsi@1/st@5,0:cbn are:

bash-2.05# ls -lt /devices/pci@1c,600000/scsi@1/st@5,0:cbn
crw-rw-rw- 1 root sys 33,221 Jun 9 02:55 /devices/pci@1c,600000/scsi@1/st@5,0:cbn

Does anyone have any idea of why there is a permissions problem when performing a remote ufsdump and how this can be overcome?

Thanks in anticipation,

J
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Ufsdump

I want to try using Ufsdump for backups . The man pages state that the file systems should be inactive or be in the unmounted state . But for that system should be in single User mode. My query is that can we perform Ufsdump in run-level 3 ? And if no should I have to reboot it in Single user... (3 Replies)
Discussion started by: DPAI
3 Replies

2. UNIX for Dummies Questions & Answers

ufsdump

hi i would like to backup my OS what is the exact command to do? beside backup to tapes can i back up to a directory in another server? will the command be the same? thanks. :confused: (4 Replies)
Discussion started by: legato
4 Replies

3. UNIX for Advanced & Expert Users

chmod (permissions) * not working on remote server

Hi gurus ! I am developing a FTP script which will copy all the files from one server to another server and then I need to use CHMOD 755 * to set permissions of all the files just copied to the remote server. mput * chmod 755 * CHMOD gives me an error CHMOD works fine If I specify... (3 Replies)
Discussion started by: sdlayeeq
3 Replies

4. Solaris

ufsdump

Hi, I want to how to take backup of File system From Disk to Disk using ufsdump? Wheather we can take the backup of root file system from one disk to another if tape drive is not available? wheather it is reliable to restore root file system? (2 Replies)
Discussion started by: manoj.solaris
2 Replies

5. UNIX for Advanced & Expert Users

ufsdump and restore

I just completed a level 0 ufsdump of the following files:- ufsdump 0uf /dev/rmt/0n / ufsdump 0uf /dev/rmt/0n /usr ufsdump 0uf /dev/rmt/0n /export/home ufsdump 0uf /dev/rmt/0n /oracle ufsdump 0uf /dev/rmt/0n /sapr3 I need to restore ALL the files onto a different machine and continue... (1 Reply)
Discussion started by: charleywasharo
1 Replies

6. UNIX for Dummies Questions & Answers

Ufsdump

Hi, I have 5 soraris boxes and i am trying to backup all to SAN.Which backup is more suitable tar or ufsdump? Also pls mention what are the important folders i need to back up. Thanks (3 Replies)
Discussion started by: solaris5.10
3 Replies

7. Solaris

ufsdump to a remote server

Hello, how can I use ufsdump utility for filesystem backup to a remote directory on a server dedicated for backups ( over network) ?? (3 Replies)
Discussion started by: mm00123
3 Replies

8. Solaris

Making backup with ufsdump to remote mounted filesystems

Hi Unix members. I am trying to make a backup to remote mounted filesystems : fileraseing:/vol/oracliente_revap01 10G 1.3G 8.7G 13% /orarev_ap01 fileraseing:/vol/bobje 10G 5.9G 4.1G 60% /bobje But I am receiving the follow message when use the ufsdump command: :$PWD>ufsdump 0fu... (8 Replies)
Discussion started by: aggadtech08
8 Replies

9. UNIX for Dummies Questions & Answers

How to do a ufsdump remote?

People i have 2 sun sparc solaris 10. I have one filesystem to 98% and i need to do a ufsdump of that filesystem. THe problem is that i don't have space to allocate the dump of the filesystem. Thats why i want to do it from the other sun and bring the ufs dump to de /FREE filesystem. ... (4 Replies)
Discussion started by: enkei17
4 Replies

10. Solaris

ufsdump

Experts, Before patching am advised to take backup : so am going with: ufsdump -0uf /dev/rmt0 / ---> to take the whole / bkp to tape. some servers have /var in diff slice, In this case whether i need to take backup of /var also in tape? ufsdump -ouf /dev/rmt0 /var ---> to take... (3 Replies)
Discussion started by: fizan
3 Replies
ctsmc(7D)							      Devices								 ctsmc(7D)

NAME
ctsmc - System Management Controller driver DESCRIPTION
The ctsmc system management controller driver is a multithreaded, loadable, clonable STREAMS hardware driver that supports communication with the system management controller device on SUNW,NetraCT-410, SUNW,NetraCT-810 and SUNW,Netra-CP2300 platforms. The smc device provides a Keyboard Controller Style (KCS) interface as described in the Intelligent Platform Management Interface (IPMI) Version 1.5 specification. The ctsmc driver enables user-land and kernel-land clients to access services provided by smc hardware. FILES
/dev/ctsmc ctsmc special character device /platform/sun4u/kernel/drv/sparcv9/ctsmc 64 bit ELF kernel driver ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Architecture |SPARC | +-----------------------------+-----------------------------+ |Availability |SUNWcar.u | +-----------------------------+-----------------------------+ SEE ALSO
attributes(5) STREAMS Programmers Guide Writing Device Drivers Intelligent Platform Management Interface (IPMI). Version 1.5 - PICMIG, February, 2001 SunOS 5.10 7 Dec 2003 ctsmc(7D)
All times are GMT -4. The time now is 02:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy