Reserving and Unreserving Disks for Use with ISP
When you initialize a disk for use with VxVM, for example, by running the vxdiskadm command, both ISP and non-ISP utilities have access to the space on the disk. You can reserve a disk for use with either set of utilities by setting the values of the allocator_reserved and allocator_nouse flags for the disk.
To reserve disks for exclusive use with ISP, and prevent non-ISP utilities such as vxassist from using these disks, select the menu item 22 Mark a disk as ISP-reserved for a disk group from the main menu of the vxdiskadm command. Alternatively, you can use the following command to reserve a disk specified by its disk media name for use with ISP:
# vxedit [-g diskgroup] set "allocator_reserved=on" diskname
Note
A disk that is to be reserved for ISP must not contain any existing VxVM subdisks.
To remove the reservation flag from disks, select menu item 23 Turn off the allocator-reserved flag on a disk from the main menu of the vxdiskadm command. Alternatively, you can use the following command to remove ISP reservation from a disk specified by its disk media name:
# vxedit [-g diskgroup] set "allocator_reserved=off" diskname
To prevent a disk from being used by ISP, enter the following command:
# vxedit [-g diskgroup] set "allocator_nouse=on" diskname
The following command removes the restriction on ISP using a disk:
# vxedit [-g diskgroup] set "allocator_nouse=off" diskname
Note
The flags allocator_reserved and allocator_nouse are mutually exclusive. Their values cannot both be set to on for a disk.
You can use the vxdisk list and vxprint commands to tell whether a disk has been reserved for ISP, as shown in the following examples:
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c0t8d0 auto:cdsdisk mydg1 mydg online allocrsvd
# vxprint -g mydg mydg1
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
dm mydg1 c0t8d0 - 35365968 - ALLOC_RES - -
The allocrsvd status flag and the ALLOC_RES state indicate that a disk is reserved for use with ISP.
|