How to online and offline multiple Veritas controlled devices

book

Article ID: 100037755

calendar_today

Updated On:

Description

Description

Veritas Volume Manager has introduced new functionality to the vxdisk command to allow the onlining and offlining of multiple Veritas controlled devices in a single transaction.

Using the new vxdisk "-l" filename option, the user can now offline/online disk access names specified in a given a file. 

Note: Each line in the file should contain one disk access name.

 

The functionality is available in the later releases of Veritas Volume Manager ie 5.0 MP3/5.1 (with latest rolling/SP patches)

 

DMP Example

 

In this instance, the user wants to offline all devices related to EMC enclosure "emc1".

 

1.] Generate a file containing all devices startin with "emc1_"

# vxdisk -q list | grep ^emc1_ | awk '{ print $1 }' >  /tmp/offline.out

# cat /tmp/offline.out
emc1_00c6
emc1_0044
emc1_0045
emc1_0046
emc1_0047


# vxdisk -l /tmp/offline.out offline
# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk_3       auto:sliced     c2t0d0       rootdgrp4    online
disk_4       auto:sliced     -            -            online
disk_5       auto:sliced     -            -            online
emc_clar_19  auto            -            -            error
emc_clar_27  auto:sliced     -            -            online
emc_clar_28  auto:sliced     -            -            online
emc0_00ea    auto:cdsdisk    -            -            online
emc0_00eb    auto            -            -            error
emc0_00e7    auto:cdsdisk    -            -            online
emc0_00e8    auto:cdsdisk    -            -            online
emc0_00e9    auto:cdsdisk    -            -            online
emc0_032d    auto:sliced     -            -            online
emc0_0081    auto:cdsdisk    -            -            online
emc0_0083    auto:cdsdisk    -            -            online
emc0_0332    auto:cdsdisk    -            -            online thin
emc0_0333    auto:cdsdisk    -            -            online thin
emc0_0334    auto:cdsdisk    -            -            online thin
emc1_00c6    auto            -            -            offline
emc1_0044    auto            -            -            offline
emc1_0045    auto            -            -            offline
emc1_0046    auto            -            -            offline
emc1_0047    auto            -            -            offline

 

3.] To reverse the offline event, and online the devices as specified in the /tmp/offline file, type:

# vxdisk -l /tmp/offline.out online
# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk_3       auto:sliced     c2t0d0       rootdgrp4    online
disk_4       auto:sliced     -            -            online
disk_5       auto:sliced     -            -            online
emc_clar_19  auto            -            -            error
emc_clar_27  auto:sliced     -            -            online
emc_clar_28  auto:sliced     -            -            online
emc0_00ea    auto:cdsdisk    -            -            online
emc0_00eb    auto            -            -            error
emc0_00e7    auto:cdsdisk    -            -            online
emc0_00e8    auto:cdsdisk    -            -            online
emc0_00e9    auto:cdsdisk    -            -            online
emc0_032d    auto:sliced     -            -            online
emc0_0081    auto:cdsdisk    -            -            online
emc0_0083    auto:cdsdisk    -            -            online
emc0_0332    auto:cdsdisk    -            -            online thin
emc0_0333    auto:cdsdisk    -            -            online thin
emc0_0334    auto:cdsdisk    -            -            online thin
emc1_00c6    auto:sliced     -            -            online
emc1_0044    auto:cdsdisk    -            -            online
emc1_0045    auto:cdsdisk    -            -            online
emc1_0046    auto:sliced     -            -            online
emc1_0047    auto:cdsdisk    -            -            online


EMC PowerPath Example
 

In this instance, the user wants to offline all emcpower related devices.

 

1.] Generate a file containing all devices starting with "emcpower"

# vxdisk -q list | grep ^emcpower | awk '{ print $1 }' >  /tmp/offline.out
# cat /tmp/offline.out

emcpower0s2
emcpower1s2
emcpower2s2
emcpower3s2
emcpower6s2
emcpower7s2

 

2.] Offline disks as specific in the /tmp/offline.out filename

# vxdisk -l /tmp/offline.out offline
# vxdisk list

DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:sliced     c2t0d0       rootdg       online
disk_1       auto:sliced     c2t0d0-s0    rootdg2      online
emcpower0s2  auto            -            -            offline
emcpower1s2  auto            -            -            offline
emcpower2s2  auto            -            -            offline
emcpower3s2  auto            -            -            offline
emcpower6s2  auto            -            -            offline udid_mismatch
emcpower7s2  auto            -            -            offline

 

3.] To reverse the offline event, and online the devices as specified in the /tmp/offline file, type:

# vxdisk -l /tmp/offline.out online

# vxdisk list
DEVICE       TYPE            DISK         GROUP        STATUS
disk_0       auto:sliced     c2t0d0       rootdg       online
disk_1       auto:sliced     c2t0d0-s0    rootdg2      online
emcpower0s2  auto            -            -            error
emcpower1s2  auto            -            -            error
emcpower2s2  auto            -            -            error
emcpower3s2  auto:cdsdisk    -            -            online
emcpower6s2  auto            -            -            error udid_mismatch
emcpower7s2  auto            -            -            error

Issue/Introduction

How to online and offline multiple Veritas controlled devices