ufsdump from Solaris to ubuntu fails with bad file descriptor


 
Thread Tools Search this Thread
Operating Systems Linux Ubuntu ufsdump from Solaris to ubuntu fails with bad file descriptor
# 1  
Old 06-17-2011
ufsdump from Solaris to ubuntu fails with bad file descriptor

Hi All

I have a dedicated backup server running ubuntu 10.04, which has recently been rebuilt (same OS, just different h/w)

This is used to receive ufsdump output from a number of Solaris servers, using the following syntax:

Code:
ufsdump 1uf [remote server]:/path/to/backup/file /fs/to/be/backed/up

This has worked fine up until the rebuild of the backup server, when I'm now getting the following error:

Code:
DUMP: write: bad file descriptor
DUMP: Write error 0 blocks into volume 1

Other commands work OK, such as tar, rcp, rsh, and so on. It's just the ufsdump that's suddenly failing!

I've looked at things like max num of files (OK) and permissions on the backup server's destination (OK), to no avail.....

I've even tried googling the error, but no-one seems to have come across this problem, or else they've not mentioned it online!

Can anyone help / suggest anything that might cause this? I'm assuming there's some issue between the ufsdump output and negotiations with the ubuntu server's filesystem, but I can't see what Smilie

Thanks
Dave Parker

Last edited by pludi; 06-17-2011 at 07:36 AM..
This User Gave Thanks to in2deep For This Post:
# 2  
Old 06-27-2011
SOLVED?

May have found a solution to my problem.....

As a test I tried to run "restore" on the ubuntu server, only to be told that it wasn't available!

"click"

I installed the dump package, which brings in "dump" and "restore", and then tried to run a remote dump as originally, and it appeared to work successfully!

So, does "dump" add something to the filesystem to alter the file descriptors? Perhaps the remote ufsdump needs to refer to something on the server that is only provided by having dump installed....?

Who knows, but it seems to work now Smilie
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Bad file descriptor - error with sed

I'm learning SED command. And while doing that i got to this place where i'm taking a copy of my existing file. The code i used is - sed -n '/Storm/ w Storm.txt' books.txt As expected, the file 'books.txt' is read , and lines with 'Storm' is put in to the new file 'Storm.txt'. However, it also... (4 Replies)
Discussion started by: justo
4 Replies

2. Solaris

Solaris 10 - ufsdump hangs

Anyone ever see an issue where ufsdump 'hangs' after the IV Pass? Normally, it will update with an estimate of how long it will take to complete...and update the info every 20 minutes. I'm running the following command: root# ufsdump 0f - /fsmount | ( cd /zfs/newfsmount ) ; ufsrestore rf - )... (2 Replies)
Discussion started by: RTM
2 Replies

3. Solaris

Bad exchange descriptor : not able to remove files under zpool

Hi , One of my zone went down and when i booted it up i could see the pool in degraded state with some check sum errors . we have brought the pool online after scrubbing. But few files are showing this error Bad exchange descriptor Please let me know how to remove these files (2 Replies)
Discussion started by: chidori
2 Replies

4. Solaris

Ufsdump Solaris 11

Hello, i have a solaris 11 sparc64 and Im trying to do a backup to tape. This is the display: # ufsdump 0uf /dev/rmt/0cbn /dev/rdsk/c2t0d0s2 DUMP: Date of this level 0 dump: February 27, 2013 01:58:23 PM CET DUMP: Date of last level 0 dump: the epoch DUMP: Dumping /dev/rdsk/c2t0d0s2 to... (2 Replies)
Discussion started by: Ferch13
2 Replies

5. Shell Programming and Scripting

Error in the o/p says bad file descriptor...

grt=`sort -nr line_count.txt|head -1` while read $dline do if $grt" -eq "`wc -l combo_operncount.$dline|awk '{print $1}'`" ] then awk -F, '{print $1}' combo_operncount.$dline > FULLD7 else echo combo_operncount.$dline >> filecoll.txt fname=`cat filecoll.txt|tr -s "\n" " "` echo $fname... (6 Replies)
Discussion started by: nikhil jain
6 Replies

6. Programming

utime returning -1 BAD File DEscriptor

Hi All, First of all thanks for reading this post. In my application, I am trying to create a new message queue . I am attaching the code below. mqd_t mqopen2(const char * pName, unsigned long Flags, long maxMsg, long msgSz) {... (15 Replies)
Discussion started by: parusasi
15 Replies

7. Ubuntu

[UBUNTU] mount.nfs fails in Ubuntu / Works on Red Hat!!!

Gurus, I want log in locally to my Lucid (10.04) workstation and have my code saved over the network on my samba account At work, all developers have samba user ids and when we were running Red Hat, we went thru the following procedure to get setup. * open a shell session to NFS server... (2 Replies)
Discussion started by: alan
2 Replies

8. Ubuntu

Ubuntu Server 810 Telnet ** I know its Bad.. But **

I have a real need to telnet into my new Ubuntu 8.10 server and have Googled my eyes out with ideas that don't work. I CAN telnet out of the server, but I CANNOT telnet into it (connection refused error). I have updated my resolv.conf file but its expert time. ANY IDEAS??? THANKS!!! I knew I was... (13 Replies)
Discussion started by: gbxfan
13 Replies

9. UNIX for Dummies Questions & Answers

bad upgrade to 8.10 and ubuntu doesn't boot afterwards.

at the end of October i upgraded the distro to 8.10 at first it seemed fine until i restarted my machine the boot seqence started i logged in after that nothing? tried booting again and the same thing happened did i do something wrong during the upgrade to 8.10 did everything the computer asked me... (1 Reply)
Discussion started by: ksnovice
1 Replies

10. UNIX for Dummies Questions & Answers

bad file descriptor?

Ok, I'm sure this is a total newbie question, but I think I'm in the right place, no? I'm trying to call a perl module from a cgi script - Mail::Sendmail - and my web host installed the module in a directory that doesn't seem to be accessible, at least not the way I'm trying. But I thought you... (1 Reply)
Discussion started by: ftb
1 Replies
Login or Register to Ask a Question