How to rebuild root disk - 280R

Hi!,

We have a SUN Server 280R (2 *36GB) disks. The disk with the root filesystem needs to be replaced! Lots of H/W error messages!

We have the new disk - but how do we go about re-building it!

Is there any document or location where I can get detailed re-build instructions?

Any help will be appreciated greatly!

hope you got a mirror, so have a look at:
man luxadm (remove_device & insert_device)
man metareplace

not as difficult as it seems :wink:

greetings pressy

Thanks for the quick response pressy!

No- the disks are not mirrored! This is development and we have only 2 disks!!

We do not have 'metareplace' but I did read the manual pages for 'luxadm' - Any idea where I can get more info/details?

I will look around for more info - Don't mean to be a slacker! but meanwhile it'll be of great help if you can provide more detailed instructions on 'how to do it'!

-- Our situation
Disk 0 -> root + some data
Disk 1 -> data

Disk2 -> New/replacement for Disk0
--

I was thinking something on these lines...

  1. Replace Disk1 with Disk2
  2. format - label- create partions on Disk2 similar to Disk0
  3. ufsdump '/' to mount point under Disk2.
  4. Replace Disk2 slot with Disk 1
  5. shutdown
  6. Replace Disk0 with Disk2
  7. Bootup
  8. Then what......?

Thanks!

not a mirror... hmmmm .. that makes it difficult.... your idea to rebuilt the root disk is a good idea....
so lets have a try:

shutdown your server and replace disk1. make a reconfiguration boot, so that solaris know the new disk and i would do that all in single user mode (boot -rs)
yes you have to ajust the partitions... to get the same try:
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2

the second part of ufsdump(M) is ufsrestore(M), so you can rebuild your data... now you have to install a bootblock, there must be a command called installblk (?), i don't know the path to your bootblock but when i will have time i will have a look on monday at my company...

after that step the system should run again......

if you need more info it will come on monday or thuesday so hold on :wink:

greetings pressy

got more information... :wink: the command was installboot(M)

the boot block is under:
/usr/platform/`uname -i`/lib/fs/ufs

to install it type:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0

greetings pressy

The rebuilding portion is easy. But do you know that 280R uses fiber channel disk? And FC disk has wwn name?

After doing all those pals here mention, if you didn't rename the boot device to the new wwn name, it's likely you can't boot up.

Yes , Pressy knows that the 280R uses FC-AL Disks..
Just look at his Profile: Solaris Cultist! :slight_smile:

hehe....
thx mate