Enabling and disabling DMP support for the ZFS root pool

DMP support for the ZFS root pool is provided as part of DMP support for native devices. DMP support for ZFS root pool requires Solaris 11.1 or later.

The dmp_native_support tunable automatically enables or disables support for the ZFS root pool along with other zpools. DMP native support can be enabled for root pools created on EFI or SMI labeled disks.

To enable the DMP support for ZFS root

  1. To enable the DMP support for ZFS root, turn on the dmp_native_support tunable. The command prompts you to reboot the system if the ZFS root pool has to be migrated to DMP.
    # zpool status
      pool: rpool
     state: ONLINE
      scan: resilvered 24.6G in 0h4m with 0 errors on Tue Feb 5 
            17:56:57 2013
    config:
         NAME                         STATE    READ WRITE CKSUM
         rpool                        ONLINE      0     0     0
             c4t50060E8006D43C30d4s0  ONLINE      0     0     0
    # vxdmpadm settune dmp_native_support=on
    VxVM vxdmpadm INFO V-5-1-0 DMP Native Support is enabled 
    for root pool. Please reboot the system for changes to 
    take effect.

    On system reboot, the ZFS root pool starts using DMP devices.

  2. To make the system bootable from any of the paths of the DMP devices, set the eeprom boot-device variable to the paths of the DMP devices.

    See Updating the boot device settings.

  3. Use ZFS utilities like zpool and zdb to verify that DMP devices are shown under the root pool.
    # zpool status rpool
      pool: rpool
     state: ONLINE
      scan: resilvered 24.6G in 0h4m with 0 errors on Tue Feb 
            5 17:56:57 2013
    config:
         NAME                      STATE    READ WRITE CKSUM
              rpool                ONLINE      0     0     0
              hitachi_vsp0_00f4s0  ONLINE      0     0     0
    
    errors: No known data errors
    
    
    # zdb -C rpool
    
    MOS Configuration:
            version: 34
            name: 'rpool'
            state: 0
            txg: 291980
            pool_guid: 10008700897979933591
            timestamp: 1360279240
            hostid: 2224483892
            hostname: 'sfqasol68'
            vdev_children: 1
            vdev_tree:
                type: 'root'
                id: 0
                guid: 10008700897979933591
                create_txg: 4
                children[0]:
                    type: 'disk'
                    id: 0
                    guid: 2845745816652566832
                    path: '/dev/dsk/hitachi_vsp0_00f4s0'
                    devid: 'id1,dmp@x001738000e9523e4/x001738000e9523e4-a'
                    phys_path: '/pseudo/vxdmp@0:x001738000e9523e4-a'
                    whole_disk: 0
                    metaslab_array: 27
                    metaslab_shift: 28
                    ashift: 9
                    asize: 32195739648
                    is_log: 0
                    DTL: 606
                    create_txg: 

To disable the ZFS root support

  1. To disable the ZFS root support, turn off the dmp_native_support as shown below:
    # vxdmpadm settune dmp_native_support=off
    VxVM vxdmpadm INFO V-5-1-0 DMP Native Support is disabled 
    for root pool. Please reboot the system for changes to 
    take effect.
  2. On system reboot, ZFS root pool will show OS devices.
    # zpool status
      pool: rpool
     state: ONLINE
      scan: resilvered 24.6G in 0h4m with 0 errors on Tue Feb 5
            17:56:57 2013
    config:
         NAME                          STATE     READ WRITE CKSUM
              rpool                    ONLINE       0     0     0
              c4t50060E8006D43C30d4s0  ONLINE       0     0     0