InfoScale™ 9.0 Dynamic Multi-Pathing Administrator's Guide - Solaris
- Understanding DMP
- How DMP works
- Disk device naming in DMP
- Setting up DMP to manage native devices
- Using Dynamic Multi-Pathing (DMP) devices with Oracle Automatic Storage Management (ASM)
- Administering DMP
- Managing DMP devices for the ZFS root pool
- Administering DMP using the vxdmpadm utility
- Gathering and displaying I/O statistics
- Specifying the I/O policy
- Administering disks
- Discovering and configuring newly added disk devices
- About discovering disks and dynamically adding disk arrays
- How to administer the Device Discovery Layer
- Changing the disk device naming scheme
- Dynamic Reconfiguration of devices
- About the DMPDR utility
- Reconfiguring a LUN online that is under DMP control using the Dynamic Reconfiguration tool
- Manually reconfiguring a LUN online that is under DMP control
- Event monitoring
- Performance monitoring and tuning
- Appendix A. DMP troubleshooting
- Appendix B. Reference
Configuring a mirror for the ZFS root pool using a DMP device
After the root pool is in DMP control, you can add any DMP device as a mirror to the ZFS root pool. You can attach or detach the DMP device using the zpool commands.
To replace a disk of root pool, you can use the following procedure to add the new device as a mirror to the ZFS root pool. After the new device is resilvered, you can detach the original device.
The following examples show attaching and detaching the DMP device hitachi_vsp0_00f3s0
to the ZFS root pool.
To configure a mirror for the ZFS root pool using a DMP device.
- Make sure the dmp_native_support tunable is set to on.
# vxdmpadm gettune dmp_native_support Tunable Current Value Default Value -------------------------- ------------- --------------- dmp_native_support on off
If the dmp_native_support tunable is not on, you must enable DMP support for native devices.
- View the status of the root pool using the following command:
# zpool status rpool pool: rpool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 hitachi_vsp0_00f4s0 ONLINE 0 0 0
- Use the format command or the fmthard command to format the partition table on the DMP device that you want to add to the root pool. Create the partition the same as the partition of the original device. In this example, the new device
hitachi_vsp0_00f3
is formatted to have the similar partitions as the original devicehitachi_vsp0_00f4
. - Attach the DMP device
hitachi_vsp0_00f3
to the root pool.# zpool attach rpool hitachi_vsp0_00f4s0 hitachi_vsp0_00f3s0
- Make sure to wait until the resilvering operation is completed, before you reboot the system.
# zpool status rpool pool: rpool state: DEGRADED status: One or more devices is currently being resilvered. The pool will continue to function in a degraded state. action: Wait for the resilver to complete. Run 'zpool status -v' to see device specific details. scan: resilver in progress since Fri Feb 8 05:06:26 2013 10.6G scanned out of 20.0G at 143M/s, 0h1m to go 10.6G resilvered, 53.04% done config: NAME STATE READ WRITE CKSUM rpool DEGRADED 0 0 0 mirror-0 DEGRADED 0 0 0 hitachi_vsp0_00f4s0 ONLINE 0 0 0 hitachi_vsp0_00f3s0 DEGRADED 0 0 0 (resilvering)
For the system to be bootable with the mirror disk, update the eeprom variable
boot-device
with the paths of the mirrored DMP device.See Updating the boot device settings.
You can perform these steps while the resilvering is in progress.
- If the resilvering operation is completed, then verify booting from mirror disk.
# zpool status rpool pool: rpool state: ONLINE scan: resilvered 20.0G in 0h10m with 0 errors on Wed Mar 6 05:02:36 2013 config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 hitachi_vsp0_00f4s0 ONLINE 0 0 0 hitachi_vsp0_00f3s0 ONLINE 0 0 0
- Update the ZFS bootloader for the new mirror disk.
# bootadm install-bootloader hitachi_vsp0_00f3s0
or
# /sbin/installboot -F zfs -f /usr/plaftform/'uname -m' \ /lib/fs/zfs/bootblk /dev/vx/rdmp/hitachi_vsp0_00f3s0