VXDISKADM – UnixArena’s Manual Page
/usr/sbin/vxdiskadm – Menu-driven VERITAS Volume Manager disk administrator
The vxdiskadm command provides a menu-driven interface to perform common VERITAS Volume Manager (VxVM) disk administration tasks. The vxdiskadm script is interactive and prompts you for responses, supplying defaults where appropriate. Help is available at every prompt by entering a question mark (?) to display a context-sensitive help message.
Disks that Used in the Example:
DEVICE TYPE DISK GROUP STATUS c3t1d0s2 auto:none - - online invalid c3t2d0s2 auto:none - - online invalid c3t3d0s2 auto:none - - online invalid c3t4d0s2 auto:none - - online invalid c3t5d0s2 auto:none - - online invalid c3t6d0s2 auto:none - - online invalid c4t9d0s2 auto:none - - online invalid c4t10d0s2 auto:none - - online invalid c4t11d0s2 auto:none - - online invalid c4t12d0s2 auto:none - - online invalid c4t13d0s2 auto:none - - online invalid
vxdiskadm – Examples:
# vxdiskadm Volume Manager Support Operations Menu: VolumeManager/Disk 1 Add or initialize one or more disks 2 Encapsulate one or more disks 3 Remove a disk 4 Remove a disk for replacement 5 Replace a failed or removed disk 6 Mirror volumes on a disk 7 Move volumes from a disk 8 Enable access to (import) a disk group 9 Remove access to (deport) a disk group 10 Enable (online) a disk device 11 Disable (offline) a disk device 12 Mark a disk as a spare for a disk group 13 Turn off the spare flag on a disk 14 Unrelocate subdisks back to a disk 15 Exclude a disk from hot-relocation use 16 Make a disk available for hot-relocation use 17 Prevent multipathing/Suppress devices from VxVM's view 18 Allow multipathing/Unsuppress devices from VxVM's view 19 List currently suppressed/non-multipathed devices 20 Change the disk naming scheme 21 Get the newly connected/zoned disks in VxVM view 22 Change/Display the default disk layouts 23 Dynamic Reconfiguration Operations list List disk information ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: ?
Operations provided in the Volume Manager disk operations menu:
1. Add or Initialize one or more disks:
– Use this option to add disks to the system. The disks must already have been formatted and have a valid VTOC.
– Enter device address pattern list to initialize & add the disks to disk group. If the disk group is not configured already, it will be created.
– If a disk is found to already contain non-Volume Manager partitioning, you will be asked whether the disk should be encapsulated.
Example: Initializing all the disk’s which are connected to controller ‘C3’
Output: Select an operation to perform: 1 Add or initialize disks Menu: VolumeManager/Disk/AddDisks Use this operation to add one or more disks to a disk group. You can add the selected disks to an existing disk group or to a new disk group that will be created as a part of the operation. The selected disks may also be added to a disk group as spares. Or they may be added as nohotuses to be excluded from hot-relocation use. The selected disks may also be initialized without adding them to a disk group leaving the disks available for use as replacement disks. More than one disk or pattern may be entered at the prompt. Here are some disk selection examples: all: all disks c3 c4t2: all disks on both controller 3 and controller 4, target 2 c3t4d2: a single disk (in the c#t#d# naming scheme) xyz_0 : a single disk (in the enclosure based naming scheme) xyz_ : all disks on the enclosure whose name is xyz Select disk devices to add: [,all,list,q,?] list DEVICE DISK GROUP STATUS c3t1d0 - - online invalid c3t2d0 - - online invalid c3t3d0 - - online invalid c3t4d0 - - online invalid c3t5d0 - - online invalid c3t6d0 - - online invalid Select disk devices to add: [,all,list,q,?] c3 Here are the disks selected. Output format: [Device_Name] c3t1d0 c3t2d0 c3t3d0 c3t4d0 c3t5d0 c3t6d0 Continue operation? [y,n,q,?] (default: y) You can choose to add these disks to an existing disk group, a new disk group, or you can leave these disks available for use by future add or replacement operations. To create a new disk group, select a disk group name that does not yet exist. To leave the disks available for future use, specify a disk group name of "none". Which disk group [,none,list,q,?] (default: nodg) none Add site tag to disks? [y,n,q,?] (default: n) All disks will be initialized and left free for use as replacement disks. c3t1d0 c3t2d0 c3t3d0 c3t4d0 c3t5d0 c3t6d0 Continue with operation? [y,n,q,?] (default: y) Do you want to use the default layout for all disks being initialized? [y,n,q,?] (default: y) Initializing device c3t1d0. Initializing device c3t2d0. Initializing device c3t3d0. Initializing device c3t4d0. Initializing device c3t5d0. Initializing device c3t6d0. Add or initialize other disks? [y,n,q,?] (default: n) n
2. Encapsulate one or more disks
– Use this option to place one or more disks under Volume Manager control, that were added to the system before installing the Volume Manager.
– You will be required to reboot the system if any partitions are in use for mounted file systems or for running applications.
– You may have to modify application configuration files to use volumes, rather than direct disk devices, to access the disk partitions.
– File system mount information in /etc/vfstab will be adjusted automatically when the system restarted.
Example: Encapsulating Disk ‘c3t6d0’, which is having a solaris partition
Output: Select an operation to perform: 2 Encapsulate one or more disks Menu: VolumeManager/Disk/Encapsulate Use this operation to convert one or more disks to use the Volume Manager. This adds the disks to a disk group and replaces existing partitions with volumes. Disk encapsulation requires a reboot for the changes to take effect. More than one disk or pattern may be entered at the prompt. Here are some disk selection examples: all: all disks c3 c4t2: all disks on both controller 3 and controller 4, target 2 c3t4d2: a single disk (in the c#t#d# naming scheme) xyz_0 : a single disk (in the enclosure based naming scheme) xyz_ : all disks on the enclosure whose name is xyz Select disk devices to encapsulate: [,all,list,q,?] list DEVICE DISK GROUP STATUS c3t5d0 c3t5d0s2 testdg online c3t6d0 - - online c4t9d0 - - online invalid Select disk devices to encapsulate: [,all,list,q,?] c3t6d0 Here is the disk selected. Output format: [Device_Name] c3t6d0 Continue operation? [y,n,q,?] (default: y) You can choose to add this disk to an existing disk group or to a new disk group. To create a new disk group, select a disk group name that does not yet exist. Which disk group [,list,q,?] (default: nodg) list NAME STATE ID testdg enabled,cds 1411379547.35.vxserver Which disk group [,list,q,?] (default: nodg) testdg Use a default disk name for the disk? [y,n,q,?] (default: y) The selected disks will be encapsulated and added to the testdg disk group with default disk names. c3t6d0 Continue with operation? [y,n,q,?] (default: y) The following disk has been selected for encapsulation. Output format: [Device_Name] c3t6d0 Continue with encapsulation? [y,n,q,?] (default: y) VxVM NOTICE V-5-2-2043 The disk group selected is a CDS disk group. For encapsulation, the disk group's CDS attribute will be turned off, and its disk group alignment will be set to 1. Continue with encapsulation? [y,n,q,?] (default: y) VxVM INFO V-5-2-333 The disk device c3t6d0 will be encapsulated and added to the disk group testdg with the disk name testdg01. Enter the desired format [cdsdisk,sliced,q,?] (default: cdsdisk) Enter desired private region length [,q,?] (default: 65536) Do you want to use 'sliced' as the format should 'cdsdisk' fail? [y,n,q,?] (default: y) The c3t6d0 disk has been configured for encapsulation. The first stage of encapsulation has completed successfully. You should now reboot your system at the earliest possible opportunity. The encapsulation will require two or three reboots which will happen automatically after the next reboot. To reboot execute the command: shutdown -g0 -y -i6 This will update the /etc/vfstab file so that volume devices are used to mount the file systems on this disk device. You will need to update any other references such as backup scripts, databases, or manually created swap devices. Encapsulate other disks? [y,n,q,?] (default: n) After a Reboot c3t5d0s2 auto:cdsdisk c3t5d0s2 testdg online c3t6d0s2 auto:cdsdisk testdg01 testdg online v testdg010vol - ENABLED ACTIVE 409600 ROUND - fsgen pl testdg010vol-01 testdg010vol ENABLED ACTIVE 409600 CONCAT - RW sd testdg01-B0 testdg010vol-01 testdg01 2021372 4 0 c3t6d0 ENA sd testdg01-01 testdg010vol-01 testdg01 0 409596 4 c3t6d0 ENA
3. Remove a disk
– Use this option to remove a disk from a disk group.
– You cannot remove a disk if any volumes use storage on the disk.
– You cannot remove the last disk in a disk group using this operation.
Example: Removing Disk ‘c3t3d0s2’ from disk group ‘oradg’
Output: Select an operation to perform: 3 Remove a disk Menu: VolumeManager/Disk/RemoveDisk Use this operation to remove a disk from a disk group. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [,list,q,?] list Disk group: oradg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c3t1d0s2 c3t1d0s2 auto 65536 2031232 - dm c3t2d0s2 c3t2d0s2 auto 65536 2031232 - dm c3t3d0s2 c3t3d0s2 auto 65536 2031232 - Enter disk name [,list,q,?] c3t3d0s2 VxVM NOTICE V-5-2-284 Requested operation is to remove disk c3t3d0s2 from group oradg. Continue with operation? [y,n,q,?] (default: y) y VxVM INFO V-5-2-268 Removal of disk c3t3d0s2 is complete. Remove another disk? [y,n,q,?] (default: n) n
4. Remove a disk for replacement
– Use this option to remove a physical disk from a disk group, while retaining the disk name.
– This changes the state for the disk name to a “removed” disk.
Example: Replacing disk ‘c3t2d0s2’ in disk group oradg with ‘c3t3d0s2’
Output: Select an operation to perform: 4 Remove a disk for replacement Menu: VolumeManager/Disk/RemoveForReplace Use this option to remove a physical disk from a disk group, while retaining the disk name. This changes the state for the disk name to a "removed" disk. If there are any initialized disks that are not part of a disk group, you will be given the option of using one of these disks as a replacement. Enter disk name [,list,q,?] list Disk group: oradg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c3t1d0s2 c3t1d0s2 auto 65536 2031232 - dm c3t2d0s2 c3t2d0s2 auto 65536 2031232 - dm c3t3d0s2 c3t4d0s2 auto 65536 2031232 - Enter disk name [,list,q,?] c3t3d0s2 The following devices are available as replacements: c3t3d0 You can choose one of these disks now, to replace c3t3d0s2. Select "none" if you do not wish to select a replacement disk. Choose a device, or select none [,none,q,?] (default: c3t3d0) VxVM NOTICE V-5-2-285 Requested operation is to remove disk c3t3d0s2 from group oradg. The removed disk will be replaced with disk device c3t3d0. Continue with operation? [y,n,q,?] (default: y) VxVM INFO V-5-2-265 Removal of disk c3t3d0s2 completed successfully. VxVM INFO V-5-2-260 Proceeding to replace c3t3d0s2 with device c3t3d0. Use FMR for plex resync? [y,n,q,?] (default: n) VxVM vxbootsetup NOTICE V-5-2-3616 Root file system is not defined on a volume. VxVM INFO V-5-2-158 Disk replacement completed successfully. Remove another disk? [y,n,q,?] (default: n)
5. Replace a failed or removed disk
– Use this option to specify a replacement disk for a disk that you removed with the Remove a disk for replacement menu entry, or that failed during use.
Example: Replacing failed disk ‘c4t11d0s2’ with ‘c4t12d0s2’
DEVICE TYPE DISK GROUP STATUS c4t9d0s2 auto:cdsdisk c4t9d0s2 newdg online c4t10d0s2 auto:cdsdisk c4t10d0s2 newdg online c4t12d0s2 auto:none - - online invalid - - c4t11d0s2 newdg failed was:c4t11d0s2
Output: Select an operation to perform: 5 Replace a failed or removed disk Menu: VolumeManager/Disk/ReplaceDisk Use this option to specify a replacement disk for a disk that you removed with the "Remove a disk for replacement" menu operation, or that failed during use. You will be prompted for a disk name to replace and a disk device to use as a replacement. You can choose an uninitialized disk, in which case the disk will be initialized, or you can choose a disk that you have already initialized using the Add or initialize a disk menu operation. Select a removed or failed disk [,list,q,?] list Disk group: newdg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c4t11d0s2 - - - - NODEVICE Select a removed or failed disk [,list,q,?] c4t11d0s2 The following devices are available as replacements: c3t1d0 c3t2d0 c3t3d0 c3t4d0 c3t5d0 You can choose one of these devices to replace c4t11d0s2. Choose "none" to initialize another device to replace c4t11d0s2. Choose a device, or select none [,none,q,?] (default: c3t1d0) none The following devices are available as possible replacements after being initialized (or reinitiliazed): c3t6d0 c4t12d0 c4t13d0 c4t14d0 You can choose one of these devices to replace c4t11d0s2. Choose "none" to abort the replacement of c4t11d0s2. Choose a device, or select none [,none,q,?] (default: c3t6d0) c4t12d0 VxVM INFO V-5-2-378 The requested operation is to initialize disk device c4t12d0 and to then use that device to replace the removed or failed disk c4t11d0s2 in disk group newdg. Continue with operation? [y,n,q,?] (default: y) Use FMR for plex resync? [y,n,q,?] (default: n) VxVM INFO V-5-2-282 Replacement of disk c4t11d0s2 in group newdg with disk device c4t12d0 completed successfully. Replace another disk? [y,n,q,?] (default: n) After a successful replacement DEVICE TYPE DISK GROUP STATUS c4t9d0s2 auto:cdsdisk c4t9d0s2 newdg online c4t10d0s2 auto:cdsdisk c4t10d0s2 newdg online c4t12d0s2 auto:cdsdisk c4t11d0s2 newdg online
6. Mirror volumes on a disk
– Use this option to mirror a volume from one disk to another, by default if no destination disks specified any free disk in the disk group will be used.
– Mirroring volumes from the boot disk will produce a disk that can be used as an alternate boot disk.
Example: Mirroring the concat volume named ‘oravol’
v oravol - ENABLED ACTIVE 409600 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t1d0s2-01 oravol-01 c3t1d0s2 0 409600 0 c3t1d0 ENA
Output: Select an operation to perform: 6 Mirror volumes on a disk Menu: VolumeManager/Disk/Mirror This operation can be used to mirror volumes on a disk. These volumes can be be mirrored onto another disk or onto any available disk space. Volumes will not be mirrored if they are already mirrored. Also, volumes that are comprised of more than one subdisk will not be mirrored. Mirroring volumes from the boot disk will produce a disk that can be used as an alternate boot disk. At the prompt below, supply the name of the disk containing the volumes to be mirrored. Enter disk name [,list,q,?] list Disk group: oradg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c3t1d0s2 c3t1d0s2 auto 65536 2031232 - dm c3t2d0s2 c3t2d0s2 auto 65536 2031232 - dm c3t3d0s2 c3t3d0s2 auto 65536 2031232 - dm c3t4d0s2 c3t4d0s2 auto 65536 2031232 - Enter disk name [,list,q,?] c3t1d0s2 You can choose to mirror volumes from disk c3t1d0s2 onto any available disk space, or you can choose to mirror onto a specific disk. To mirror to a specific disk, select the name of that disk. To mirror to any available disk space, select "any". Enter destination disk [,list,q,?] (default: any) c3t2d0s2 The requested operation is to mirror all volumes on disk c3t1d0s2 in disk group oradg onto available disk space on disk c3t2d0s2. VxVM NOTICE V-5-2-3650 This operation can take a long time to complete. Continue with operation? [y,n,q,?] (default: y) VxVM vxmirror INFO V-5-2-22 Mirror volume oravol ... VxVM INFO V-5-2-674 Mirroring of disk c3t1d0s2 is complete. Mirror volumes on another disk? [y,n,q,?] (default: n) n After Mirror volume, v oravol - ENABLED ACTIVE 409600 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t1d0s2-01 oravol-01 c3t1d0s2 0 409600 0 c3t1d0 ENA pl oravol-02 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t2d0s2-01 oravol-02 c3t2d0s2 0 409600 0 c3t2d0 ENA
7. Move volumes from a disk
– Use this option to move any volumes that are using a disk onto other disks.
– Use this menu immediately prior to removing a disk, either permanently or for replacement.
Example: In mirror volume ‘oravol’ moving plex ‘oravol-02’ from the source disk ‘c3t2d0s2’ to the destination disk ‘c3t3d0s2’
v oravol - ENABLED ACTIVE 409600 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t1d0s2-01 oravol-01 c3t1d0s2 0 409600 0 c3t1d0 ENA pl oravol-02 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t2d0s2-01 oravol-02 c3t2d0s2 0 409600 0 c3t2d0 ENA
Output: Select an operation to perform: 7 Move volumes from a disk Menu: VolumeManager/Disk/Evacuate Use this option to move any volumes that are using a disk onto other disks. Use this menu immediately prior to removing a disk, either permanently or for replacement. You can specify a list of disks to move volumes onto, or you can move the volumes to any available disk space in the same disk group. NOTE: Simply moving volumes off of a disk, without also removing the disk, does not prevent volumes from being moved onto the disk by future operations. For example, using two consecutive move operations may move volumes from the second disk to the first. Enter disk name [,list,q,?] list Disk group: oradg DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE dm c3t1d0s2 c3t1d0s2 auto 65536 2031232 - dm c3t2d0s2 c3t2d0s2 auto 65536 2031232 - dm c3t3d0s2 c3t3d0s2 auto 65536 2031232 - dm c3t4d0s2 c3t4d0s2 auto 65536 2031232 - Enter disk name [,list,q,?] c3t2d0s2 VxVM INFO V-5-2-516 You can now specify a list of disks to move onto. Specify a list of disk media names (e.g., oradg01) all on one line separated by blanks. If you do not enter any disk media names, then the volumes will be moved to any available space in the disk group. Enter disks [,list] c3t3d0s2 VxVM NOTICE V-5-2-283 Requested operation is to move all volumes from disk c3t2d0s2 in group oradg. NOTE: This operation can take a long time to complete. Continue with operation? [y,n,q,?] (default: y) VxVM vxevac INFO V-5-2-24 Move volume oravol ... VxVM INFO V-5-2-188 Evacuation of disk c3t2d0s2 is complete. Move volumes from another disk? [y,n,q,?] (default: n) After Movement, v oravol - ENABLED ACTIVE 409600 SELECT - fsgen pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t1d0s2-01 oravol-01 c3t1d0s2 0 409600 0 c3t1d0 ENA pl oravol-02 oravol ENABLED ACTIVE 409600 CONCAT - RW sd c3t3d0s2-01 oravol-02 c3t3d0s2 0 409600 0 c3t3d0 ENA
8 . Enable access to (import) a disk group
– Use this option to enable access by this system to a disk group.
– If you wish to move a disk group from one system to another, you must first disable (deport) it, on the original system. Then, move the disk between systems and enable (import) the disk group.
Example: Enabling access to import (Disks must be in online state)
Output: Select an operation to perform: 8 Enable access to (import) a disk group Menu: VolumeManager/Disk/ImportDiskGroup Use this operation to enable access to a disk group. This can be used as the final part of moving a disk group from one system to another. The first part of moving a disk group is to use the "Remove access to (deport) a disk group" operation on the original host. A disk group can be imported from another host that failed without first deporting the disk group. Be sure that all disks in the disk group are moved between hosts. If two hosts share a SCSI bus, be very careful to ensure that the other host really has failed or has deported the disk group. If two active hosts import a disk group at the same time, the disk group will be corrupted and will become unusable. Select disk group to import [,list,q,?] (default: list) list GROUP newdg (id: 1411552613.37.vxserver) DEVICES: c4t11d0 GROUP oradg (id: 1411553169.47.vxserver) DEVICES: c3t1d0 c3t2d0 c3t3d0 c3t4d0 Select disk group to import [,list,q,?] (default: list) oradg VxVM INFO V-5-2-374 The import of oradg was successful. Select another disk group? [y,n,q,?] (default: n)
9. Remove access to (deport) a disk group
– Use this option to disable access to a disk group that is currently enabled (imported) by this system.
– Deport a disk group if you intend to move the disks in a disk group to another system. Also, deport a disk group if you want to use all of the disks remaining in a disk group for some new purpose.
– For removable disk devices on some systems, it is important to disable all access to the disk before removing the disk.
Example: Disabling access to deport for the disgroup ‘oradg’
Output: Select an operation to perform: 9 Remove access to (deport) a disk group Menu: VolumeManager/Disk/DeportDiskGroup Use this option to remove access to a disk group that is currently enabled (imported) by this system. Deport a disk group if you intend to move the disks in a disk group to another system. Also, deport a disk group if you want to use all of the disks remaining in a disk group for some new purpose. You will be prompted for the name of a disk group. You will also be asked if the disks should be disabled (offlined). For removable disk devices on some systems, it is important to disable all access to the disk before removing the disk. Enter name of disk group [,list,q,?] (default: list) list GROUP DISK/VOLUME DEVICE/STATE LENGTH oradg disk c3t1d0s2 c3t1d0s2 2031232 oradg disk c3t2d0s2 c3t2d0s2 2031232 oradg disk c3t3d0s2 c3t3d0s2 2031232 oradg disk c3t4d0s2 c3t4d0s2 2031232 oradg volume oravol ENABLED 409600 Enter name of disk group [,list,q,?] (default: list) oradg VxVM INFO V-5-2-377 The requested operation is to disable access to the removable disk group named oradg. This disk group is stored on the following disks: c3t1d0s2 on device c3t1d0s2 c3t2d0s2 on device c3t2d0s2 c3t3d0s2 on device c3t3d0s2 c3t4d0s2 on device c3t4d0s2 You can choose to disable access to (also known as "offline") these disks. This may be necessary to prevent errors if you actually remove any of the disks from the system. Disable (offline) the indicated disks? [y,n,q,?] (default: n) y Continue with operation? [y,n,q,?] (default: y) VxVM INFO V-5-2-269 Removal of disk group oradg was successful. Disable another disk group? [y,n,q,?] (default: n)
10. Enable (online) a disk device
If you move a disk from one system to another during normal system operation, the Volume Manager will not recognize the disk automatically. Use this option to tell the Volume Manager to scan the disk to find what disk it is, and to determine if this disk is part of a disk group. Also, use this operation to re-enable access to a disk that was disabled by either the disk group deport operation or the disk device disable (offline) operation.
Example: Enabling off-lined or disabled disks
Output: Select an operation to perform: 10 Enable (online) a disk device Menu: VolumeManager/Disk/OnlineDisk Use this operation to enable access to a disk that was disabled with the "Disable (offline) a disk device" operation. You can also use this operation to re-scan a disk that may have been changed outside of the Volume Manager. For example, If a disk is shared between two systems, the Volume Manager running on the other system may have changed the disk. If so, you can use this operation to re-scan the disk. NOTE: Many vxdiskadm operations re-scan disks without user intervention. This will eliminate most needs to online a disk directly, except when the disk is directly offlined. Select a disk device to enable [,list,q,?] list DEVICE DISK GROUP STATUS c3t5d0 - - offline c3t6d0 - - online Select a disk device to enable [,list,q,?] c3t5d0 Enable another device? [y,n,q,?] (default: n) n After Enabling, DEVICE DISK GROUP STATUS c3t5d0s2 auto:cdsdisk - - online c3t6d0s2 auto:cdsdisk - - online
11. Disable (offline) a disk device
Use this option to disable all access to a disk device through the Volume Manager. This operation can be applied only to disks that are not currently in a disk group. Use this operation if you intend to remove a disk from a system without rebooting.
[box type=”note” align=”alignleft” ]NOTE:Many systems do not support disks that can be removed from a system during normal operation. On such systems, the offline operation is seldom useful.[/box]
Example: Disabling a single disk which is not part of any disk group
Output: Select an operation to perform: 11 Disable (offline) a disk device Menu: VolumeManager/Disk/OfflineDisk Use this option to disable all access to a disk device by the Volume Manager. This operation can be applied only to disks that are not currently in a disk group. Use this operation if you intend to remove a disk from a system without rebooting. NOTE: Many systems do not support disks that can be removed from a system during normal operation. On such systems, the offline operation is seldom useful. Select a disk device to disable [,list,q,?] list DEVICE DISK GROUP STATUS c3t5d0 - - online c3t6d0 - - online Select a disk device to disable [,list,q,?] c3t5d0 Disable another device? [y,n,q,?] (default: n) n After disabling, DEVICE TYPE DISK GROUP STATUS c3t5d0s2 auto - - offline
12. Mark a disk as a spare for a disk group
– This option sets up a disk to be used as a spare device for its disk group.
– A spare disk can be used to automatically relocate a subdisk that has failed. No space can be used on a disk that is marked as a spare.
Example: Marking the disk ‘c3t4d0s2’ as a spare disk for the disk group ‘oradg’
Output: Select an operation to perform: 12 Mark a disk as a spare for a disk group Menu: VolumeManager/Disk/MarkHotSpareDisk Use this operation to mark a disk as a spare for a disk group. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [,list,q,?] list DEVICE TYPE DISK GROUP STATUS c3t1d0s2 auto:cdsdisk c3t1d0s2 oradg online c3t2d0s2 auto:cdsdisk c3t2d0s2 oradg online c3t3d0s2 auto:cdsdisk c3t3d0s2 oradg online c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online Enter disk name [,list,q,?] VxVM NOTICE V-5-2-252 Please enter a disk name, or type "list" to list all disks. Enter disk name [,list,q,?] c3t4d0s2 VxVM INFO V-5-2-219 Marking of c3t4d0s2 in oradg as a spare disk is complete. Mark another disk as a spare? [y,n,q,?] (default: n) Volume Manager Support Operations Menu: VolumeManager/Disk Sample Disk listing, DEVICE TYPE DISK GROUP STATUS c3t1d0s2 auto:cdsdisk c3t1d0s2 oradg online c3t2d0s2 auto:cdsdisk c3t2d0s2 oradg online c3t3d0s2 auto:cdsdisk c3t3d0s2 oradg online c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online spare
13. Turn off the spare flag for a disk
– This option removes a disk from those that can be used as a spare and returns its space to the general pool of available space.
Example: Removing the disk ‘c3t4d0s2’ from spare pool.
Output: Select an operation to perform: 13 Turn off the spare flag on a disk Menu: VolumeManager/Disk/UnmarkHotSpareDisk Use this operation to turn off the spare flag on a disk. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [,list,q,?] list DEVICE TYPE DISK GROUP STATUS c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online spare Enter disk name [,list,q,?] c3t4d0s2 VxVM NOTICE V-5-2-143 Disk c3t4d0s2 in oradg no longer marked as a spare disk. Turn-off spare flag on another disk? [y,n,q,?] (default: n)
14. Un-relocate subdisks back to a disk
– Use this operation to move subdisks which were hot-relocated back onto the original disk that has been replaced due to a disk failure.
Example: Performing unrelocating on volume testvol
Running volume used
v testvol - ENABLED ACTIVE 409600 SELECT - fsgen pl testvol-01 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t9d0s2-01 testvol-01 c4t9d0s2 0 409600 0 c4t9d0 ENA pl testvol-02 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t10d0s2-01 testvol-02 c4t10d0s2 0 409600 0 c4t10d0 ENA
After failure,
DEVICE TYPE DISK GROUP STATUS c4t10d0s2 auto:cdsdisk c4t10d0s2 testdg online c4t11d0s2 auto:cdsdisk c4t11d0s2 testdg online - - c4t9d0s2 testdg failed was:c4t9d0s2
After automatic hot relocation
v testvol - ENABLED ACTIVE 409600 SELECT - fsgen pl testvol-01 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t11d0s2-01 testvol-01 c4t11d0s2 0 409600 0 c4t11d0 ENA pl testvol-02 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t10d0s2-01 testvol-02 c4t10d0s2 0 409600 0 c4t10d0 ENA
Output: Select an operation to perform: 14 Move hot-relocated subdisks back to a disk Menu: VolumeManager/Disk/UnrelocateDisk Use this operation to move subdisks which were hot-relocated back onto the original disk that has been replaced due to a disk failure. This operation takes, as input, the original disk name. If the failed drive was replaced with a disk using a different name, this operation also provides an option to specify the new name. Enter the original disk name [,list,q,?] list c4t9d0s2 Enter the original disk name [,list,q,?] c4t9d0s2 Unrelocate to a new disk [y,n,q,?] (default: n) VxVM INFO V-5-2-942 Requested operation is to move all the subdisks which were hot-relocated from c4t9d0s2 back to c4t9d0s2 of disk group testdg. Continue with operation? [y,n,q,?] (default: y) Use -f option to unrelocate the subdisks if moving to the exact offset fails? [y,n,q,?] (default: n) y VxVM INFO V-5-2-954 Unrelocate to disk c4t9d0s2 is complete. Unrelocate another disk? [y,n,q,?] (default: n) n After unrelocating subdisk, v testvol - ENABLED ACTIVE 409600 SELECT - fsgen pl testvol-01 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t9d0s2-UR-001 testvol-01 c4t9d0s2 0 409600 0 c4t9d0 ENA pl testvol-02 testvol ENABLED ACTIVE 409600 CONCAT - RW sd c4t10d0s2-01 testvol-02 c4t10d0s2 0 409600 0 c4t10d0 ENA
15. Exclude a disk from hot-relocation use
– Use this option to make a disk in the free pool not available for hot-relocation use.
– The space on the disk will remain as free space in the disk group, only not available for use by hot-relocation.
Example: Excluding disk ‘c3t4d0s2’ from hot relocation use
Output: Select an operation to perform: 15 Exclude a disk from hot-relocation use Menu: VolumeManager/Disk/MarkNoHotUse Use this operation to exclude a disk from hot-relocation use. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [,list,q,?] list DEVICE TYPE DISK GROUP STATUS c3t1d0s2 auto:cdsdisk c3t1d0s2 oradg online c3t2d0s2 auto:cdsdisk c3t2d0s2 oradg online c3t3d0s2 auto:cdsdisk c3t3d0s2 oradg online c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online Enter disk name [,list,q,?] c3t4d0s2 VxVM INFO V-5-2-925 Excluding c3t4d0s2 in oradg from hot-relocation use is complete. Exclude another disk from hot-relocation use? [y,n,q,?] (default: n) Sample Disk listing, DEVICE TYPE DISK GROUP STATUS c3t1d0s2 auto:cdsdisk c3t1d0s2 oradg online c3t2d0s2 auto:cdsdisk c3t2d0s2 oradg online c3t3d0s2 auto:cdsdisk c3t3d0s2 oradg online c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online nohotuse
16. Make a disk available for hot-relocation use
– Use this option to make a disk in the free pool available for hot-relocation use.
– This only applies to disks that were previously excluded from hot-relocation use.
Example: Making the disk ‘c3t4d0s2’ available for relocation
Output: Select an operation to perform: 16 Make a disk available for hot-relocation use Menu: VolumeManager/Disk/UnmarkNoHotUse Use this operation to make a disk available for hot-relocation use. This only applies to disks that were previously excluded from hot-relocation use. This operation takes, as input, a disk name. This is the same name that you gave to the disk when you added the disk to the disk group. Enter disk name [,list,q,?] list DEVICE TYPE DISK GROUP STATUS c3t4d0s2 auto:cdsdisk c3t4d0s2 oradg online nohotuse Enter disk name [,list,q,?] c3t4d0s2 VxVM INFO V-5-2-933 Making c3t4d0s2 in oradg available for hot-relocation use is complete. Make another disk available for hot-relocation use? [y,n,q,?] (default: n) n
17. Prevent multipathing/Suppress devices from VxVM’s view
– Use this option to exclude devices from the view of VxVM or prevent them from being multipathed by vxdmp.
Example: Excluding controller ‘c4’ from VxVM;s view
Output: Select an operation to perform: 17 Exclude Devices Menu: VolumeManager/Disk/ExcludeDevices VxVM INFO V-5-2-5950 This operation might lead to some devices being suppressed from VxVM's view (This operation can be reversed using the vxdiskadm command). Do you want to continue ? [y,n,q,?] (default: y) Volume Manager Device Operations Menu: VolumeManager/Disk/ExcludeDevices 1 Suppress all paths through a controller from VxVM's view 2 Suppress a path from VxVM's view 3 Suppress disks from VxVM's view by specifying a VID:PID combination 4 Suppress all paths to a disk 5 Prevent multipathing of all disks on a controller by VxVM 6 Prevent multipathing of a disk by VxVM 7 Prevent multipathing of disks by specifying a VID:PID combination 8 List currently suppressed devices ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: 1 Exclude controllers from VxVM Menu: VolumeManager/Disk/ExcludeDevices/CTLR-VXVM Use this operation to exclude all paths through a controller from VxVM. This operation can be reversed using the vxdiskadm command. VxVM INFO V-5-2-1263 You can specify a controller name at the prompt. A controller name is of the form c#, example c3, c11 etc. Enter 'all' to exclude all paths on all the controllers on the host. To see the list of controllers on the system, type 'list'. Enter a controller name [,all,list,list-exclude,q,?] list VxVM INFO V-5-2-1214 The following controllers were found on the system : c1 c2 c3 c4 Hit RETURN to continue. Enter a controller name [,all,list,list-exclude,q,?] c4 VxVM vxdisk ERROR V-5-1-558 Disk c4t14d0s2: Disk not in the configuration VxVM vxdisk ERROR V-5-1-558 Disk c4t14d0s2: Disk not in the configuration VxVM INFO V-5-2-1306 All paths to the following enclosures through controller c4 will be hidden from VxVM as a result of this operation : disk Continue operation? [y,n,q,?] (default: y) VxVM NOTICE V-5-2-4783 The controller c4 will be disabled and the entries for paths on controller c4 will not be visible through VxVM utilities. Hit RETURN to continue. Do you wish to exclude more controllers ? [y,n,q,?] (default: n)
18. Allow multi-pathing/Un-suppress devices from VxVM’s view
– Use this option to re-include devices (which were earlier excluded) to make them visible to VxVM again or let vxdmp multipath them again.
Example: Including VxVM to control disks from controller ‘C4’
Output: Select an operation to perform: 18 Include Devices Menu: VolumeManager/Disk/IncludeDevices VxVM INFO V-5-2-5947 The devices selected in this operation will become visible to VxVM again. Only those devices which were previously excluded can be included again. Do you want to continue ? [y,n,q,?] (default: y) Volume Manager Device Operations Menu: VolumeManager/Disk/IncludeDevices 1 Unsuppress all paths through a controller from VxVM's view 2 Unsuppress a path from VxVM's view 3 Unsuppress disks from VxVM's view by specifying a VID:PID combination 4 Unsuppress all paths to a disk 5 Allow multipathing of all disks on a controller by VxVM 6 Allow multipathing of a disk by VxVM 7 Allow multipathing of disks by specifying a VID:PID combination 8 List currently suppressed devices ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: 1 Re-include controllers in VxVM Menu: VolumeManager/Disk/IncludeDevices/CTLR-VXVM Use this operation to make all paths through a controller visible to VxVM again. As a result of this operation, all paths through the specified controller will be made visible to VxVM again. VxVM INFO V-5-2-1264 You can specify a controller name at the prompt. A controller name is of the form c#, example c3, c11 etc. Enter 'all' to include all paths on all controllers on the host. Enter a controller name [,all,list,list-exclude,q,?] list-exclude Devices excluded from VxVM: -------------------------- Paths : c1 Controllers : c4 VID:PID : None -------------------------- Hit RETURN to continue. Enter a controller name [,all,list,list-exclude,q,?] c4 VxVM NOTICE V-5-2-1305 All paths through controller c4 will be made visible VxVM again as a result of this operation. Continue operation? [y,n,q,?] (default: y) Do you wish to include more controllers ? [y,n,q,?] (default: n)
19. List currently suppressed/non-multipathed devices
– Use this option to list the devices that have been suppressed from VxVM’s view or prevented from being multipathed by vxdmp.
Example: Listing currently excluded devices
Output: Select an operation to perform: 19 Devices hidden from VxVM Menu: VolumeManager/Disk/listexclude VxVM INFO V-5-2-5949 The following is the list of devices currently hidden from VxVM: Devices excluded from VxVM: -------------------------- Paths : c1 Controllers : None VID:PID : None --------------------------
20. Change the disk naming scheme
– Changes the disk naming scheme from the c#t#d# format to enclosure-based and vice versa.
Example: Changing Naming scheme from OSN(c#t#d#) to EBN (disk_#)
Output: Select an operation to perform: 20 Change the disk naming scheme Menu: VolumeManager/Disk/NamingScheme Use this screen to change the disk naming scheme (from the c#t#d# format to the enclosure based format and vice versa). VxVM INFO V-5-2-1421 Volume Manager is currently using the c#t#d# naming format to name disks on the system. Do you want to change the naming scheme ? [y,n,q,?] (default: n) y VxVM INFO V-5-2-1366 The naming format has been changed. Hit RETURN to continue.
21. Get the newly connected/zoned disks in VxVM view
– This command will scan and configure any new disk devices that are attached to the host, disk devices that became online, or fibre channel devices that were zoned to host bus adapters connected to this host.
– It should be used whenever any disks are physically connected to the host or when fibre channel devices are zoned to the host.
Example: Adding newly added disks into VxVM control
DEVICE TYPE DISK GROUP STATUS c1t0d0s2 auto:sliced rootdisk01 rootdg online c2t0d0s2 auto:sliced rootdisk02 rootdg online
Output: Select an operation to perform: 21 Bring newly added disks in VxVM control Menu: VolumeManager/Disk/Diskrefresh This will bring the newly added or zoned devices in VxVM view Enter c to continue [c,q,?] (default: c) VxVM INFO V-5-2-1401 This command may take a few minutes to complete execution Executing Solaris command: devfsadm (part 1 of 2) at 19:18:34 IST Executing VxVM command: vxdctl enable (part 2 of 2) at 19:18:36 IST Command completed at 19:18:38 IST Hit RETURN to continue.
Newly added disks,
DEVICE TYPE DISK GROUP STATUS c1t0d0s2 auto:sliced rootdisk01 rootdg online c2t0d0s2 auto:sliced rootdisk02 rootdg online c4t9d0s2 auto:cdsdisk - - online c4t10d0s2 auto:cdsdisk - - online c4t11d0s2 auto:cdsdisk - - online c4t12d0s2 auto:cdsdisk - - online c4t13d0s2 auto:cdsdisk - - online
22. Change/Display the default disk layouts
– Use this option to display the default disk layout that will be used by the Volume Manager for initializing a VxVM disk or for encapsulating a disk.
– This menu operation can also be used to set preferences for the default disk layouts.
Example: Changing & Displaying the default disk layout
Output: Select an operation to perform: 22 Volume Manager Preferences Menu: VolumeManager/Disk/Preferences 1 Change/View preferences for use when initializing new disks 2 Change/View preferences for use when encapsulating disks ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: 1 Volume Manager Disk Initialization Preferences Menu: VolumeManager/Disk/Preferences/DiskInitialization 1 Store preferred format for initializing new disks 2 Store preferred private region length for initializing new disks 3 Remove all stored preferences 4 List currently stored preferences 5 Quit disk initialization preferences ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: VxVM ERROR V-5-2-302 Selection not recognized, enter ?? for help Select an operation to perform: 1 Enter the desired format [cdsdisk,sliced,simple,q,?] (default: cdsdisk) Volume Manager Disk Initialization Preferences Menu: VolumeManager/Disk/Preferences/DiskInitialization 1 Store preferred format for initializing new disks 2 Store preferred private region length for initializing new disks 3 Remove all stored preferences 4 List currently stored preferences 5 Quit disk initialization preferences ? Display help about menu ?? Display help about the menuing system q Exit from menus Select an operation to perform: 4 VxVM INFO V-5-2-2068 The preferred format for initializing new disks is: cdsdisk Hit RETURN to continue.
23. Dynamic Reconfiguration Operations
Output: Select an operation to perform: 23 Dynamic Reconfiguration Operations WARN: Please Do not Run any Device Discovery Operations outside the Tool during Reconfiguration operations INFO: Collecting OS Version Info INFO: Collecting Leadville Driver Info INFO: Collecting SF Product version Info INFO: Checking if MPXIO is enabled INFO: Checking if Multipathing is PowerPath INFO: Checking if OS and VM Device Tree are in Sync cfgadm: Configuration administration not supported ------------------------------------------------------------------------------ OS : SunOS |PASS OS Version : 5.10 |PASS Leadville Driver Version : v20121113-1.151 |PASS SF Product Version : 6.0.100.000 |PASS Architecture : i386 |FAIL Is MPXIO Enabled ? : No |PASS Is Multipathing Powerpath : No |PASS Is OS & VM Device Tree in Sync: Yes |PASS Is cfgadm working? : No |FAIL Any Device Failing/Unusable : |FAIL ------------------------------------------------------------------------------- FATAL: pre-check failed. Exiting Tool... Press or to continue: Specify Dynamic Reconfiguration Operation to be done: Menu: VolumeManager/Disk/DynamicReconfigurationOperations 1 Add Luns 2 Remove Luns 3 Replace Luns 4 Replace HBA ? Display help about menu ?? Display help about the menuing system q Exit Select an operation to perform : q Exiting the Current DMP-DR Run of the Tool
24.List disk information
– Use this option to display the list of disks attached to your system. This will also list removed or failed disks.
Example: Listing all disks & detailed information for a specific disk
Output: Select an operation to perform: list List disk information Menu: VolumeManager/Disk/ListDisk Use this option to display a list of disks. You can also choose to list detailed information about the disk at a specific disk device address. Enter disk device or all [address,all,q,?] (default: all) DEVICE DISK GROUP STATUS c1t0d0 rootdisk01 rootdg online c2t0d0 rootdisk02 rootdg online c4t9d0 - - online invalid c4t10d0 - - online invalid c4t11d0 - - online invalid c4t12d0 - - online invalid c4t13d0 - - online invalid c4t14d0 - - online invalid Device to list in detail [address,none,q,?] (default: none) c4t10d0 Device: c4t10d0s2 devicetag: c4t10d0 type: auto info: format=none flags: online ready private autoconfig invalid pubpaths: block=/dev/vx/dmp/c4t10d0s2 char=/dev/vx/rdmp/c4t10d0s2 guid: - udid: OPNFILER%5FVIRTUAL-DISK%5FDISKS%5FOPNFILER3nfUf2-Y2Rj-gFJ3 site: - Multipathing information: numpaths: 1 c4t10d0s2 state=enabled List another disk device? [y,n,q,?] (default: n) n