Controlling raw device access for an existing volume set

Article:HOWTO59603  |  Created: 2011-10-12  |  Updated: 2011-10-12  |  Article URL http://www.symantec.com/docs/HOWTO59603
Article Type
How To

Product(s)

Environment

Subject


Controlling raw device access for an existing volume set

To enable or disable raw device node access for an existing volume set, use the following command:

# vxvset [-g diskgroup] [-f] set makedev={on|off} vset

The makedev attribute can be specified to the vxvset set command to create (makedev=on) or remove (makedev=off) the raw device nodes for the component volumes of a volume set. If any of the component volumes are open, the -f (force) option must be specified to set the attribute to off.

Specifying makedev=off removes the existing raw device nodes from the /dev/vx/rdsk/diskgroup directory.

If the makedev attribute is set to off, and you use the mknod command to create the raw device nodes, you cannot read from or write to those nodes unless you set the value of makedev to on.

The syntax for setting the compvol_access attribute on a volume set is:

# vxvset [-g diskgroup] [-f] set \ 
  compvol_access={read-only|read-write} vset

The compvol_access attribute can be specified to the vxvset set command to change the access mode to the component volumes of a volume set. If any of the component volumes are open, the -f (force) option must be specified to set the attribute to read-only.

The following example sets the makedev=on and compvol_access=read-only attributes on a volume set, myvset2, in the disk group, mydg:

# vxvset -g mydg set makedev=on myvset2

The next example sets the compvol_access=read-write attribute on the volume set, myvset2:

# vxvset -g mydg set compvol_access=read-write myvset2

The final example removes raw device node access for the volume set, myvset2:

# vxvset -g mydg set makedev=off myvset2

See Raw device node access to component volumes


Legacy ID



uxrt-51sp1_v45034124_v63475671


Article URL http://www.symantec.com/docs/HOWTO59603


Terms of use for this information are found in Legal Notices