Saturday, February 16, 2013

VERITAS


VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2)
Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2002.
1
V E R I T A S E D U C A T I O N Q U I C K R E F E R E N C E
Basic VxVM Commands
DISK OPERATIONS
Action Command Line
Initialize a disk vxdisksetup -i device
List disks owned by local
and remote hosts vxdisk –o alldgs list
List disk header vxdisk list diskname|device
Evacuate a disk vxevac -g diskgroup from_disk to_disk
Rename a disk vxedit -g diskgroup rename oldname newname
Set spare, no hot relocation,
or reserved space on a disk
vxedit -g diskgroup set
{spare|nohotuse|reserve}=on|off diskname
Unrelocate a disk vxunreloc -g diskgroup original_diskname
DISK GROUP OPERATIONS
Action Command Line
Create a disk group vxdg init diskgroup diskname=device
Add a disk to disk group vxdg -g diskgroup adddisk diskname=device
Remove a disk from disk
group vxdg –g diskgroup rmdisk diskname
Deport, import or destroy a
disk group vxdg {deport|import|destroy} diskgroup
List disk groups vxdg list [diskgroup]
Show free/spare space pool vxdg –g diskgroup {free|spare}
Upgrade disk group version vxdg [-T version] upgrade diskgroup
Rewrite disk headers,
configuration copies, and
kernel log copies in a disk
group.
vxdg flush diskgroup targetdg object...
or
vxdctl enable (for all disk groups)
Move an object between
disk groups vxdg move sourcedg targetdg object...
Split objects between disk
groups vxdg split sourcedg targetdg object...
Join disk groups vxdg join sourcedg targetdg
List objects affected by a
disk group move operation vxdg listmove sourcedg targetdg object...
VOLUME OPERATIONS
Action Command Line
Create a volume vxassist -g diskgroup make vol_name size
layout=format diskname
Remove a volume
vxedit -g diskgroup -rf rm vol_name
or
vxassist -g diskgroup remove volume
vol_name
Display a volume vxprint -g diskgroup -vt vol_name
vxprint -g diskgroup –l vol_name
Change volume read
policy
vxvol -g diskgroup rdpol round vol_name
vxvol -g diskgroup rdpol prefer vol_name
preferrred_plex_name
vxvol -g diskgroup rdpol select vol_name
Mirror an existing plex vxassist -g diskgroup mirror vol_name
Create a snapshot
volume
vxassist –g diskgroup -b snapstart
vol_name
vxassist –g diskgroup snapshot vol_name
new_volume
Abort a snapshot vxassist -g diskgroup snapabort
orig_vol_name
Reassociate a
snapshot
vxassist -g diskgroup snapback
snapshot_vol
Dissociate a snapshot vxassist -g diskgroup snapclear
snapshot_vol
Print snapshot
information vxassist -g diskgroup snapprint vol_name
Relayout a volume vxassist -g diskgroup relayout vol_name
layout=new_layout [attributes...]
Convert to or from a
layered layout
vxassist -g diskgroup convert vol_name
layout=new_layout [attributes...]
Add a log to a volume vxassist –g diskgroup addlog vol_name

cfgadm:::Device being used by VxVM


cfgadm:::Device being used by VxVM

root@abc>/> cfgadm -c unconfigure c1::dsk/c1t0d0
cfgadm: Component system is busy, try again: failed to offline: /devices/ssm@0,0/pci@1c,700000/pci@1/SUNW,isptwo@4/sd@0,0
Resource              Information
——————  ————————-
/dev/dsk/c1t0d0s2   Device being used by VxVM
“cfgadm unconfigure” command fails here.
The way to resolve this is to disable the disks path from DMP control. Since there is only one path to this disk, the “-f” (for force) option needs to be used:
root@abc>/> vxdmpadm -f disable path=c1t0d0s2
root@abc>/> vxdmpadm getsubpaths ctlr=c1
NAME         STATE[A]   PATH-TYPE[M] DMPNODENAME  ENCLR-TYPE   ENCLR-NAME   ATTRS
================================================================================
c1t0d0s2     DISABLED     -          c1t0d0s2     Disk         Disk           -
c1t6d0s2     ENABLED(A)   -          c1t6d0s2     Disk         Disk           -
You can see the path now disabled from DMP.
root@abc>/> cfgadm -c unconfigure c1::dsk/c1t0d0
cfgadm goes through fine.
root@abc>/>

The cfgadm unconfigure command fails with "Device being used by VxVM".


Problem



The cfgadm unconfigure command fails with "Device being used by VxVM".

Solution



While trying to remove a device from the OS with cfgadm unconfigure the following error occurs.

PROBLEM:
# cfgadm -f -c unconfigure c3::dsk/c3t2d0
cfgadm: Component system is busy, try again: failed to offline:
Resource Information
------------------ -------------------------
/dev/dsk/c3t2d0s2 Device being used by VxVM

Note the Volume Manager daemon is running:
# vxdctl mode
mode: enabled

The vxdisk list command shows the device is not initialized, but does have a valid label.
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:none - - online invalid
c3t1d0s2 auto:none - - online invalid
c3t2d0s2 auto:none - - online invalid


SOLUTION:
If VCS is running, freeze all servicegroup's that contain a diskgroup first.
# vxdctl stop
# cfgadm -f -c unconfigure c3::dsk/c3t2d0
# vxconfigd -x syslog


Notice the c3t3d0 device is gone once vxconfigd rebuilt the dmpnodes from the configured OS devices.
# vxdisk list
DEVICE TYPE DISK GROUP STATUS
c3t0d0s2 auto:none - - online invalid
c3t1d0s2 auto:none - - online invalid

Now a physical disk removal/replacement is possible.

http://www.symantec.com/business/support/index?page=content&id=TECH64454

Saturday, February 21, 2009

VERITAS

VERITAS Education http://us.training.veritas.com 800-327-2232 (option 2)
Copyright © 2002 VERITAS Software Corporation. All Rights Reserved. VERITAS, VERITAS Software, the VERITAS logo, and all other VERITAS product names and slogans are trademarks or
registered trademarks of VERITAS Software Corporation in the US and/or other countries. Other product names and/or slogans mentioned herein may be trademarks or registered trademarks of
their respective companies. Specifications and product offerings subject to change without notice. Printed in USA and the EU. March 2002.
1
V E R I T A S E D U C A T I O N Q U I C K R E F E R E N C E
Basic VxVM Commands
DISK OPERATIONS
Action Command Line
Initialize a disk vxdisksetup -i device
List disks owned by local
and remote hosts vxdisk –o alldgs list
List disk header vxdisk list disknamedevice
Evacuate a disk vxevac -g diskgroup from_disk to_disk
Rename a disk vxedit -g diskgroup rename oldname newname
Set spare, no hot relocation,
or reserved space on a disk
vxedit -g diskgroup set
{sparenohotusereserve}=onoff diskname
Unrelocate a disk vxunreloc -g diskgroup original_diskname
DISK GROUP OPERATIONS
Action Command Line
Create a disk group vxdg init diskgroup diskname=device
Add a disk to disk group vxdg -g diskgroup adddisk diskname=device
Remove a disk from disk
group vxdg –g diskgroup rmdisk diskname
Deport, import or destroy a
disk group vxdg {deportimportdestroy} diskgroup
List disk groups vxdg list [diskgroup]
Show free/spare space pool vxdg –g diskgroup {freespare}
Upgrade disk group version vxdg [-T version] upgrade diskgroup
Rewrite disk headers,
configuration copies, and
kernel log copies in a disk
group.
vxdg flush diskgroup targetdg object...
or
vxdctl enable (for all disk groups)
Move an object between
disk groups vxdg move sourcedg targetdg object...
Split objects between disk
groups vxdg split sourcedg targetdg object...
Join disk groups vxdg join sourcedg targetdg
List objects affected by a
disk group move operation vxdg listmove sourcedg targetdg object...
VOLUME OPERATIONS
Action Command Line
Create a volume vxassist -g diskgroup make vol_name size
layout=format diskname
Remove a volume
vxedit -g diskgroup -rf rm vol_name
or
vxassist -g diskgroup remove volume
vol_name
Display a volume vxprint -g diskgroup -vt vol_name
vxprint -g diskgroup –l vol_name
Change volume read
policy
vxvol -g diskgroup rdpol round vol_name
vxvol -g diskgroup rdpol prefer vol_name
preferrred_plex_name
vxvol -g diskgroup rdpol select vol_name
Mirror an existing plex vxassist -g diskgroup mirror vol_name
Create a snapshot
volume
vxassist –g diskgroup -b snapstart
vol_name
vxassist –g diskgroup snapshot vol_name
new_volume
Abort a snapshot vxassist -g diskgroup snapabort
orig_vol_name
Reassociate a
snapshot
vxassist -g diskgroup snapback
snapshot_vol
Dissociate a snapshot vxassist -g diskgroup snapclear
snapshot_vol
Print snapshot
information vxassist -g diskgroup snapprint vol_name
Relayout a volume vxassist -g diskgroup relayout vol_name
layout=new_layout [attributes...]
Convert to or from a
layered layout
vxassist -g diskgroup convert vol_name
layout=new_layout [attributes...]
Add a log to a volume vxassist –g diskgroup addlog vol_name