Swap: lvol2 on: /dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t5d0, 0
# pvdisplay –v /dev/dsk/c2t15d0 | more
…
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg01/lvol1 4340 4340
…
# lvdisplay –v /dev/vg01/lvol1 | grep “Mirror copies”
Mirror copies 1
# lvdisplay -v /dev/vg01/lvol1 | grep –e /dev/dsk/c2t15d0 –e ’???’ | more
00000 /dev/dsk/c2t15d0 00000 current /dev/dsk/c5t15d0 00000 current
00001 /dev/dsk/c2t15d0 00001 current /dev/dsk/c5t15d0 00001 current
00002 /dev/dsk/c2t15d0 00002 current /dev/dsk/c5t15d0 00002 current
00003 /dev/dsk/c2t15d0 00003 current /dev/dsk/c5t15d0 00003 current
…
The lvlnboot command confirms that the disk is not in the root volume group. The pvdisplay
command shows which logical volumes are on the disk. The lvdisplay command shows that all
data in the logical volume has a current mirror copy on another disk. Enter the following commands to
continue with the disk replacement:
# pvchange -a N /dev/dsk/c2t15d0
# <replace the hot-swappable disk>
# vgcfgrestore –n vg01 /dev/rdsk/c2t15d0
# vgchange –a y vg01
Scenario 2: No Mirroring and No LVM Online Replacement
In this example, the disk is still hot-swappable, but there are unmirrored logical volumes and the LVM
OLR functionality is enabled on the system or not. Disabling LVM access to the logical volumes is more
complicated, since you must find out what processes are using them.
The bad disk is represented by device special file /dev/dsk/c2t2d0. Enter the following
commands:
# lvlnboot –v
Boot Definitions for Volume Group /dev/vg00:
Physical Volumes belonging in Root Volume Group:
/dev/dsk/c0t5d0 (0/0/0/3/0.5.0) -- Boot Disk
Boot: lvol1 on: /dev/dsk/c0t5d0
Root: lvol3 on: /dev/dsk/c0t5d0
Swap: lvol2 on: /dev/dsk/c0t5d0
Dump: lvol2 on: /dev/dsk/c0t5d0, 0
# pvdisplay –v /dev/dsk/c2t2d0 | more
…
--- Distribution of physical volume ---
LV Name LE of LV PE for LV
/dev/vg01/lvol1 4340 4340
…
# lvdisplay –v /dev/vg01/lvol1 | grep “Mirror copies”
Mirror copies 0
This confirms that the logical volume is not mirrored, and it is not in the root volume group. As system
administrator, you know that the logical volume is a mounted file system. To disable access to the
logical volume, try to unmount it. Use the fuser command to isolate and terminate processes using
the file system, if necessary. Enter the following commands:
Kommentare zu diesen Handbüchern