Site icon UnixArena

VxVM – vxlist – Command syntax with examples

/opt/VRTS/bin/vxlist – UnixArena’s Manual Page

/opt/VRTS/bin/vxlist – displays records of the Storage Foundation configuration.

Tasks Switches
Setting up or initialize storage foundation records /opt/VRTSsfmh/adm/dclisetup.sh
Display Consalidated storage foundation information vxlist [-g diskgroup]
List the Veritas Volume Manager alerts vxlist [-g diskgroup] alert
List the Volume Manager cache objects vxlist [-g diskgroup] cache
List the disks vxlist [-g diskgroup]  disk
List disk group information vxlist [-g diskgroup] dg|diskgroup
List the supported Array Support Libraries (ASL)  vxlist [-g diskgroup] dmp
Lists the enclosures vxlist [-g diskgroup] enclosure|enclr|array
List the mounted file systems vxlist [-g diskgroup] fs|filesystem
Lists the controllers vxlist hba|hostport|controller|ctrl
List the Cluster Volume Manager node information vxlist [-g diskgroup] nodeinfo
List the paths vxlist [-g diskgroup] path
List the sub disks vxlist [-g diskgroup] subdisk|sd
List the plexes vxlist [-g diskgroup] plex|pl
List the volumes vxlist [-g diskgroup] vol|volume
List the Volume Manager snapshots vxlist snapshot|snap
Lists the unmounted file systems that are referenced in ‘vfstab’ vxlist umfilesystem|umfs
Displays the information in long format vxlist [-g diskgroup] -l vol vol_1
Display only the disks section in the property page for the specified volume vxlist [-g diskgroup] -s disk vol vol_1

vxlist – Command Line Examples

Setting up or initialize storage foundation records

  # ls -l /opt/VRTS/bin/vxlist
	lrwxrwxrwx   1 root     other         24 Sep 11 11:43 /opt/VRTS/bin/vxlist -> /opt/VRTSsfmh/bin/vxlist

  # vxlist
	VxVM DCLI vxlist ERROR V-50-49971-158 Authentication or communication could not be established with the server.
	vxdclid is not setup.
	Run /opt/VRTSsfmh/adm/dclisetup.sh as root	
  # /opt/VRTSsfmh/adm/dclisetup.sh

Display Consolidated storage foundation information

  # vxlist
	TY   DEVICE      DISK         DISKGROUP        SIZE      FREE STATUS
	disk c1t0d0s2    rootdisk01   rootdg         15.92g      0.00 imported
	disk c2t0d0s2    rootdisk02   rootdg         15.92g      0.00 imported
	disk c3t1d0s2    oradisk01    oradg         991.81m   866.81m imported
	disk c3t2d0s2    oradisk02    oradg         991.81m   866.81m imported
	disk c3t3d0s2    oradisk03    oradg         991.81m   866.81m imported
	disk c3t4d0s2    oradisk04    oradg         991.81m   856.09m imported
	disk c3t5d0s2    oradisk05    oradg         991.81m   933.43m imported
	disk c3t6d0s2    oradisk06    oradg         991.81m   933.43m imported
	disk c4t14d0s2   -            -                   -         - uninitialized

	TY   DISKGROUP   IMPORT    STATUS        SIZE    FREE ID
	dg   oradg       private   enabled      5.81g   5.19g 1411615747.337.vxserver
	dg   rootdg      private   enabled     31.85g    0.00 1410417163.12.vxserver

	TY   VOLUME      DISKGROUP        SIZE STATUS    LAYOUT    LINKAGE
	vol  appsvol01   oradg         100.00m healthy   concat    -
	vol  appsvol02   oradg         100.00m healthy   concat    -
	vol  dump        rootdg          1.56g healthy   concat    -
	vol  home        rootdg          2.39g healthy   concat    -
	vol  newvol      oradg         100.00m stopped   striped   -
	vol  oravol      oradg         100.00m healthy   concat    -
	vol  rootvol     rootdg         10.00g healthy   root      -
	vol  swapvol     rootdg          1.96g healthy   concat    -
	vol  testvol     oradg         100.00m healthy   raid5     -

	TY   FS     FSTYPE      SIZE    FREE   %USED DEVICE_PATH                  MOUNT_POINT
	fs   /      ufs        9.85g   4.62g     53% /dev/vx/dsk/bootdg/rootvol   /
	fs   dump   ufs        1.51g   1.46g      1% /dev/vx/dsk/bootdg/dump      /var/dump
	fs   home   ufs        2.34g   2.29g      1% /dev/vx/dsk/bootdg/home      /export/home

	TY   NAME   TYPE   STATE    WWN                                          PNAME
	hba  c1     SCSI   online   -                                            /pci@0,0/pci15ad,1976@10
	hba  c2     SCSI   online   -                                            /pci@0,0/pci15ad,790@11/pci15ad,1976@0
	hba  c3     SCSI   online   -                                            /pci@0,0/pci15ad,790@11/pci15ad,1976@1
	hba  c4     SCSI   online   IQN.1986-03.COM.SUN017A11DEF7FFFF.53C256B5   /iscsi

	TY   ENCLR_NAME   ENCLR_MODEL   ARRAY_TYPE   STATUS      ENCLR_SNO
	encl disk         VMware,       Disk         connected   DISKS

List the Veritas Volume Manager alerts

  # vxlist alert
  	TY   OBJ_TYPE   OBJ_NAME    DISKGROUP   SEVERITY   ALERT
	alrt plex       newvol-01   oradg       info       recoverable
	alrt vol        newvol      oradg       critical   disabled

List the Volume Manager cache objects

  # vxlist cache
	TY   NAME            SIZE    USED   MAXGROW DISKGROUP   STATUS
	co   cacheobj     100.00m   4.43m   200.00m oradg       active

List the disks

# vxlist -g oradg disk
	TY   DEVICE     DISK        DISKGROUP        SIZE      FREE STATUS
	disk c3t1d0s2   oradisk01   oradg         991.81m   866.81m imported
	disk c3t2d0s2   oradisk02   oradg         991.81m   866.81m imported
	disk c3t3d0s2   oradisk03   oradg         991.81m   866.81m imported
	disk c3t4d0s2   oradisk04   oradg         991.81m   856.09m imported
	disk c3t5d0s2   oradisk05   oradg         991.81m   933.43m imported
	disk c3t6d0s2   oradisk06   oradg         991.81m   933.43m imported

List disk group information

  # vxlist dg|diskgroup
	TY   DISKGROUP   IMPORT    STATUS        SIZE    FREE ID
	dg   oradg       private   enabled      5.81g   5.10g 1411615747.337.vxserver
	dg   rootdg      private   enabled     31.85g    0.00 1410417163.12.vxserver
	dg   testdg      private   enabled      4.84g   4.84g 1411634825.349.vxserver

List the supported Array Support Libraries (ASL)

  # vxlist dmp
  	asl
	TY   NAME                  VERSION            VID
	asl  libvxCLARiiON.so      vm-6.0.100-rev-1   DGC
	asl  libvxFJTSYe6k.so      vm-6.0.100-rev-1   FUJITSU
	asl  libvxFJTSYe8k.so      vm-6.0.100-rev-1   FUJITSU
	asl  libvxInvista.so       vm-6.0.100-rev-1   EMC
	asl  libvxap.so            vm-6.0.100-rev-1   SUN
	....
	Output truncated
	....
	asl  libvxxp12k.so         vm-6.0.100-rev-1   HP
	asl  libvxxp256.so         vm-6.0.100-rev-1   HP
	asl  libvxxp1281024.so     vm-6.0.100-rev-1   HP
	asl  libvx3par.so          vm-6.0.100-rev-1   3PARdata
	asl  scsi3_jbod            -                  -

	jbod
	TY   VID        PID                OPCODE   PAGECODE   PAGEOFF   SNO_LEN   POLICY
	jbod SEAGATE    -                  18       -1         36        12        Disk
	jbod SUN        SESS01             18       -1         36        12        Disk

Lists the enclosures

  # vxlist enclosure|enclr|array
  	TY   ENCLR_NAME   ENCLR_MODEL   ARRAY_TYPE   STATUS      ENCLR_SNO
	encl disk         VMware,       Disk         connected   DISKS

List the mounted file systems

  # vxlist fs|filesystem

	TY   FS     FSTYPE      SIZE    FREE   %USED DEVICE_PATH                  MOUNT_POINT
	fs   /      ufs        9.85g   4.62g     53% /dev/vx/dsk/bootdg/rootvol   /
	fs   dump   ufs        1.51g   1.46g      1% /dev/vx/dsk/bootdg/dump      /var/dump
	fs   home   ufs        2.34g   2.29g      1% /dev/vx/dsk/bootdg/home      /export/home

Lists the controllers

  # vxlist hba
	TY   NAME   TYPE   STATE    WWN                                          PNAME
	hba  c1     SCSI   online   -                                            /pci@0,0/pci15ad,1976@10
	hba  c2     SCSI   online   -                                            /pci@0,0/pci15ad,790@11/pci15ad,1976@0
	hba  c3     SCSI   online   -                                            /pci@0,0/pci15ad,790@11/pci15ad,1976@1
	hba  c4     SCSI   online   IQN.1986-03.COM.SUN017A11DEF7FFFF.53C256B5   /iscsi

List the Cluster Volume Manager node information

  # vxlist nodeinfo (Applicable only to cluster nodes)
  	Host:  vcsnode1
	Host ID:            vcsnode1
	GUID:               {d5a789c4-4a3b-11e4-94e7-000c2950665d}
	Volboot Info:       major=3 minor=1 seqno=0.1
	Cluster Protocol Version: 120
	Volume Server State: inactive
	Volume Client State: uninitialized

List the paths

  # vxlist path
  	TY   DEVICE      DA          DM           HBA   TCA     LUN ENCLR_NAME
	path c1t0d0s2    c1t0d0s2    rootdisk01   c1    -         - disk
	path c2t0d0s2    c2t0d0s2    rootdisk02   c2    -         - disk
	path c3t1d0s2    c3t1d0s2    oradisk01    c3    -         - disk
	path c3t2d0s2    c3t2d0s2    oradisk02    c3    -         - disk
	path c3t3d0s2    c3t3d0s2    oradisk03    c3    -         - disk
	path c4t10d0s2   c4t10d0s2   disk2        c4    -         - disk
	path c4t11d0s2   c4t11d0s2   disk3        c4    -         - disk
	path c4t12d0s2   c4t12d0s2   disk4        c4    -         - disk

List the sub disks

  # vxlist -g rootdg sd   
  	TY   NAME            ASSOC        DISKGROUP       SIZE STATUS
	sd   rootdisk01-01   swapvol-01   rootdg         1.96g enabled
	sd   rootdisk01-02   rootvol-01   rootdg        10.00g enabled
	sd   rootdisk01-03   home-01      rootdg         2.39g enabled
	sd   rootdisk01-04   dump-01      rootdg         1.56g enabled
	sd   rootdisk02-01   rootvol-02   rootdg        10.00g enabled
	sd   rootdisk02-02   swapvol-02   rootdg         1.96g enabled
	sd   rootdisk02-03   home-02      rootdg         2.39g enabled
	sd   rootdisk02-04   dump-02      rootdg         1.56g enabled

List the plexes

# vxlist -g rootdg plex
  	TY   NAME         TYPE     ASSOC     DISKGROUP       SIZE LAYOUT   STATUS
	plex dump-01      simple   dump      rootdg         1.56g concat   attached
	plex dump-02      simple   dump      rootdg         1.56g concat   attached
	plex home-01      simple   home      rootdg         2.39g concat   attached
	plex home-02      simple   home      rootdg         2.39g concat   attached
	plex rootvol-01   simple   rootvol   rootdg        10.00g concat   attached
	plex rootvol-02   simple   rootvol   rootdg        10.00g concat   attached
	plex swapvol-01   simple   swapvol   rootdg         1.96g concat   attached
	plex swapvol-02   simple   swapvol   rootdg         1.96g concat   attached

List the volumes

  # vxlist vol|volume
  	TY   VOLUME      DISKGROUP        SIZE STATUS    LAYOUT   LINKAGE
	vol  appsvol01   oradg         100.00m healthy   concat   -
	vol  appsvol02   oradg         100.00m healthy   concat   -
	vol  cachevol    oradg         100.00m healthy   concat   -
	vol  dump        rootdg          1.56g healthy   concat   -
	vol  home        rootdg          2.39g healthy   concat   -
	vol  oravol      oradg         100.00m healthy   concat   snapto:snapvol
	vol  rootvol     rootdg         10.00g healthy   root     -
	vol  snapvol     oradg         100.00m healthy   concat   snapfrom:oravol

List the Volume Manager snapshots

  # vxlist snap
	TY   VOLUME    DISKGROUP        SIZE STATUS    LAYOUT   LINKAGE
	vol  snapvol   oradg         100.00m healthy   concat   snapfrom:oravol

Lists the unmounted file systems that are referenced in ‘vfstab’

# vxlist umfs
	TY   FS       FSTYPE   DEVICE_PATH                MOUNT_POINT
	umfs OraVol   vxfs     /dev/vx/dsk/oradg/oravol   /VERITAS/OraVol

Displays the information in long format

  # vxlist -l vol oravol
	Volume:  oravol
	Size:               100m
	Type:               fsgen
	Status:             healthy
	Read Policy:        SELECT
	Flags:              closed writecopy writeback fastresync
	Log Info:           type=DCO size=33.1m state=enabled 
	Recovery Mode:      default
	Device Info:        minor=21002 bdev=274/21002 cdev=274/21002
	Device Path:        /dev/vx/dsk/oradg/oravol
	Permissions:        user=root group=root mode=0600
	GUID:               {b4d40872-4490-11e4-a991-000c29656c89}
	Disk Group:         name=oradg id=1411615747.337.vxserver
	Layout:             concat
	NMirrors:           2
	Snapshots:          snapvol:fullinst
	Plex:               oravol-01 pl_id=0.1293 pl_size=100m pl_state=attached,oravol-02 pl_id=0.1297 pl_size=100m pl_state=attached 
	Subdisk:            oradisk03-01 sd_id=0.1295 disk_vdid={/dev/vx/rdmp/c3t3d0s2@vxserver} sd_size=100m sd_offset=0 sd_state=enabled,oradisk04-01 sd_id=0.1299 disk_vdid={/dev/vx/rdmp/c3t4d0s2@vxserver} sd_size=100m sd_offset=0 sd_state=enabled

Display only the disks section in the property page for the specified volume

  # vxlist -s disk vol oravol
	disks
	TY   DEVICE     DISK          NPATHS ENCLR_NAME   ENCLR_SNO   STATUS
	disk c3t3d0s2   oradisk03          1 disk         DISKS       imported
	disk c3t4d0s2   oradisk04          1 disk         DISKS       imported
Exit mobile version