Sie sind auf Seite 1von 2

Solaris 8 (CD 2 of 2) –

/cdrom/sol_8_100_sparc_2/Solaris_8/EA/products/DiskSuite_4.2.1/sparc/Pa
ckages #pkgadd –d .

Solaris 9 (pre-installed) # metattach d0 d20


# metattach d1 d21
# metattach d5 d25
Mirror root disk
Primary disk - c0t0d0 4. Install bootblock at secondary disk :
Secondary disk - c0t1d0
# cd /usr/platform/sun4u/lib/fs/ufs
# dd if=/dev/rdsk/c1t0d0s2 of=/dev/rdsk/c0t1d0s2 count=16 # installboot bootblk /dev/rdsk/c0t1d0s0

# metadb -f -a -c3 c0t0d0s7 c0t1d0s7 5. Enable mirror disk to be bootable :

1. slice s0 = / # ls -l /dev/rdsk/c0t1d0s0
lrwxrwxrwx 1 root root 50 Aug 1 10:48 /dev/rdsk/c0t1d0s0 ->
# metainit -f d10 1 1 c0t0d0s0 ../../devices/pci@1f,0/pci@1,1/ide@3/dad@1,0:a,raw
# metainit d20 1 1 c0t1d0s0 OK> show-disks
# metainit d0 -m d10 OK> nvalias root-mirror pci@1f,0/pci@1,1/ide@3/dad@1,0:a,raw

# metaroot d0 dumpadm –d /dev/md/dsk/d1 : : (swap)

2. slice s1 = swap s5 = /var NOTE :

# metainit -f d11 1 1 c0t0d0s1 # metainit -f d15 1 1 c0t0d0s5 # metadb -i


# metainit d21 1 1 c0t1d0s1 # metainit d25 1 1 c0t1d0s5 # metadb -d c0t1d0s7
# metainit d1 -m d11 # metainit d5 -m d15 # metadettach –f d0 d10
# metareplace -e d0 c0t1d0s0
3. vi /etc/vfstab # metastat
# metastat –p
/dev/md/dsk/d0 /dev/md/rdsk/d0 / ufs 1 no -
/dev/md/dsk/d1 - - swap - no - # metastat –t d0 ( to view time)
/dev/md/dsk/d5 /dev/md/rdsk/d5 /var ufs 1 no - # metastat | grep –i metareplace

# metainit hsp001

# lockfs -fa

# init 6
Online Recovering Failure Disk (Fibre) Online Recovering Failure Disk (SCSI)

# format - identify faulty disk & WWN number # metadetach d0 d21


# luxadm probe - verify the Logical Path – disk & WWN number # metaclear d21
# cfgadm –al
# luxadm remove_device -F /dev/rdsk/c0t1d0s2 # cfgadm –c unconfigure c::dsk/c0t1d0

WARNING! Please ensure that no filesystems are mounted on these device(s). All Physically remove disk and insert new disk
data on these devices should have been backed up.
# cfgadm –c configure c::dsk/c0t1d0
The list of devices which will be removed is :
# dd if=/dev/rdsk/c0t1d0s2 of=/dev/rdsk/c0t1d0s2 count=16
1 : Device name : /dev/rdsk/c0t1d0s2
Node WWN : 21000000871b1226 # metainit d21 1 1 c0t1d0s0
Device Type : Disk device # metattach d0 d21
Device Path : /dev/rdsk/c0t1d0s2
Recovering State Database Replicas
Please verify the above list of devices and then enter ‘c’ or <CR> to Continue or ‘q’ to
Quit. [Default: c] : <ENTER> Insufficient metadevice database replicas located. Use metadb to delete
databases which are broken. Ignore any “Read-only system” error
Stopping : /dev/rdsk/c0t1d0s2 …… DONE
messages. Reboor the system when finished to reload the metadevice
Offlining : /dev/rdsk/c0t1d0s2 …… DONE
database. After reboot, replicas which were deleted.
**Physically remove the disk
Type Ctrl-d to proceed with normal startup,
(or give root password for system maintenance):
# devfsadm –C
# metadb -d -f c0t1d0s7
# luxadm insert_device
# init 6
Please hit <RETURN> when you have finished adding Fibre Channel Enclosure(s) / # prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t1d0s2
Device(s) : # metadb -f -a c0t1d0s7
# metareplace -e d0 c0t1d0s0
**Physically insert the disk then press <ENTER>

# dd if=/dev/rdsk/c0t0d0s2 of=/dev/rdsk/c0t1d0s2 count=16 Expand an existing UFS file system


# metadb -a -c3 c0t1d0s7
# metareplace -e d0 c0t1d0s0 :: and remaining partitions :: # metattach -a d16 /dev/dsk/c0t0d0s6
# metattach -a d26 /dev/dsk/c0t1d0s6
* Optional :
- May require to medettach & metaclear the submirror b4 run luxadm # metastat -p d26
- Metainit & metattach after run dd command # growfs -M /var /dev/md/rdsk/d26

Das könnte Ihnen auch gefallen