SUMMMARY: tape failed, disk failed. how to ufsdump/restore via pi pes?

From: Schoep, Grant @ STORM (@)
Date: Tue Apr 08 2003 - 12:49:22 EDT


Thanks goes to the following for suggestions, help, and answers/
        
Rich Kulawiec
Crist Clark
Frank Velazquez
Mike Myers
Dave Plummer

Thanks for all the quick replies. The ufsdump/restore is working for me
now... no errors yet! The general consensus was was that my backup line was
good. Though two recommendations seemed like a good idea.

1. Mount the bad disk as read only, which saves me from going around to
everyone(all 4 of us now days) "Don't use this partition!

2. I can just use the symbolic names, instead of the /dev/dsk/c1t9d0s0 name.
This was helpful as I seemed to get a number of replies saying I SHOULD use
rdsk(raw device), and others that said I should NOT use rdsk. I figure if
the symbolic name works fine, it will be smart enough to use the correct
one.

So the following commands will work

1. locally
ufsdump 0f - /baddisk | (cd /newdisk; ufsrestore rf - )

2. Or remotely
ufsdump 0f - /baddisk | rsh remote-machine 'cd /newdisk; ufsrestore -rf -'

Thanks for the speedy replies
-grant

-----Original Message-----
From: Schoep, Grant @ STORM
Sent: Tuesday, April 08, 2003 10:20 AM
To: 'sunmanagers@sunmanagers.org'
Subject: tape failed, disk failed. how to ufsdump/restore via pipes?

Bad things seem to happen in pairs...

We have a disk that is slowly failing, usually dies after 24 hours of
operations. And today I planned on moving the stuff over to another disk.
While yippie... our tape drive just went dead.

I'm not much of a sysadmin, so I am hacking my way through this.
I know it is possible to ufsdump and then pipe it to a ufsrestore with
avoiding a tape drive. BUt... how do I do this? I could sit and figure it
out, but I am getting nervous as I figure that disk is going to die soon...

My guess was something like this, but I want to be sure what is correct as
the disk is already flaky and I want to avoid hitting it too many times
trying different things.

ufsdump 0f - /dev/dsk/c1t9d0s0 | (cd /newdisk; ufsrestore rf - )

I'm unclear when/if I need to use rdsk instead of dsk.

I also just can't ufsdump to a file, as the there are no other disks large
enough to dump, then restore it to...

Help
-grant
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:09 EDT