Unix Technical Forum

ufsdump error

This is a discussion on ufsdump error within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> When trying to use "ufsdump 0f /dev/rmt/0cn /usr" I get the following error.... DUMP: Unexpected condition detected: /dev/rmt/0cn must ...


Go Back   Unix Technical Forum > Unix Operating Systems > Solaris Operating System > Sun Solaris Administration

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-16-2008, 11:34 AM
f.nardis@gmail.com
 
Posts: n/a
Default ufsdump error

When trying to use "ufsdump 0f /dev/rmt/0cn /usr" I get the following
error....

DUMP: Unexpected condition detected: /dev/rmt/0cn must have exactly
one link.
DUMP: Needs Attention: cannot open 'eagle:/dev/rmt/0cn'

The drive is OK - I can dump to /dev/rmt/0c, tar also works to /dev/
rmt/0cn.
boot -r did not fix it.
Sun external scsi tape (Exabyte 8900 Mamoth) on Solaris 9

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 01-16-2008, 11:34 AM
Oscar del Rio
 
Posts: n/a
Default Re: ufsdump error

f.nardis@gmail.com wrote:
> When trying to use "ufsdump 0f /dev/rmt/0cn /usr" I get the following
> error....
>
> DUMP: Unexpected condition detected: /dev/rmt/0cn must have exactly
> one link.


Never seen that before, but it's explained in the source code:
http://cvs.opensolaris.org/source/xr...ump/dumpmain.c


1482 * Bad link count implies someone's linked our
1483 * target to something else, which we probably
1484 * shouldn't step on.
1485 */
1486 if (post_lstat.st_nlink != 1) {
1487 errtext = gettext(
1488 "Unexpected condition detected: %s must have exactly one link\n"),
1489 msg(errtext, filename);
1490 syslog(LOG_WARNING, errtext, filename);
1491 (void) close(fd);
1492 errno = EPERM;
1493 return (-1);
1494 }


So check if anyone made a hard link to the device, check the link count with ls
-li, ls -liL and find the other links that have the same inode.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 08:25 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com