HP DL785 Sun Solaris 10 Deployment Guide for HP ProLiant Servers - Page 36

Unmirroring disks with DiskSuite

Page 36 highlights

/dev/md/dsk/d6 /dev/md/rdsk/d6 /opt ufs 2 yes nosuid,logging swap - /tmp tmpfs - yes 11. Reboot the system. # lockfs -fa # init 6 12. Attach the second submirror to the mirror. This causes the data from the boot disk to be synchronized with the mirrored drive. You can run metastat to track the mirroring progress. # metattach d0 d20 # metattach d1 d21 # metattach d4 d24 # metattach d5 d25 # metattach d6 d26 # metattach d7 d27 13. Change the crash dump device to the DiskSuite swap metadevice (Solaris 7 and later). # dumpadm -d `swap -l | tail -1 | awk '{print $1}'` 14. Determine the physical device path of the mirror disk. $ ls -l /dev/dsk/c0t1d0s0 lrwxrwxrwx 1 root root 50 Jan 16 10:20 /dev/rdsk/c0t1d0s0 -> ../../devices/pci@1f,0/pci@1,1/ide@3/dad@1,0:a Replace the major name (e.g. dad) in the physical device path with disk when creating the device alias below. 15. Create a mirror device alias for the mirror disk: # eeprom "nvramrc=devalias mirror /pci@1f,0/pci@1,1/ide@3/disk@1,0:a" # eeprom "use-nvramrc?=true" You can also configure the device alias from the Open Boot (ok) prompt: nvalias mirror /pci@1f,0/pci@1,1/ide@3/disk@1,0:a You might want to add the mirror device alias to the boot-device Open Boot parameter in case of a problem with the standard boot device. For instance: # eeprom boot-device boot-device=disk net In case of an issue with the disk device alias, the system attempts to boot from the mirror device alias and then the network with the following change. # eeprom "boot-device=disk mirror net" From the Open Boot prompt, type boot mirror to boot from the mirror disk. 16. If you only have two internal disks (for example,. the boot disk and mirror disk), consider adding the following parameter to /etc/system to bypass the SVM/DiskSuite quorum rule. set md:mirrored_root_flag = 1 Without this parameter, the system will not boot in multiuser mode if half or fewer of its state database replicas are available. Unmirroring disks with DiskSuite 1. Detach the mirror from its sub-mirror using metadetach mirror sub-mirror 2. Check the status of the mirror using metastat. 3. Detach the mirror. metastat -p will list the sub-mirrors and the mirrors associated. Optional configuration tasks 36

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54

Optional configuration tasks 36
/dev/md/dsk/d6 /dev/md/rdsk/d6 /opt ufs 2 yes nosuid,logging
swap - /tmp tmpfs - yes -
11.
Reboot the system.
# lockfs -fa
# init 6
12.
Attach the second submirror to the mirror. This causes the data from the boot disk to be
synchronized with the mirrored drive. You can run
metastat
to track the mirroring progress.
# metattach d0 d20
# metattach d1 d21
# metattach d4 d24
# metattach d5 d25
# metattach d6 d26
# metattach d7 d27
13.
Change the crash dump device to the
DiskSuite
swap metadevice (Solaris 7 and later).
# dumpadm -d `swap -l | tail -1 | awk '{print $1}'`
14.
Determine the physical device path of the mirror disk.
$ ls -l /dev/dsk/c0t1d0s0
lrwxrwxrwx 1 root root 50 Jan 16 10:20 /dev/rdsk/c0t1d0s0 ->
../../devices/pci@1f,0/pci@1,1/ide@3/dad@1,0:a
Replace the major name (e.g. dad) in the physical device path with disk when creating the
device alias below.
15.
Create a mirror device alias for the mirror disk:
# eeprom "nvramrc=devalias mirror
/pci@1f,0/pci@1,1/ide@3/disk@1,0:a"
# eeprom "use-nvramrc?=true"
You can also configure the device alias from the Open Boot (ok) prompt:
nvalias mirror /pci@1f,0/pci@1,1/ide@3/disk@1,0:a
You might want to add the mirror device alias to the boot-device Open Boot parameter in case
of a problem with the standard boot device.
For instance:
# eeprom boot-device
boot-device=disk net
In case of an issue with the disk device alias, the system attempts to boot from the mirror device
alias and then the network with the following change.
# eeprom "boot-device=disk mirror net"
From the Open Boot prompt, type boot mirror to boot from the mirror disk.
16.
If you only have two internal disks (for example,. the boot disk and mirror disk), consider adding
the following parameter to
/etc/system
to bypass the SVM/DiskSuite quorum rule.
set md:mirrored_root_flag = 1
Without this parameter, the system will not boot in multiuser mode if half or fewer of its state
database replicas are available.
Unmirroring disks with DiskSuite
1.
Detach the mirror from its sub-mirror using
metadetach mirror sub-mirror
2.
Check the status of the mirror using
metastat
.
3.
Detach the mirror.
metastat -p
will list the sub-mirrors and the mirrors associated.