Replacing a failed bootdisk

In the following example, the host has a failed bootdisk (c0t0d0). Fortunately, the system is using DiskSuite, with a mirror at c0t1d0. The following sequence of steps can be used to restore the system to full redundancy.


System Fails to Boot

When the system attempts to boot, it fails to find a valid device as required by the boot-device path at device alias "disk". It then attempts to boot from the network:


screen not found

Can't open input device

Keyboard not present. Using ttya for input and output.


Sun Ultra 30 UPA/PCI (UltraSPARC-II 296MHz), No Keyboard OpenBoot 3.27, 512 MB memory installed, serial #9377973,Ethernet address 8:0:20:8f:18:b5, Host ID: 808f18b5


Initializing Memory

Timeout waiting for ARP/RARP packet

Timeout waiting for ARP/RARP packet

Replace failed disk and restore redundancy

The administrator replaces the failed disk with a new disk of the same geometry. Depending on the system model, the disk replacement may require that the system be powered down. The replacement disk is then partitioned identically to the mirror, and state database replicas are copied onto the replacement disk. Finally, the metareplace command copies that data from the mirror to the replacement disk, restoring redundancy to the system.


# prtvtoc /dev/rdsk/c0t1d0s2 | fmthard -s - /dev/rdsk/c0t0d0s2

fmthard: New volume table of contents now in place

# installboot /usr/platform/sun4u/lib/fs/ufs/bootblk /dev/rdsk/c0t0d0s0

# metadb -f -a /dev/dsk/c0t0d0s5

# metadb -f -a /dev/dsk/c0t0d0s6

# metadb -i

flags first blk block count

a u 16 1034 /dev/dsk/cotodos5

a u 16 1034 /dev/dsk/c0t0d0s6

a m p luo 16 1034 /dev/dsk/c0t1d0s5

a m p luo 16 1034 /dev/dsk/c0t1d0s6

# metareplace -e d0 c0t0d0s0

d0: device c0t0d0s0 is enabled

# metareplace -e d1 c0t0d0s1

d1: device c0t0d0s1 is enabled

# metareplace -e d4 c0t0d0s4

d4: device c0t0d0s4 is enabled

Power Failure Alarm in Bandung

If there is messages like this :

Jan 14 05:05:15 osssvr picld[241] : Device PS1 unplugged
Jan 14 05:05:16 osssvr picld[241] : Device PS1 Plugged in

Then

indicates a power supply is inserted but the AC power cord is not plugged in.

so please as soon as the AC power cord is plugged in.

note : environment monitoring of a power supply occurs only if the power cord is plugged in.

Install & Setup RSC Software at Sun Fire v890

#unzip rsc2.2.2_packages_s8.zip
#pkgadd -d
#pwd
/tmp
#pkginfo grep rsc
#cd /usr/platform/SUNW,Sun-Fire-V890/rsc
#ls -la
#./rsc-config

Continue with RSC setup (yn): y

Set RSC date/time now (yn?) [y]: y
Server Hostname[ ]:
Edit customer info field (yns?) [n]: y
customer info (<= 40 char) [] : Telkom
Enable RSC Ethernet Interface (yns?) [n]: y
RSC IP mode : config
RSC IP address : 192.168.8.147
RSC IP Netmask : 255.255.255.0
RSC IP Gateway : 192.168.8.1
Enable RSC Alerts : n
Enable RSC Serial Port Interface : n
Setup RSC User Account : y
Username : admin
User permissions :cuar



...
...
...
...
...
...

Are you sure you want to reboot RSC (y/n) ? y

DONE

#eeprom diag-out-console=true
#eeprom output-device=rsc-console
#eeprom input-device=rsc-console

Repair Internal Disk at Sun Fire v890 at Telkom Medan

/dev/vx/rdsk/rootvol: UNREF DIR I=9397000 OWNER=root MODE=40755
/dev/vx/rdsk/rootvol: SIZE=512 MTIME=Jun 25 04:10 2008 (RECONNECTED)
/dev/vx/rdsk/rootvol: SIZE=0 MTIME=Feb 19 03:02 2009 (CLEARED)

WARNING - unable to repair the /filesystem. Run fsck manually (fsck -F ufs /dev/vxrdsk/rootvol). Exit the shell when done to continue the boot process.

...
...
...
Entering System Maintenance Mode

please run this below commands if there are error messages when the first booting like above :


ok>boot cdrom -s

after you boot into OK mode, please run these commands

#fsck -y /dev/rdsk/c1t0d0s0

#fsck -y /dev/rdsk/c1t1d0s0

#sync

#sync

#eeprom diag-level=min

#eeprom diag-switch?=true

#init 0

ok>boot


Note :
Usually the system will resync the volume automatically, so pls run these commands to check the process.

#vxtask list

#scstat -p

Sun Storage 3320


Cluster Diagram with 2 Node


My First Posting

This is a note on my first blog ...
I am interesting to create a blog as a strong desire to document and share my experiences