0% found this document useful (0 votes)
131 views

VXVM Commands With Examples

Uploaded by

Subash Ct
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
131 views

VXVM Commands With Examples

Uploaded by

Subash Ct
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 180

vxtask – Syntax with example

October 10, 2014 223 Views

/usr/sbin/vxtask – List and administer VERITAS Volume Manager Tasks

The vxtask utility performs basic administrative operations on VERITAS Volume Manager (VxVM)
tasks that are running on the system. Operations include listing tasks (subject to filtering), modifying
the state of a task (aborting, pausing, resuming), and modifying the rate of progress of a
task. VERITAS Volume Manager Tasks represent long-term operations in progress on the system.
Every task provides the time the operation started, the size and progress of the operation, and the
operation’s state and rate of progress (throttle).

Tasks Switches
vxtask [-ahlpqr ] [-g dg_name [-g dg_name…]] [[-G dg_name] -
Listing VxVM Tasks
v volume [-v volume…]] [-i taskid] list [taskid…]

Pausing VxVM Tasks vxtask pause taskid

Resuming VxVM Tasks vxtask resume taskid

Aborting VxVM Tasks vxtask abort taskid

vxtask [-c count] [-t time] [-w wait_interval] [-ln ] monitor


Monitoring VxVM Tasks
[taskid[taskid…]]

Changing parameters of VxVM Tasks vxtask [-i taskid] set name=value taskid

Option Description
-a Limits the output to tasks in the aborting state.

-g disk group Limits the listed tasks to diskgroup

Distinguishes between volumes with the same name in


-G
different diskgroups

Prints tasks hierarchically with a task’s child tasks


-h
following the parent task

-l Prints tasks in long format.

-p Limits the output to tasks in the paused state.


-q Suppresses printing of column headings.

-r Limits the output to tasks in the running state.

-v volume Limits the output to tasks whose object is volume.

Listing VxVM Tasks

# vxtask list

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/R 04.50% 0/3276800/147456 RELAYOUT oravol oradg

Print tasks in long format

# vxtask -l list

Task: 184 PAUSED

Type: RELAYOUT

Operation: RELAYOUT Vol oravol Dg oradg

Started: Tue Oct 07 20:51:56 2014

Throttle: 0

Throttle time: 0

Progress: 65.04%2131136 of 3276800 Blocks

Work time: 2 minutes, 33 seconds (01:22 remaining)

Print Running Tasks

# vxtask -r list

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/R 65.04% 0/3276800/2131136 RELAYOUT oravol oradg


Print paused tasks

# vxtask -p list

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/P 65.04% 0/3276800/2131136 RELAYOUT oravol oradg

Suppress printing of column headings

# vxtask -q list

184 - RELAYOUT/P 65.04% 0/3276800/2131136 RELAYOUT oravol oradg

Pause specified tasks in running state

# vxtask -r list

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/R 04.50% 0/3276800/147456 RELAYOUT oravol oradg

# vxtask pause 184

# vxtask -p list - List paused tasks

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/P 65.04% 0/3276800/2131136 RELAYOUT oravol oradg

Resume specified paused tasks

# vxtask -p list - List paused tasks

TASKID PTID TYPE/STATE PCT PROGRESS

184 - RELAYOUT/P 65.04% 0/3276800/2131136 RELAYOUT oravol oradg


# vxtask resume 184

Abort any specified tasks

# vxtask abort 184

Monitoring VxVM Tasks

One line summary (Count=10, Exit_time=60s

# vxtask -c 10 -t 60 monitor

TASKID PTID TYPE/STATE PCT PROGRESS

210 - RELAYOUT/R 21.30% 0/3276800/698112 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.43% 0/3276800/702208 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.49% 0/3276800/704256 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.55% 0/3276800/706304 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.62% 0/3276800/708352 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.68% 0/3276800/710400 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.74% 0/3276800/712448 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.80% 0/3276800/714496 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.87% 0/3276800/716544 RELAYOUT oravol oradg

210 - RELAYOUT/R 21.93% 0/3276800/718592 RELAYOUT oravol oradg

Long listing (count=3)

# vxtask -c 3 -l monitor 210


Task: 210 RUNNING

Type: RELAYOUT

Operation: RELAYOUT Vol oravol Dg oradg

Started: Tue Oct 07 21:35:14 2014

Throttle: 0

Throttle time: 0

Progress: 56.17%1840448 of 3276800 Blocks

Work time: 30 seconds (0:23 remaining)

Task: 210 RUNNING

Type: RELAYOUT

Operation: RELAYOUT Vol oravol Dg oradg

Started: Tue Oct 07 21:35:14 2014

Throttle: 0

Throttle time: 0

Progress: 56.23%1842496 of 3276800 Blocks

Work time: 30 seconds (0:23 remaining)

Task: 210 RUNNING

Type: RELAYOUT

Operation: RELAYOUT Vol oravol Dg oradg

Started: Tue Oct 07 21:35:14 2014


Throttle: 0

Throttle time: 0

Progress: 56.29%1844544 of 3276800 Blocks

Work time: 30 seconds (0:23 remaining)


vxlist – syntax with examples
October 10, 2014 273 Views

/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


vxinfo – Syntax with examples
October 9, 2014 87 Views

/usr/sbin/vxinfo – UnixArena’s Manual page


/usr/sbin/vxinfo – Print accessibility and usability of volumes

The vxinfo utility reports a usage-type-dependent condition on one or more volumes in a disk
group.A report for each volume specified by the volume operand is written to the standard output.

Volume conditions:
Volume Condition Description

Startable A volume can be started using ‘vxvol start’ command.

Started The volume has been started and can be used.

The volume has been started but is not operationally accessible. This
condition may result from errors that have occurred since the volume was
Started Unusable
started, or may be a result of administrative actions, such as vxdg -k
rmdisk.

The volume is not started and either is not correctly configured or doesn’t
Unstartable meet the prerequisites for automatic startup (with volume startup)
because of errors or other conditions.

Plex States
State Description

1. When the volume is started and the plex fully participates in normal volume
I/O
ACTIVE
2. When the volume is stopped as a result of a system crash and the plex is
ACTIVE at the moment of the crash

When it is known to contain a consistent copy (mirror) of the volume contents


and an operation has disabled the volume. As a result, when all plexes of a
CLEAN
volume are clean, no action is required to guarantee that the plexes are
identical when that volume is started.
Data change object (DCO) plex attached to a volume can be used by a
DCOSNP
snapshot plex to create a DCO volume during a snapshot operation.

Volume creation sets all plexes associated with the volume to the EMPTY state
EMPTY
to indicate that the plex is not yet initialized.

When the vxconfigd daemon detects an uncorrectable I/O failure on an


IOFAIL ACTIVE plex, it places the plex in the IOFAIL state to exclude it from the
recovery selection process at volume start time.

LOG The state of a dirty region logging (DRL) or RAID-5 log plex is always set to LOG.

The vxmend off task indefinitely detaches a plex from a volume by setting the
OFFLINE
plex state to OFFLINE.

A snapshot plex that is being attached by the snapstart operation, when the
attach is complete, the state for the plex is changed to SNAPDONE. If the
SNAPATT
system fails before the attach completes, the plex and all of its subdisks are
removed.

A snapshot plex that is fully attached. If the system fails before the attach
SNAPDIS
completes, the plex is dissociated from the volume.

SNAPDONE A snapshot plex is ready for a snapshot to be taken

The SNAPTMP plex state is used during a vxassist snapstart operation when a
SNAPTMP
snapshot is being prepared on a volume.

A plex does not have the complete and current volume contents, that plex is
placed in the STALE state. Also, if an I/O error occurs on a plex, the kernel
STALE
stops using and updating the contents of that plex, and the plex state is set to
STALE.

Setting a plex to the TEMP state eases some plex operations that cannot occur
TEMP
in a truly atomic fashion.

vxinfo – command line examples:


Display Usable status Volumes in disk group
# vxinfo -g oradg

appsvol01 fsgen Started

appsvol02 fsgen Startable

oravol fsgen Started

newvol fsgen Unstartable

testvol raid5 Started

Report the name and condition of each plex in each reported volume
# vxinfo -g oradg -p

vol appsvol01 fsgen Started

plex appsvol01-01 ACTIVE

vol appsvol02 fsgen Startable

plex appsvol02-01 CLEAN

vol oravol fsgen Started

plex oravol-01 ACTIVE

plex oravol-02 ACTIVE

vol newvol fsgen Unstartable

plex newvol-01 OFFLINE

vol testvol raid5 Started

plex testvol-01 ACTIVE

plex testvol-02 LOG


vxmend syntax with examples
October 9, 2014 160 Views

/usr/sbin/vxmend – UnixArena’s Manual page


/usr/sbin/vxmend – mend simple problems in configuration records

The vxmend utility performs various Veritas Volume Manager (VxVM) usage-type-specific
operations on subdisk, plex, and volume records.

Tasks Switches
Put the named plexes or volumes into an offline state vxmend [-g diskgroup] [-o useopt] [-U usetype] off name

Take the named plexes or volumes out of the offline state vxmend [-g diskgroup] [-o useopt] [-U usetype] on name

Change the state of a volume or plex vxmend [-g diskgroup] [-o useopt] [-U usetype] fix how n

Clear specified utility fields for each named record in the disk vxmend [-fprsvV] [-g diskgroup] [-o useopt] [-U usetype]
group name …

vxmend – command line examples


Offline Volume and its associated plexes
Make sure the volume is disabled using ‘vxvol stop’ to avoid file system corruption.

v oravol - DISABLED CLEAN 1024000 SELECT - fsgen

pl oravol-01 oravol DISABLED CLEAN 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED CLEAN 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

# vxmend -g oradg -U fsgen -o force -r off oravol

v oravol - DISABLED CLEAN 1024000 SELECT - fsgen

pl oravol-01 oravol DISABLED OFFLINE 1024000 CONCAT - RW


sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED OFFLINE 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

Online Volume and its associated plexes


# vxmend -g oradg -U fsgen -o force -r on oravol

v oravol - DISABLED CLEAN 1024000 SELECT - fsgen

pl oravol-01 oravol DISABLED STALE 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED STALE 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

Note: To enable the volume, use ‘vxmend fix clean’ & ‘vxvol start’ commands.

Taking Plex offline for Maintenance


v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol ENABLED ACTIVE 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

# vxmend -g oradg -o force off oravol-01

v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED OFFLINE 1024000 CONCAT - RW


sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

Re-enables a plex for use


# vxmend -g oradg on oravol-02

v oravol - ENABLED ACTIVE 1024000 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED STALE 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

Setting the state of a plex in an unstartable volume to CLEAN


# vxmend -g oradg -o force fix clean oravol-02

v oravol - DISABLED CLEAN 1024000 SELECT - fsgen

pl oravol-01 oravol DISABLED STALE 1024000 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 1024000 0 c3t1d0 ENA

pl oravol-02 oravol DISABLED CLEAN 1024000 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 1024000 0 c3t2d0 ENA

To clear the aborted operation


Example:
Caught interrupt signal
VxVM vxplex ERROR V-5-1-1797 vol_commit in progress, interrupt twice to quit
Caught interrupt signal
# vxmend -g oradg clear tutil0 oravol-01

# vxmend -g oradg clear att1 oravol-01


vxedit – Syntax with Examples
October 9, 2014 160 Views

/usr/sbin/vxedit– Unix Arena’s Manual page


Product – Veritas Volume Manager-vxvm (Storage Foundation)
/usr/sbin/vxedit – create, remove, and modify VERITAS Volume Manager Records

 The vxedit utility sets and changes attributes for VERITAS Volume Manager (VxVM)
configuration records that do not depend upon volume usage types.
 Each invocation can be applied to only one disk group at a time.

Tasks Switches
Rename disk name in disk group vxedit [-g diskgroup] rename oldname newname

Remove VxVM virtual objects vxedit [-g diskgroup] [-rf] rm name…

vxedit [-e pattern] [-g diskgroup] set


Set or Change attributes of VxVM virtual objects
attribute=value… [name…]

vxdg command line Examples:


Renaming disk media name:
DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk oradisk01 oradg online

c3t2d0s2 auto:cdsdisk disk2 oradg online

# vxedit -g oradg rename disk2 oradisk02

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk oradisk01 oradg online

c3t2d0s2 auto:cdsdisk oradisk02 oradg online

Renaming Sub-disks
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0
sd disk02-01 - ENABLED 204800 - - - -

sd oradisk01-01 - ENABLED 204800 - - - -

# vxedit -g oradg rename disk02-01 oradisk02-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 - ENABLED 204800 - - - -

sd oradisk02-01 - ENABLED 204800 - - - -

Re-naming Plex
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl plex-01 - DISABLED 204800 - - - -

pl plex-02 - DISABLED 204800 - - - -

# vxedit -g oradg rename plex-01 oravol-01

NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl oravol-01 - DISABLED 204800 - - - -

pl plex-02 - DISABLED 204800 - - - -

Re-naming Volume
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

v oravol gen DISABLED 0 - EMPTY - -


# vxedit -g oradg rename oravol testvol

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

v testvol gen DISABLED 0 - EMPTY - -

Removing VxVM virtual objects


v testvol - DISABLED EMPTY 0 ROUND - gen

pl oravol-01 testvol DISABLED EMPTY 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

Volume
# vxedit -g oradg rm testvol

Note: Make sure you have detached plexes associated with volume.

Plex
# vxedit -g oradg rm oravol-01

Note: Make sure you have detached sub disks associated with plex.

Sub-Disks
# vxedit -g oradg rm oradisk01-01

Removing volume and its all associated objects


v oravol - ENABLED ACTIVE 204800 SELECT -
fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT -


RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0


ENA

pl oravol-02 oravol ENABLED ACTIVE 204800 CONCAT -


RW
sd oradisk02-01 oravol-02 oradisk02 0 204800 0 c3t2d0
ENA

# vxedit -g oradg -rf rm oravol

The option ‘-rf’ removes recursively & forcefully, so use it with caution.

Setting or Changing Attributes of virtual objects


Disks used here,

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk oradisk01 oradg online

c3t2d0s2 auto:cdsdisk oradisk02 oradg online failing

c3t3d0s2 auto:cdsdisk oradisk03 oradg online

c3t4d0s2 auto:cdsdisk oradisk04 oradg online

Set aside/does not set aside a disk from use in a disk group
# vxedit -g oradg set reserve=on oradisk01

Does not/does allow free space on a disk to be used for hot-relocation


# vxedit -g oradg set nohotuse=on oradisk03

Add/remove a disk from the pool of hot-relocation spares


# vxedit -g oradg set spare=on oradisk04

Set or clear ‘failing’ flag on specified disks


# vxedit -g oradg set failing=off oradisk02

After Setting or Changing attributes,


DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk oradisk01 oradg online reserved

c3t2d0s2 auto:cdsdisk oradisk02 oradg online


c3t3d0s2 auto:cdsdisk oradisk03 oradg online nohotuse

c3t4d0s2 auto:cdsdisk oradisk04 oradg online spare

vxdisk Syntax with Examples


October 1, 2014 796 Views

vxdisk – UnixArena’s Manual Page


/usr/sbin/vxdisk – Define and manage VERITAS Volume Manager disks

The vxdisk utility performs basic administrative operations on disks. Operations include initializing
and replacing disks, as well as taking care of some book-keeping necessary for the disk model
presented by VERITAS Volume Manager (VxVM).

Note: A disk does not have a disk media name until it has been initialized by VxVM. For vxdisk
operations on an initialized disk (disk), the disk may be specified either by its disk access name or by
its disk media name.Physical disks in VxVM are assumed to be movable, and are usually identified
by a unique disk ID stored on the physical disk, rather than by a disk device node. This allows disks
to be moved to different SCSI target IDs or to different controllers without affecting correct
operation.

Tasks Switches

Determine the usability of the specified disks vxdisk [-f] [-g diskgroup] check disk

Clear the host-specific import information stored on


vxdisk [-f] clearimport accessname …
the disks

Define disk access record, but do not initialize vxdisk [-f] define accessname [attribute …]

Uninitializes a disk from VxVM vxdisk [-f] destroy accessname …

Rewrite all CDS ID information to the specified disk vxdisk [-f] flush accessname …

Initializes regions of a disk used by VxVM. vxdisk [-f] [-r] init accessname [attribute …]

Display disk summary vxdisk [-g diskgroup] list


Display detailed information about the specified disks vxdisk [-g diskgroup] list accessname

Display OS native name based output vxdisk [-g diskgroup] -e list

Display Disk summary information about specified disk vxdisk [-g diskgroup] -s list [accessname]

Display discovery information about disks vxdisk [-g diskgroup] -p list [accessname]

Customized discovery information vxdisk [-x name1 -x name2] -p list

Display all disk association information vxdisk -o alldgs list

Take the disk offline vxdisk [-f] [-l filename] offline [accessname …]

vxdisk [-f] [-a] [-l filename] online


Bring the disk’s to online
[accessname …]

vxdisk [-f] [-g diskgroup] resize


Resize Disks or LUNS
{accessname|medianame} [length=value]

Remove disk from VxVM’s view vxdisk [-f] rm accessname …

vxdisk [-f] scandisks [ [!]device=…| [!]ctlr=…|


Initiates the rescanning of devices
[!]pctlr=…|new|fabric]

Updates the unique disk identifier vxdisk [-g diskgroup] updateudid disk …

Determine the usability of the specified disks


# vxdisk check c3t1d0

c3t1d0: Error: Disk is not usable

# vxdisk check c3t2d0


c3t1d0s2: Okay

Clear the host-specific import information stored on the indicated disks


Example scenario,
VxVM vxdg ERROR V-5-1-10978 Disk group testdg: import failed: Disk is in use by another host

# vxdisk -f clearimport c3t1d0 c3t2d0

Define disk access record, but do not initialize


# vxdisk define c4t13d0 format=cdsdisk

DEVICE TYPE DISK GROUP STATUS

c4t13d0s2 auto:cdsdisk - - error

Device: c4t13d0s2

devicetag: c4t13d0

type: auto

info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2

flags: error private

pubpaths: block=/dev/vx/dmp/c4t13d0s2 char=/dev/vx/rdmp/c4t13d0s2

guid: -

udid: -

site: -

errno: Disk is not useable, bad format

Multipathing information:

numpaths: 1
c4t13d0s2 state=enabled

Un-initializes a disk from VxVM


DEVICE TYPE DISK GROUP STATUS

c4t13d0s2 auto:cdsdisk - - online

# vxdisk destroy c4t13d0

DEVICE TYPE DISK GROUP STATUS

c4t13d0s2 auto:none - - online invalid

Rewrite all CDS ID information to the specified disk


# vxdisk -f flush c4t13d0

Initializes regions of a disk used by VxVM.


DEVICE TYPE DISK GROUP STATUS

c4t13d0s2 auto:cdsdisk - - error

# vxdisk -f init c4t13d0 format=cdsdisk

DEVICE TYPE DISK GROUP STATUS

c4t13d0s2 auto:cdsdisk - - online

Display disk summary


# vxdisk list
DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online

c3t1d0s2 auto:cdsdisk c3t1d0 testdg online

c3t2d0s2 auto:cdsdisk c3t2d0 testdg online

c3t3d0s2 auto:cdsdisk c3t3d0 testdg online nohotuse

c3t4d0s2 auto:cdsdisk c3t4d0 testdg online spare

c3t5d0s2 auto - - offline

c3t6d0s2 auto:cdsdisk disk1 newdg online

c4t10d0s2 auto:simple - - online

c4t11d0s2 auto:sliced - - online

c4t12d0s2 auto:none - - online invalid

c4t13d0s2 auto:cdsdisk - - error

c4t14d0s2 auto:none - - online invalid

- - disk2 newdg failed was:c4t9d0s2

Display detailed information about the specified disks


# vxdisk list

Device: c3t1d0s2

devicetag: c3t1d0

type: auto
hostid: vxserver

disk: name=c3t1d0 id=1411575503.166.vxserver

group: name=testdg id=1411577705.178.vxserver

info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2

flags: online ready private autoconfig autoimport imported

pubpaths: block=/dev/vx/dmp/c3t1d0s2 char=/dev/vx/rdmp/c3t1d0s2

guid: {68391d66-4406-11e4-a991-000c29656c89}

udid:
VMware%2C%5FVMware%20Virtual%20S%5FDISKS%5F6000C299459294E7CD53E0D3DEECC10C

site: -

version: 3.1

iosize: min=512 (bytes) max=2048 (blocks)

public: slice=2 offset=65792 len=2031232 disk_offset=0

private: slice=2 offset=256 len=65536 disk_offset=0

update: time=1411587144 seqno=0.27

ssb: actual_seqno=0.0

headers: 0 240

configs: count=1 len=48144

logs: count=1 len=7296

Defined regions:

config priv 000048-000239[000192]: copy=01 offset=000000 enabled

config priv 000256-048207[047952]: copy=01 offset=000192 enabled


log priv 048208-055503[007296]: copy=01 offset=000000 enabled

lockrgn priv 055504-055647[000144]: part=00 offset=000000

Multipathing information:

numpaths: 1

c3t1d0s2 state=enabled

Display OS native name based output


# vxdisk -e list

DEVICE TYPE DISK GROUP STATUS


OS_NATIVE_NAME ATTR

disk_0 auto:sliced rootdisk02 rootdg online c2t0d0s2


-

disk_1 auto:cdsdisk disk1 newdg online c3t6d0s2


-

disk_2 auto - - offline c3t5d0s2


-

disk_3 auto:sliced rootdisk01 rootdg online c1t0d0s2


-

disk_4 auto:cdsdisk c3t4d0 testdg online spare c3t4d0s2


-

disk_5 auto:cdsdisk c3t1d0 testdg online c3t1d0s2


-

disk_6 auto:cdsdisk c3t3d0 testdg online nohotuse c3t3d0s2


-

disk_7 auto:cdsdisk c3t2d0 testdg online c3t2d0s2


-
disk_8 auto:simple - - online
c4t10d0s2 -

disk_9 auto:none - - online invalid


c4t12d0s2 -

disk_10 auto:cdsdisk - - error


c4t13d0s2 -

disk_11 auto:sliced - - online


c4t11d0s2 -

disk_12 auto:none - - online invalid


c4t14d0s2 -

- - disk2 newdg failed was:c4t9d0s2

Display Disk summary information about specified disk


# vxdisk -s list c3t1d0s2

Disk: c3t1d0s2

type: auto

flags: online ready private autoconfig autoimport imported

guid: {68391d66-4406-11e4-a991-000c29656c89}

udid:
VMware%2C%5FVMware%20Virtual%20S%5FDISKS%5F6000C299459294E7CD53E0D3DEECC10C

site: -

diskid: 1411575503.166.vxserver

dgname: testdg

dgid: 1411577705.178.vxserver

hostid: vxserver
info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2

vxdisk -o mediatype list

Display discovery information about disks


# vxdisk -p list c4t9d0s2

DISK : c4t9d0s2

DISKID : 1411587602.274.vxserver

VID : OPNFILER

UDID : OPNFILER%5FVIRTUAL-DISK%5FDISKS%5FOPNFILERUEWMXR-tkYE-EV5k

SCSI_VERSION : 4

REVISION : 0

PID : VIRTUAL-DISK

PHYS_CTLR_NAME : /iscsi

MEDIA_TYPE : hdd

LUN_SNO_ORDER : 12

LUN_SERIAL_NO : OPNFILERUEWMXR-tkYE-EV5k

LIBNAME : scsi3_jbod

DMP_DEVICE : c4t9d0

CAB_SERIAL_NO : DISKS

ATYPE : Disk

ARRAY_PORT_PWWN:

ANAME : Disk
TRANSPORT : iSCSI

ENCLOSURE_NAME : disk

DMP_SINGLE_PATH: /dev/rdsk/c4t9d0s2

NUM_PATHS : 1

Customized discovery information


# vxdisk -x DMP_SINGLE_PATH -x NUM_PATHS -p list

DEVICE DMP_SINGLE_PATH NUM_PATHS

c1t0d0s2 1 /dev/rdsk/c1t0d0s2

c2t0d0s2 1 /dev/rdsk/c2t0d0s2

c4t9d0s2 1 /dev/rdsk/c4t9d0s2

c4t10d0s2 1 /dev/rdsk/c4t10d0s2

c4t11d0s2 1 /dev/rdsk/c4t11d0s2

c4t12d0s2 2 NULL

c4t13d0s2 2 NULL

c4t14d0s2 2 NULL

Display all disk association information


# vxdisk -o alldgs list

DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online


c3t1d0s2 auto:cdsdisk - (testdg) online

c3t2d0s2 auto:cdsdisk - (testdg) online

c3t3d0s2 auto:cdsdisk - (testdg) online

c3t4d0s2 auto:cdsdisk - (testdg) online

c3t5d0s2 auto:cdsdisk - - online

c3t6d0s2 auto:cdsdisk - - online

Take the disk offline:


This operation cannot be applied to disks that are members of an imported disk group

# cat /access_names.txt
c3t1d0s2

c3t2d0s2

c3t3d0s2

c3t4d0s2

# vxdisk -f -l /access_names.txt offline

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto - - offline

c3t2d0s2 auto - - offline

c3t3d0s2 auto - - offline

c3t4d0s2 auto - - offline

Bring the disk’s to online


# vxdisk -f -l /access_names.txt online

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:cdsdisk - - online

c3t3d0s2 auto:cdsdisk - - online

c3t4d0s2 auto:cdsdisk - - online

Re-sizing Disks or LUNS


Note:

 If you dont specify the length, all additional usable space on the device is claimed. – If you shrink
a LUN, you must specify the new length explicitly.
 Any volumes on the device should only be grown after the device itself has first been grown.
Otherwise, storage other than the device may be used to grow the volumes, or the volume resize
may fail if no free storage is available.
 Resizing should only be performed on devices that preserve data. Consult the array documentation
to verify that data preservation is supported. – It is possible to resize LUNs that are online but not
part of any disk group.
 Do not perform this operation when replacing a physical disk with a disk of a different size as data
is not preserved. – Before reducing the size of a device, any volumes on the device should first be
reduced in size or moved off the device.
 If the device that is being resized has the only valid configuration copy for a disk group, the -f
option may be specified to forcibly resize the device.
 Resizing a device that contains the only valid configuration copy for a disk group can result in data
loss if a system crash occurs during the resize.
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dm disk1 c4t9d0s2 - 2031232 - - - -

dm disk2 c4t18d0s2 - 982672 - - - -


# vxdisk -f -g testdg resize disk2

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dm disk1 c4t9d0s2 - 2031232 - - - -

dm disk2 c4t18d0s2 - 2031232 - - - -

Removing disk from VxVM’s view


DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:cdsdisk - - online

c4t14d0s2 auto:none - - online invalid

c4t16d0s2 auto:none - - online invalid

# vxdisk rm c4t14d0s2

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:cdsdisk - - online

c4t16d0s2 auto:none - - online invalid

Initiates the re-scanning of devices


DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:cdsdisk - - online


# vxdisk scandisks

DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:cdsdisk - - online

c4t16d0s2 auto:none - - online invalid

You can also use the following to re-scan the disks.


# vxdisk scandisks new

# vxdisk scandisks fabric

# vxdisk scandisks ctlr=c1,c2

# vxdisk scandisks !device=c1t1d0,c2t1d0

Updates the unique disk identifier


# vxdisk updateudid c4t18d0s2

# vxdisk list c4t18d0s2 | grep -i udid

udid: OPNFILER%5FVIRTUAL-DISK%5FDISKS%5FOPNFILERlEz1fa-xZaX-5wpw
vxdiskunsetup Syntax with Examples
October 1, 2014 191 Views

vxdiskunsetup – UnixArena’s Manual Page


/opt/VRTS/bin/vxdiskunsetup – Remove the VERITAS Volume Manager configuration

 This command removes the VERITAS Volume Manager configuration from one or more disks.
 This command reverses the configuration done by the vxdisksetup command. This operation
makes the disks unusable by VxVM.
 This command can be applied only to VxVM-initialized disks that are not in use within an
imported disk group.
 This command operates by removing the public and private regions that were created by the
last invocation of vxdisksetup on the specified disks. After this operation, those disks are
converted from the online to the online invalid.
Options Usage

Force de-configuration of the disk, effectively removing the host


-C
locks that were detected by vxdiskunsetup.

-f Force a shred operation on an SSD disk.

The shred operation overwrites the data on the disk with a digital
-o shred[=1|3|7] pattern in one or more passes. Specify the number of passes as 1, 3,
or 7. The default is 1 pass.

All Disk’s in Use by VxVM


DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online

c3t1d0s2 auto:cdsdisk - - online

c3t2d0s2 auto:simple - - online


c3t3d0s2 auto:sliced - - online

c4t9d0s2 auto:cdsdisk - (testdg) online

c4t10d0s2 auto:cdsdisk - (testdg) online

Force de-configuration of a VxVM-initialized disk’s:


# vxdiskunsetup -C c3t1d0 c3t2d0 c3t3d0 c4t9d0 c4t10d0

DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online

c3t1d0s2 auto:none - - online invalid

c3t2d0s2 auto:none - - online invalid

c3t3d0s2 auto:none - - online invalid

c4t9d0s2 auto:none - - online invalid

c4t10d0s2 auto:none - - online invalid

Shred a VxVM-initialized disk, hds9970v0_14, with 3 passes:


# vxdiskunsetup -o shred=3 hds9970v0_14
vxdisksetup syntax with Example
October 1, 2014 436 Views

VXDISKSETUP -UnixArena’s Manual Page


/opt/VRTS/bin/vxdisksetup – Configure a disk for use with VERITAS Volume Manager

The vxdisksetup command configures the disk for use by VERITAS Volume Manager (VxVM).
‘vxdisksetup’ is called by the vxdiskadd command as part of initial disk configuration. It is not
typically necessary to call this command directly.

Note: In release 4.0 of VxVM, the behavior of the vxdisksetup command has been changed so that it
only

Creates autoconfigured disks, which can have one of the following formats:
1. cdsdisk
 The disk is formatted as a CDS disk that is suitable for moving between different operating
systems.
 This is the default format (provided that the -i option is used to write the disk header).
 It is not suitable for boot disks.
 For disks less than 1 TB slice 7 holds private & public region. For the disk in more size slice 2
will be holding private & public region.
2. none
 The disk is un-formatted. This value may be displayed, but it cannot be set as a valid format.

3. simple
 Slice 3 is created to hold the private and public regions with all other slices (apart from slice
2) zeroed out.
4. sliced
 Slices 3 and 4 are created to hold separate private and public region partitions with all other
slices (apart from slice 2) zeroed out.
 This format can be applied to disks that can be used to boot the system.
 If the disk is not initialized as a boot disk, space is reserved on the disk to allow it to be converted
to cdsdisk format if required.
The private region is used by VxVM to store configuration information, and is followed by a public
region from which sub disks can be allocated. Default private region length is 32 MB.
Options Usage
Allocates the private region at the end of the disk.
-e
Note: This option is not supported for cdsdisk and simple format disks.

-f Forces a disk to be initialized even if it is a member of a deported disk group.

Writes a disk header to the disk, initializes the private region of the disk and makes the
disk directly usable
Note:
-i
A disk that is a member of an imported disk group cannot be initialized. The command
also fails if the disk is a member of a deported disk group. The -f option can be used to
override the latter restriction.

Must be specified with the -f option to remove the UFS file system signature from a
-r
disk.

Disks are currently in VxVM’s view:


DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online

c3t1d0s2 auto:none - - online invalid

c3t2d0s2 auto:none - - online invalid

c3t3d0s2 auto:none - - online invalid

c4t9d0s2 auto:none - - online invalid

c4t10d0s2 auto:none - - online invalid

Initializing disk in CDS Format


# vxdisksetup -i c3t1d0

Let’s check the status of the disk,


DEVICE TYPE DISK GROUP STATUS

c3t1d0s2 auto:cdsdisk - - online

Device: c3t1d0s2

devicetag: c3t1d0

type: auto

hostid:

disk: name= id=1411570178.128.vxserver

group: name= id=

info: format=cdsdisk,privoffset=256,pubslice=2,privslice=2

flags: online ready private autoconfig autoimport

pubpaths: block=/dev/vx/dmp/c3t1d0s2 char=/dev/vx/rdmp/c3t1d0s2

guid: {01ff865e-43fa-11e4-a991-000c29656c89}

udid:
VMware%2C%5FVMware%20Virtual%20S%5FDISKS%5F6000C299459294E7CD53E0D3DEECC10C

site: -

version: 3.1

iosize: min=512 (bytes) max=2048 (blocks)

public: slice=2 offset=65792 len=2031232 disk_offset=0

private: slice=2 offset=256 len=65536 disk_offset=0

update: time=1411570178 seqno=0.2

ssb: actual_seqno=0.0
headers: 0 240

configs: count=1 len=48144

logs: count=1 len=7296

Defined regions:

config priv 000048-000239[000192]: copy=01 offset=000000 disabled

config priv 000256-048207[047952]: copy=01 offset=000192 disabled

log priv 048208-055503[007296]: copy=01 offset=000000 disabled

lockrgn priv 055504-055647[000144]: part=00 offset=000000

Multipathing information:

numpaths: 1

c3t1d0s2 state=enabled

As per the above output note this following,


1. The disk layout type is changed from ‘auto:none’ to ‘auto:cdsdisk’
2. The disk ID is ‘id=1411570178.128.vxserver’
3. pubpaths: block=/dev/vx/dmp/c3t1d0s2 char=/dev/vx/rdmp/c3t1d0s2
4. Multipathing information: numpaths: 1
5. public: slice=2 offset=65792 len=2031232 disk_offset=0
6. private: slice=2 offset=256 len=65536 disk_offset=0
7. iosize: min=512 (bytes) max=2048 (blocks)

Initializing disk in SLICED format:


# vxdisksetup -e -i c3t2d0 format=sliced

DEVICE TYPE DISK GROUP STATUS

c3t2d0s2 auto:sliced - - online


Device: c3t2d0s2

devicetag: c3t2d0

type: auto

hostid:

disk: name= id=1411570626.129.vxserver

group: name= id=

info: format=sliced,privoffset=4,pubslice=4,privslice=3

flags: online ready private autoconfig autoimport

pubpaths: block=/dev/vx/dmp/c3t2d0s4 char=/dev/vx/rdmp/c3t2d0s4

privpaths: block=/dev/vx/dmp/c3t2d0s3 char=/dev/vx/rdmp/c3t2d0s3

guid: -

udid:
VMware%2C%5FVMware%20Virtual%20S%5FDISKS%5F6000C29D279EE0D6FE6F3C73FECCE2EA

site: -

version: 2.1

iosize: min=512 (bytes) max=2048 (blocks)

public: slice=4 offset=0 len=2030884 disk_offset=288

private: slice=3 offset=4 len=65596 disk_offset=2031168

update: time=1411570626 seqno=0.2

ssb: actual_seqno=0.0

headers: 0 248

configs: count=1 len=48390


logs: count=1 len=7331

Defined regions:

config priv 000017-000247[000231]: copy=01 offset=000000 disabled

config priv 000249-048407[048159]: copy=01 offset=000231 disabled

log priv 048408-055738[007331]: copy=01 offset=000000 disabled

Multipathing information:

numpaths: 1

c3t2d0s2 state=enabled

As per the output note the following,


1. The disk layout type is changed from ‘auto:none’ to ‘auto:sliced’
2. info: format=sliced,privoffset=4,pubslice=4,privslice=3
3. public: slice=4 offset=0 len=2030884 disk_offset=288
4. private: slice=3 offset=4 len=65596 disk_offset=2031168
(Note here the private region allocated in the end)

Initializing disk in Simple format


# vxdisksetup -i c3t3d0 format=simple

DEVICE TYPE DISK GROUP STATUS

c3t3d0s2 auto:simple - - online

Device: c3t3d0s2

devicetag: c3t3d0

type: auto

hostid:
disk: name= id=1411571336.142.vxserver

group: name= id=

info: format=simple,privoffset=4,pubslice=3,privslice=3

flags: online ready private autoconfig autoimport

pubpaths: block=/dev/vx/dmp/c3t3d0s3 char=/dev/vx/rdmp/c3t3d0s3

guid: -

udid:
VMware%2C%5FVMware%20Virtual%20S%5FDISKS%5F6000C299B163F835356BC1A96FBC0D17

site: -

version: 2.1

iosize: min=512 (bytes) max=2048 (blocks)

public: slice=3 offset=65796 len=2030940 disk_offset=288

private: slice=3 offset=4 len=65536 disk_offset=288

update: time=1411571337 seqno=0.2

ssb: actual_seqno=0.0

headers: 0 248

configs: count=1 len=48346

logs: count=1 len=7325

Defined regions:

config priv 000017-000247[000231]: copy=01 offset=000000 disabled

config priv 000249-048363[048115]: copy=01 offset=000231 disabled

log priv 048364-055688[007325]: copy=01 offset=000000 disabled


Multipathing information:

numpaths: 1

Forcefully formatting the disk which is part of deported disk group


# vxdisksetup -i c4t9d0 format=sliced

VxVM vxdisksetup ERROR V-5-2-1813 c4t9d0: Disk is part of testdg disk group, use -
f option to force setup.

DEVICE TYPE DISK GROUP STATUS

c4t9d0s2 auto:cdsdisk - (testdg) online

# vxdisksetup -f -i c4t9d0 format=sliced

DEVICE TYPE DISK GROUP STATUS

c4t9d0s2 auto:sliced - - online


vxdiskconfig syntax with example
October 1, 2014 62 Views

VXDISKCONFIG – UnixArena’s Manual Page


/usr/sbin/vxdiskconfig – configure disk devices and bring them under VxVM control (Scanning
newly detected hardware & building device node directory)

Example:
Disk Currently in control by VXVM
DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online invalid

c2t0d0s2 auto:sliced rootdisk02 rootdg online invalid

Disk’s newly attached to the system (format)


AVAILABLE DISK SELECTIONS:

0. c1t0d0 <VMware,-VMware Virtual -1.0 cyl 2085 alt 2 hd 255 sec 63>

/pci@0,0/pci15ad,1976@10/sd@0,0

1. c2t0d0 <VMware,-VMware Virtual -1.0 cyl 2085 alt 2 hd 255 sec 63>

/pci@0,0/pci15ad,790@11/pci15ad,1976@0/sd@0,0

2. c3t1d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@1,0

3. c3t2d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@2,0

4. c3t3d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@3,0

5. c3t4d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@4,0
6. c3t5d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@5,0

7. c3t6d0 <VMware,-VMwareVirtualS-1.0 cyl 43688 alt 2 hd 16 sec 3>

/pci@0,0/pci15ad,790@11/pci15ad,1976@1/sd@6,0

8. c4t9d0

/iscsi/[email protected]%3Asanvol05.809d5c9b352a0001,0

9. c4t10d0

/iscsi/[email protected]%3Asanvol04.c41880f4e3640001,0

10. c4t11d0

/iscsi/[email protected]%3Asanvol03.f9d0377915620001,0

11. c4t12d0

/iscsi/[email protected]%3Asanvol02.2aba8574dbbf0001,0

12. c4t13d0

/iscsi/[email protected]%3Asanvol01.7974045afa800001,0

13. c4t14d0

/iscsi/[email protected]%3Adatavol01.ba80d08f20300001,0

14. c4t15d0

/iscsi/[email protected]%3Asanvol01%3A01.7974045afa800001,0

Scanning newly detected hardware & building device node


directory:
# vxdiskconfig

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:34:20 IST

Executing VxVM command: vxdctl enable (part 2 of 2) at 19:34:21 IST

Command completed at 19:34:23 IST

Verify Newly added disk in VxVM’s View

DEVICE TYPE DISK GROUP STATUS

c1t0d0s2 auto:sliced rootdisk01 rootdg online

c2t0d0s2 auto:sliced rootdisk02 rootdg online

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

c4t14d0s2 auto:none - - online invalid


vxdiskadm syntax with example
October 1, 2014 333 Views

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.

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.

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


vxlicrep – Syntax with Examples
September 17, 2014 133 Views

vxlicrep – UnixArena’s Manual Page


/opt/VRTS/bin/vxlicrep – Reports all Symantec license keys installed on the system

Product – Veritas Volume Manager-vxvm (Storage Foundation)


Reports licensing information about Symantec products licensed and installed on a system,
including Elan License Manager (ELM) keys. The output includes product information (name,
version, product ID) and the contents of the product-specific data encoded in each license key.

Default Report–Outputs product information encoded in each license key. Product


information includes the license key string, product name, version, serial number, license type
(Demo, NFR, permanent) and OEM ID if applicable. If the license is for a Demo or NFR license, the
information includes the duration of the license and whether it has expired. The tool also reports site
license and node-locked keys. For node-locked keys, the tool indicates whether the key is valid on
the host system.

Tasks Switches
Print ‘vxlicrep’ utility version number vxlicrep -v

Print default report of all installed licenses vxlicrep -g

Print Summary or Short report of installed licenses vxlicrep -s

Print All installed licenses in detail vxlicrep -e

Print license information for valid keys only vxlicrep -i

vxlicrep -k
Print License information about specified keys
<key1,key2,…>

vxlicrep – Command Line Examples


Print ‘vxlicrep’ utility version number
# vxlicrep -v

3.02.61.004
Print Summary or Short report of installed licenses
# vxlicrep -s

Symantec License Manager vxlicrep utility version 3.02.61.004

Copyright (C) 1996-2012 Symantec Corporation. All rights reserved.

Creating a report on all VERITAS products installed on this system

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Storage Foundation Enterprise

License Type = PERMANENT

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Volume Manager

License Type = PERMANENT

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS File System

License Type = PERMANENT

Print License information about specified keys


# vxlicrep -k XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

-----------------***********************-----------------

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Volume Manager


Product ID = 24

Serial Number = 16689

License Type = PERMANENT

OEM ID = 2006

Site License = YES

Point Product = YES

Features :=

Storage Expert = Enabled

VxVM = Enabled

FASTRESYNC = Enabled

DGSJ = Enabled

CPU Count = Not Restricted

PGR = Enabled

VVS_CONFIG = Enabled

Platform = un-used

Version = 6.0

Dynamic Lun Expansion = Enabled

Hardware assisted copy = Enabled

Cross-platform Data Sharing = Enabled

Maximum number of volumes = Not Restricted


DMP Native Support = Enabled

Print All installed license information in detail


# vxlicrep -e

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Volume Manager

Serial Number = 16689

License Type = PERMANENT

OEM ID = 2006

Site License = YES

Point Product = YES

Node Lock Flag = 0

User Defined :=

DMP = Disabled

SSA_DMP = Disabled

EMC_DMP = Disabled

DGC_DMP = Disabled

HITACHI_DMP = Disabled

SEAGATE_DMP = Disabled

AUTORAID_DMP = Disabled

SENA_DMP = Disabled

ECCS_DMP = Disabled
STORCOMP_DMP = Disabled

RELAYOUT = Disabled

HP_VXVM_FULL = Disabled

FMR_DGSJ = Disabled

CVM_LITE_OPS = Disabled

CVM_FULL = Disabled

Feature ID :=

CVM_LITE = Disabled

VXPO_LIC = Disabled

Storage Expert = Enabled

VVR = Disabled

BASIC = Disabled

CONCAT = Disabled

SPAN = Disabled

MIRROR = Disabled

STRIPE = Disabled

VxVM = Enabled

RAID = Disabled

ORM = Disabled

PHOTON = Disabled

SSA = Disabled
VMBETA = Disabled

FASTRESYNC = Enabled

DGSJ = Enabled

LINUX_LITE = Disabled

ASL_DEVELOPER = Disabled

CPU Count = Not Restricted

ROOTMIRROR = Disabled

VxVM Base = Disabled

Virtualization service = Disabled

Client service = Disabled

FMR_DGSJ = Disabled

ALL_DMP = Disabled

PGR = Enabled

VXSYM_LIC = Disabled

PGR_TRAINING = Disabled

VVS_CONFIG = Enabled

Platform = un-used

Version = 6.0

Dynamic Lun Expansion = Enabled

Hardware assisted copy = Enabled

Cross-platform Data Sharing = Enabled

RAID5SNAP = Disabled
Site Awareness = Disabled

Volume sharing = Disabled

Maximum number of volumes = Not Restricted

DMP Native Support = Enabled

RESERVED = 0

VXKEYLESS = Disabled

Print default report of all installed licenses


# vxlicrep -g

Symantec License Manager vxlicrep utility version 3.02.61.004

Copyright (C) 1996-2012 Symantec Corporation. All rights reserved.

Creating a report on all VERITAS products installed on this system

-----------------***********************-----------------

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Storage Foundation Enterprise

Serial Number = 16689

License Type = PERMANENT

OEM ID = 2006

Site License = YES

Editions Product = YES


Features :=

Reserved = 0

CPU Count = Not Restricted

VxVM#VERITAS Volume Manager = Enabled

VXFS#VERITAS File System = Enabled

QLOGODM = Enabled

PGR#VERITAS Volume Manager = Enabled

VERITAS Storage Foundation Enterprise = Enabled

Quality of Storage Service#VERITAS File System = Enabled

Storage Expert#VERITAS Volume Manager = Enabled

Platform = un-used

Version = 6.0

Dynamic Lun Expansion#VERITAS Volume Manager = Enabled

Hardware assisted copy#VERITAS Volume Manager = Enabled

Cross-platform Data Sharing#VERITAS Volume Manager = Enabled

File Change Log#VERITAS File System = Enabled

Cross-platform Data Sharing#VERITAS File System = Enabled

Extra-Big File Systems#VERITAS File System = Enabled

Multi-Volume Support#VERITAS File System = Enabled

FASTRESYNC#VERITAS Volume Manager = Enabled

DGSJ#VERITAS Volume Manager = Enabled


VXCKPT#VERITAS File System = Enabled

VVS_CONFIG#VERITAS Volume Manager = Enabled

DMP Native Support#VERITAS Volume Manager = Enabled

VXKEYLESS = Enabled

-----------------***********************-----------------

Product Name = VERITAS Database Edition for Oracle

License Type = PERMANENT

Features :=

DATABASE_EDITION = Enabled

DBED_ORA_TOOLS = Enabled

ODM = Enabled

-----------------***********************-----------------

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS Volume Manager

Serial Number = 16689

License Type = PERMANENT

OEM ID = 2006

Site License = YES

Point Product = YES

Features :=
Storage Expert = Enabled

VxVM = Enabled

FASTRESYNC = Enabled

DGSJ = Enabled

CPU Count = Not Restricted

PGR = Enabled

VVS_CONFIG = Enabled

Platform = un-used

Version = 6.0

Dynamic Lun Expansion = Enabled

Hardware assisted copy = Enabled

Cross-platform Data Sharing = Enabled

Maximum number of volumes = Not Restricted

DMP Native Support = Enabled

-----------------***********************-----------------

License Key = XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-XXXX-X

Product Name = VERITAS File System

Serial Number = 16689

License Type = PERMANENT

OEM ID = 2006

Site License = YES

Point Product = YES


Features :=

VXFS = Enabled

VXCKPT = Enabled

CPU Count = Not Restricted

Platform = un-used

Version = 6.0

File Change Log = Enabled

Cross-platform Data Sharing = Enabled

Extra-Big File Systems = Enabled

Multi-Volume Support = Enabled

Quality of Storage Service = Enabled


vxlicinst – Syntax with Examples
September 17, 2014 56 Views

vxlicinst – UnixArena’s Manual Page


/opt/VRTS/bin/vxlicinst – Installs a Symantec license key

Product – Veritas Volume Manager-vxvm (Storage Foundation)


Installs a Symantec license key that you supply when issuing the command. You must enter
the license key in single-byte ASCII characters. If no arguments are provided, the utility prompts you
for the license key.

 If you are upgrading your existing license or you are installing new license to change the
system from KEYLESS to licensed, make sure you are copying your existing license information
from ‘/etc/vx/license/lic’ directory. Also keep the complete output of ‘vxlicrep -e’ command.
 Once you installed or updated your Symantec license, use ‘vxdctl license init’ to reinitialize.
 If the system is part of VERITAS Cluster you need to restart ‘/opt/VRTSvcs/bin/CmdServer’ as
well after freezing nodes.
 You can verify the new features by issuing ‘vxlicrep’ & ‘vxdctl license’.

Tasks Switches
Print Host-ID from configuration vxlicinst -u

Print Architecture/Model vxlicinst -m

Print ‘vxlicinst’ utility version vxlicinst -v

Install license key in interactive mode vxlicinst [-q]

Install license key in non interactively in quite mode vxlicinst -k <key> -q

Print Host-ID from configuration


# vxlicinst -u

12b0dce3

Print Architecture/Model
# vxlicinst -m

i86pc

Print ‘vxlicinst’ utility version


# vxlicinst -v

3.02.61.004

Install license key in interactive mode


# vxlicinst

# vxlicinst

Symantec License Manager vxlicinst utility version 3.02.61.004

Copyright (C) 1996-2012 Symantec Corporation. All rights reserved.

Enter your license key :

Install license key in non interactive mode


# vxlicinst -k ABCD-EFGH-IJKL-MNOP-QRST-UVWX-YZ

Symantec License Manager vxlicinst utility version 3.02.51.010

Copyright (C) 1996-2010 Symantec Corporation. All rights reserved.

License key successfully installed for VERITAS Storage Foundation for

Cluster File System

License key successfully installed for VERITAS File System

License key successfully installed for VERITAS Volume Manager

License key successfully installed for VERITAS Cluster Server


vxconfigrestore – Syntax with Examples
September 17, 2014 103 Views

vxconfigrestore – UnixArena’s Manual Page


/opt/VRTS/bin/vxconfigrestore – Restore disk group configuration

Product – Veritas Volume Manager-vxvm (Storage Foundation)


The vxconfigrestore utility is used to restore a disk group’s configuration information if this has been
lost or become corrupted. The disk group whose configuration is to be restored is specified either by
name or by identifier (ID). The disk group configuration backup files may have been automatically
created by the ‘vxconfigbackupd’ daemon, or manually by running the ‘vxconfigbackup‘ command.
Restoration of a disk group configuration has two stages:
1. Pre-commit
 Loads the configuration in read-only mode that is to be restored, and you can examine it using the
‘vxprint’ utility.
 No permanent changes are written to disk until you choose to commit them.
 If desired, you can abandon the restore operation at the precommit stage.
2. Commit
 Permanently commits changes to the disks. The restoration must be at the ‘precommit’ stage
for this command to succeed.
 Volumes are synchronized in the background, you can use the ‘vxtask -l list’ command to
monitor the progress of this operation.

File Names Description


/etc/vx/cbr/bk/dgname.dgid/dgid.dginfo Default location of backup file for disk group information.

/etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo Default location of backup file for disk attributes.

/etc/vx/cbr/bk/dgname.dgid/dgid.binconfig Default location of backup file for binary configuration copy.

/etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec Default location of backup file for configuration records in vxprint -m f

Tasks Switches
To restore or precommit configuration of specific disk group vxconfigrestore -p disk_group
To restore configuration of specific disk group without writing
vxconfigrestore -n disk_group
header information

Restore the configration from different location vxconfigrestore -l directory -p disk_group

To abort the restoration vxconfigrestore [-l directory] -d disk_group

To permanently commit the configuration restoration changes vxconfigrestore -c disk_group

vxconfigrestore – Command Line Examples


To list the available backups for the restoration
# ls -l /etc/vx/cbr/bk

drwxr-xr-x 3 root root 512 Sep 16 16:04


appsdg.1410430685.21.vxserver

drwxr-xr-x 6 root root 512 Sep 16 16:21 oradg.1410429571.18.vxserver

drwxr-xr-x 6 root root 512 Sep 16 16:21


rootdg.1410417163.12.vxserver

# ls -l rootdg.1410417163.12.vxserver

-rw-r--r-- 1 root root 30341120 Sep 16 16:21


1410417163.12.vxserver.binconfig

-rw-r--r-- 1 root root 21561 Sep 16 16:21


1410417163.12.vxserver.cfgrec

-rw-r--r-- 1 root root 2180 Sep 16 16:21


1410417163.12.vxserver.dginfo

-rw-r--r-- 1 root root 2569 Sep 16 16:21


1410417163.12.vxserver.diskinfo

drwxr-xr-x 3 root root 512 Sep 11 13:44 bkp_20140911_134442

drwxr-xr-x 3 root root 512 Sep 11 13:52 bkp_20140911_135234


drwxr-xr-x 3 root root 512 Sep 16 16:03 bkp_20140916_160351

drwxr-xr-x 3 root root 512 Sep 16 16:21 bkp_20140916_162131

To restore or pre-commit or load the configuration of specific disk group


# vxconfigrestore -p appsdg

Diskgroup appsdg configuration restoration started ......

Installing volume manager disk header for c4t10d0s2 ...

Installing volume manager disk header for c4t11d0s2 ...

Installing volume manager disk header for c4t12d0s2 ...

Installing volume manager disk header for c4t13d0s2 ...

Installing volume manager disk header for c4t9d0s2 ...

appsdg's diskgroup configuration is restored (in precommit state).

Diskgroup can be accessed in read only and can be examined using

vxprint in this state.

Run:

vxconfigrestore -c appsdg ==> to commit the restoration.

vxconfigrestore -d appsdg ==> to abort the restoration.


vxconfigbackup – Syntax with Examples
September 17, 2014 95 Views

vxconfigbackup – Unix Arena’s Manual page.


Product – Veritas Volume Manager-vxvm (Storage Foundation)
/opt/VRTS/bin/vxconfigbackup – Back up disk group configuration

1. The vxconfigbackup utility can be used to back up the configuration information for one or
more disk groups manually at any desired time.
2. The vxconfigbackupd daemon automatically backs up a disk group’s new configuration to
the default backup directory whenever the configuration is changed.
3. The disk group configuration backup and restore utilities do not save any data in the public region.
4. This includes only file system or other application data that is configured within VERITAS
Volume Manager (VxVM) objects.

File Names Description


/etc/vx/cbr/bk/dgname.dgid/dgid.dginfo Default location of backup file for disk group information.

/etc/vx/cbr/bk/dgname.dgid/dgid.diskinfo Default location of backup file for disk attributes.

/etc/vx/cbr/bk/dgname.dgid/dgid.binconfig Default location of backup file for binary configuration copy.

/etc/vx/cbr/bk/dgname.dgid/dgid.cfgrec Default location of backup file for configuration records in vxprint -m f

Tasks Switches
Backup all disk group configuration’s vxconfigbackup [-f]

Backup specific disk group configuration vxconfigbackup [-f] disk_group_name

Backup configurations to specific directory vxconfigbackup [-f] -l directory_path [disk_group_name]

vxconfigbackup – Command Line Examples


To perform All disk group configuration backup
# vxconfigbackup -f
To list the completed backups
# ls -l /etc/vx/cbr/bk

drwxr-xr-x 3 root root 512 Sep 16 16:04


appsdg.1410430685.21.vxserver

drwxr-xr-x 6 root root 512 Sep 16 16:21 oradg.1410429571.18.vxserver

drwxr-xr-x 6 root root 512 Sep 16 16:21


rootdg.1410417163.12.vxserver

# ls -l rootdg.1410417163.12.vxserver

-rw-r--r-- 1 root root 30341120 Sep 16 16:21


1410417163.12.vxserver.binconfig

-rw-r--r-- 1 root root 21561 Sep 16 16:21


1410417163.12.vxserver.cfgrec

-rw-r--r-- 1 root root 2180 Sep 16 16:21


1410417163.12.vxserver.dginfo

-rw-r--r-- 1 root root 2569 Sep 16 16:21


1410417163.12.vxserver.diskinfo

drwxr-xr-x 3 root root 512 Sep 11 13:44 bkp_20140911_134442

drwxr-xr-x 3 root root 512 Sep 11 13:52 bkp_20140911_135234

drwxr-xr-x 3 root root 512 Sep 16 16:03 bkp_20140916_160351

drwxr-xr-x 3 root root 512 Sep 16 16:21 bkp_20140916_162131

To perform backup for specific Disk group


# vxconfigbackup -f -l oradg

VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup oradg to


/etc/vx/cbr/bk/oradg.1410429571.18.vxserver ...

VxVM NOTICE V-5-2-3100 Backup complete for diskgroup: oradg


To perform backup of all disk group configuration & save it to a different directory
# vxconfigbackup -f -l /TEST

VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup rootdg to


/TEST/rootdg.1410417163.12.vxserver ...

VxVM NOTICE V-5-2-3100 Backup complete for diskgroup: rootdg

VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup appsdg to


/TEST/appsdg.1410430685.21.vxserver ...

VxVM NOTICE V-5-2-3100 Backup complete for diskgroup: appsdg

VxVM vxconfigbackup NOTICE V-5-2-6133 Start backing up diskgroup oradg to


/TEST/oradg.1410429571.18.vxserver ...

VxVM NOTICE V-5-2-3100 Backup complete for diskgroup: oradg

# ls -l /TEST

drwxr-xr-x 2 root root 512 Sep 16 16:55


appsdg.1410430685.21.vxserver

drwxr-xr-x 2 root root 512 Sep 16 16:55 oradg.1410429571.18.vxserver

drwxr-xr-x 2 root root 512 Sep 16 16:54


rootdg.1410417163.12.vxserver
vxdctl syntax with example
September 14, 2014 393 Views

vxdctl – UnixArena’s Manual Page


Product – Veritas Volume Manager 6.0 (Storage Foundation)
/usr/sbin/vxdctl

 Manages aspects of the state of the volume configuration daemon ‘vxconfigd’.


 Sets default disk group for the system.
 Sets Boot Disk Group if the root disk is under VxVM Control.
 It uses ‘/etc/volboot’ file to manage default & boot disk groups. It also uses the host ID to
establish ownership of physical disks.

Tasks Switches
Set Default Boot Diskgroup vxdctl bootdg group

Set Default Diskgroup vxdctl defaultdg diskgroup

Enable or disable command completion vxdctl cmdcompletion enable|disable

Place ‘vxconfigd’ into ‘disabled’ mode for maintenance


vxdctl disable
operations

Enable ‘vxconfigd’ to rebuild device node directories & DMP


vxdctl [-f] enable
databases

Change the ‘hostid’ in volboot file vxdctl hostid hostid

Reinitialize the volboot file vxdctl init [hostid]

Recreate fresh nodes for DMP devices vxdctl initdmp

List or Rescan VxVM licenses for usable features vxdctl license [init]
Display ‘volboot’ file information vxdctl list

vxdctl debug {[tagged=]level


Display or Set ‘vxconfigd’ log level(0-9)
[pathname] | get}

Display Current Operating Mode vxdctl [-c] mode

Print cluster protocol range supported by the node vxdctl protocolrange

Print current cluster protocol version of the node vxdctl protocolversion

Display or Set maximum number of threads available to


vxdctl request_threads [count]
process

Display or Set Protocol version in ‘volboot’ file vxdctl setversion [version]

Request ‘vxconfigd’ to exit vxdctl [-k] stop

Displays versions of VxVM objects & components that are


vxdctl support
supported

Displays the shared transaction status of the node vxdctl transstate

Remove an attribute from the volboot file vxdctl [-F] unset attribute

Upgrade cluster to the highest cluster protocol possible vxdctl upgrade

vxdctl – Examples
Set Default Boot Diskgroup
# vxdctl bootdg rootdg

Set Default Diskgroup


# vxdctl defaultdg testdg

Enable or disable command completion


# vxdctl cmdcompletion enable
VxVM vxdctl INFO V-5-2-0

Enabling command auto-completion feature with this interface will:

- Newly create .bash_profile, if it is not present.

- If .profile file exists, it will copy the contents of .profile to


.bash_profile.

So user need to use .bash_profile as a default profile file.

- Persistently enable the feature with every login to bash shell.

If you don't wish to newly create .bash_profile, then you need to either
reinvoke

bash shell or source /etc/bash_completion.d/vx_bash manually each time you


login.

Do you want to continue? [y,n,q,?] (default: y) y

VxVM vxdctl INFO V-5-2-0 VxVM command auto-completion successfully enabled.

# vxdctl cmdcompletion disable

VxVM vxdctl INFO V-5-2-0 VxVM command auto-completion successfully disabled.

Place ‘vxconfigd’ into ‘disabled’ mode for maintenance operations


# vxdctl disable

# vxprint -hvtg oradg

VxVM vxprint ERROR V-5-1-684 IPC failure: Configuration daemon is not accessible

Enable ‘vxconfigd’ to rebuild device node directories & DMP databases


# vxdctl enable

Change the ‘hostid’ in volboot file


# vxdctl hostid s10u11.vxtestserver

List VxVM licenses for usable features


# vxdctl license

All features are available:

Mirroring

Root Mirroring

Concatenation

Disk-spanning

Striping

RAID-5

RAID-5 Snapshot

VxSmartSync

Array Snapshot Integration Feature

FastResync

DGSJ

Site Awareness

DMP (multipath enabled)

CDS

Dynamic LUN Expansion

Hardware assisted copy


DMP Native Support

Re-scan VxVM licenses for usable features


# vxdctl license init

Display ‘volboot’ file information


# vxdctl list

Volboot file

version: 3/1

seqno: 0.3

cluster protocol version: 120

hostid: vxserver

defaultdg: oradg

bootdg: rootdg

hostguid: {0a580b84-397b-11e4-a991-000c29656c89}

Display or Set ‘vxconfigd’ log level(0-9)


# vxdctl debug get

loglevel: 0 taggedlevel: 0 logfile:

Display Current Operating Mode


# vxdctl mode

mode: enabled

Print the cluster protocol range supported by the node


# vxdctl protocolrange

minprotoversion: 90, maxprotoversion: 120

Print the current cluster protocol version of the node


# vxdctl protocolversion

Display or Set maximum number of threads available to process


# vxdctl request_threads

Display or Set Protocol version in ‘volboot’ file


# vxdctl setversion

100

# vxdctl setversion 120

# vxdctl setversion

120

Displays the versions of VxVM objects and components that are supported
# vxdctl support

Support information:

vxconfigd_vrsn: 34

dg_minimum: 20

dg_maximum: 180

kernel: 33

protocol_minimum: 90

protocol_maximum: 120

protocol_current: 0

Displays the shared transaction status of the node


# vxdctl transstate
transaction state: cluster inactive
vxsd – Syntax with Example
September 14, 2014 64 Views

vxsd – UnixArena’S Manual Page


/usr/sbin/vxsd – The vxsd utility performs VERITAS Volume Manager (VxVM) operations on
sub disks and on plex and sub disk combinations.

Product – Storage Foundation(Veritas Volume Manager 6.0 )

Tasks Switches
vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-l
Associates subdisks
[column/]offset] assoc plex sd…

vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-s size] split
Splitting Subdisk
sd newsd [newsd2]

vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] join sd1 sd2 …
Joining SubDisk’s
newsd

vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] [-k [-O
Moving or Replacing SubDisk
operational_tag]] mv oldsd newsd

Dissociating a subdisk vxsd [-g diskgroup] [-U utype] [-o uopt] [-V] [-v vol] [-p plex] dis sd …

VXSD – Examples
Associates subdisks with an existing plex
# vxsd -g oradg assoc oravol-01 oradisk01-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 oravol-01 ENABLED 204800 0 - - -

Adds subdisks to the ends of the columns in a striped or RAID-5 volume


v appsvol01 - ENABLED ACTIVE 614400 SELECT appsvol01-01
fsgen

pl appsvol01-01 appsvol01 ENABLED ACTIVE 614400 STRIPE 3/128 RW


sd oradisk06-01 appsvol01-01 oradisk06 0 204800 0/0 c3t6d0 ENA

sd oradisk01-02 appsvol01-01 oradisk01 204800 204800 1/0 c3t1d0 ENA

sd oradisk02-02 appsvol01-01 oradisk02 204800 204800 2/0 c3t2d0 ENA

# vxsd -g oradg assoc appsvol01-01 oradisk03-01:0 oradisk04-01:2 oradisk05-01:3

v appsvol01 - ENABLED ACTIVE 614400 SELECT appsvol01-01


fsgen

pl appsvol01-01 appsvol01 ENABLED ACTIVE 1228800 STRIPE 3/128 RW

sd oradisk06-01 appsvol01-01 oradisk06 0 204800 0/0 c3t6d0 ENA

sd oradisk03-01 appsvol01-01 oradisk03 0 204800 0/204800 c3t3d0 ENA

sd oradisk01-02 appsvol01-01 oradisk01 204800 204800 1/0 c3t1d0 ENA

sd oradisk04-01 appsvol01-01 oradisk04 0 204800 1/204800 c3t4d0 ENA

sd oradisk02-02 appsvol01-01 oradisk02 204800 204800 2/0 c3t2d0 ENA

sd oradisk05-01 appsvol01-01 oradisk05 0 204800 2/204800 c3t5d0 ENA

Here you can resize the volume to maximum or to a specified length using ‘vxresize’ command.

Dissociating a subdisk from a plex


# vxsd -g oradg -o force dis oradisk03-01 oradisk04-01 oradisk05-01

v appsvol01 - ENABLED ACTIVE 614400 SELECT appsvol01-01


fsgen

pl appsvol01-01 appsvol01 ENABLED ACTIVE 614400 STRIPE 3/128 RW

sd oradisk06-01 appsvol01-01 oradisk06 0 204800 0/0 c3t6d0 ENA

sd oradisk01-02 appsvol01-01 oradisk01 204800 204800 1/0 c3t1d0 ENA

sd oradisk02-02 appsvol01-01 oradisk02 204800 204800 2/0 c3t2d0 ENA


Dissociating and Removing subdisks

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 oravol-01 ENABLED 204800 0 - - -

sd oradisk02-01 - ENABLED 204800 - - - -

sd oradisk03-01 - ENABLED 204800 - - - -

# vxsd -g oradg -o rm dis oradisk01-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk02-01 - ENABLED 204800 - - - -

sd oradisk03-01 - ENABLED 204800 - - - -

Splitting subdisk
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 - ENABLED 409600 - - - -

# vxsd -g oradg -s 80m split oradisk01-01 oradisk01-01 oradisk01-02

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 - ENABLED 163840 - - - -

sd oradisk01-02 - ENABLED 245760 - - - -

Joining Subdisk
# vxsd -g oradg join oradisk01-01 oradisk01-02 oradisk01-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 - ENABLED 409600 - - - -


Replacing subdisk
v oravol - ENABLED ACTIVE 409600 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 409600 0 c3t1d0 ENA

pl oravol-02 oravol ENABLED ACTIVE 409600 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 409600 0 c3t2d0 ENA

# vxsd -g oradg mv oradisk02-01 oradisk03-01

v oravol - ENABLED ACTIVE 409600 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 409600 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 409600 0 c3t1d0 ENA

pl oravol-02 oravol ENABLED ACTIVE 409600 CONCAT - RW

sd oradisk03-01 oravol-02 oradisk03 0 409600 0 c3t3d0 ENA


vxplex – Syntax with Examples
September 14, 2014 143 Views

vxplex – UnixArena’s Manual Page


/usr/sbin/vxplex – The vxplex utility performs VERITAS Volume Manager Operations on plexes and
on volume-and-plex combinations.

Tasks Switches
vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]
Make a copy of a Volume
[-v vol] cp vol plex

vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]


Replace the old plex with newplex
[-v vol] mv oldplex newplex

vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]


Attach each named plex to the named volume
[-v vol]att vol plex1 plex2

vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]


Detach each of the named plexes
[-v vol] det plex

vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]


Dissociate each of the named plexes
[-v vol] dis plex

Convert a snapshot plex into a regular plex, or vice vxplex [-v vol] convert state=SNAPDONE|ACTIVE
versa plex

Cancel the effects of a snapstart vxplex [-o useopt] [-v vol] snapabort plex

vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]


[-v vol] snapstart vol snapplex
Copying a volume to a plex for backup purposes
vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]
[-v vol] snapshot snapplex [newvol]

Dissociates named plexes from their current vxplex [ -g diskgroup ] [-U usetype] [-o useopt] [-V]
volume [-v vol] snapback origvol plex
VXPLEX – Examples
Make a copy of a Volume
Sample volume used for this demo:
TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 - DISABLED 204800 - - - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

# vxplex -g oradg cp oravol appsvol-01

Once you made a copy of volume, you can associate and use it as separate volume.

Replace the old plex with newplex


TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 - DISABLED 204800 - - - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

# vxplex -g oradg mv oravol-01 appsvol-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 oravol ENABLED 204800 - ACTIVE - -

pl oravol-01 - DISABLED 204800 - - - -

Attach each named plex to the named volume


TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 oravol ENABLED 204800 - ACTIVE - -

pl oravol-01 - DISABLED 204800 - - - -

# vxplex -g oradg att oravol oravol-01


TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 oravol ENABLED 204800 - ACTIVE - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

Detach each of the named plexes


TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 oravol ENABLED 204800 - ACTIVE - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

# vxplex -g oradg -v oravol det oravol-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 oravol ENABLED 204800 - ACTIVE - -

pl oravol-01 oravol DETACHED 204800 - STALE - -

Disassociate each of the named plexes


TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 appsvol DISABLED 204800 - EMPTY - -

# vxplex -g oradg dis appsvol-01

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 - DISABLED 204800 - - - -

Disassociate and remove the plexes and subdisks from the configuration
# vxplex -g oradg -o rm dis appsvol-01

Copying a volume to a plex for backup purposes:(One of the snapshot method)


v oravol - ENABLED ACTIVE 204800 SELECT - fsgen
pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

pl testvol-01 - DISABLED 204800 - - - -

# vxplex -g oradg snapstart oravol testvol-01

v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

pl testvol-01 oravol ENABLED SNAPDIS 204800 CONCAT - WO

sd oradisk02-01 testvol-01 oradisk02 0 204800 0 c3t2d0 ENA

# vxplex -g oradg snapshot testvol-01 testvol

v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

v testvol - ENABLED ACTIVE 204800 ROUND - fsgen

pl testvol-01 testvol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk02-01 testvol-01 oradisk02 0 204800 0 c3t2d0 ENA


Convert a snapshot plex into a regular plex, or vice versa
# vxplex convert state=SNAPDONE|ACTIVE testvol-01

Cancel the effects of a snapstart


v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

pl testvol-01 oravol ENABLED SNAPDIS 204800 CONCAT - WO

sd oradisk02-01 testvol-01 oradisk02 0 204800 0 c3t2d0 ENA

# vxplex snapabort plex

v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

– This command also removes the plex & Sub Disk from configuration.

Attach the SNAPSHOT back to the volume


# vxplex -g oradg snapback oravol testvol-01

v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

pl testvol-01 oravol ENABLED SNAPDONE 204800 CONCAT - WO

sd oradisk02-01 testvol-01 oradisk02 0 204800 0 c3t2d0 ENA


vxvol – syntax with Examples
September 14, 2014 158 Views

vxvol – UnixArena’s Manual Page


/usr/sbin/vxvol – The vxvol utility performs VERITAS Volume Manager Operations on volumes.

Tasks Switches
Enable locally disabled volume (LDISABLED vxvol [ -g diskgroup ] [-U usetype] [-o useopt]
State) enable volume_name

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] init


Initialize a volume for use
clean|enable|zero volume_name [plex]

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] maint


Put volume into maintenance mode
volume_name

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] rdpol


Sets the read policy for a volume
round|prefer|select volume_name [plex]

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] resync


Perform synchronization operation
volume_name

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] set


Resizing the volumes using vxvol
var=value volume_name

vxvol [ -g diskgroup ] set fastresync=on|off


Enable or Disable fastresync on volumes
volume_name

vxvol [ -g diskgroup ] set exclusive=yes|no


To use volume in cluster
volume_name

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] start


Start the specified volume
volume_name

vxvol [ -g diskgroup ] [-U usetype] [-o useopt] stop


Stop the specified volume
volume_name
vxvol [ -g diskgroup ] [-U usetype] [-o useopt]
Start all the volume in a disk group
startall

Stop all the volume in a disk group vxvol [ -g diskgroup ] [-U usetype] [-o useopt] stopall

VXVOL – Examples:
Note: Examples just shows how to use the command with specific options. You need to decide how
to use and when to use.

Enable locally disabled volume (DISABLED State)


# vxvol -g oradg -U fsgen enable oravol

Initialize Volume for a Use:


This applies where volume has been created by vxmake command and volume yet to initialize. You
may also need to use where the volume has been set to uninitialized by vxmend.
Sample volume:
v oravol02 - DISABLED EMPTY 0 ROUND - gen

pl oravol02-01 oravol02 DISABLED EMPTY 204800 CONCAT - RW

sd oradisk02-01 oravol02-01 oradisk02 0 204800 0 c3t2d0 ENA

Sets the state for the specified plex to CLEAN, and sets all other plexes to STALE for that
volume
# vxvol -g oradg init clean oravol02

v oravol02 - DISABLED CLEAN 0 ROUND - gen

pl oravol02-01 oravol02 DISABLED CLEAN 204800 CONCAT - RW

sd oradisk02-01 oravol02-01 oradisk02 0 204800 0 c3t2d0 ENA

Writes zero blocks to all plexes in the volume, up to the length of the volume
# vxvol -g oradg init zero oravol02

v oravol02 - ENABLED ACTIVE 0 ROUND - gen

pl oravol02-01 oravol02 ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk02-01 oravol02-01 oradisk02 0 204800 0 c3t2d0 ENA


Enables the volume and its plexes but leaves the volume uninitialized
# vxvol -g oradg init enable oravol02

v oravol02 - ENABLED EMPTY 0 ROUND - gen

pl oravol02-01 oravol02 ENABLED EMPTY 204800 CONCAT - RW

sd oradisk02-01 oravol02-01 oradisk02 0 204800 0 c3t2d0 ENA

Sets the state for all plexes associated with volume to ACTIVE
# vxvol -g oradg init active oravol02

v oravol02 - ENABLED ACTIVE 0 ROUND - gen

pl oravol02-01 oravol02 ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk02-01 oravol02-01 oradisk02 0 204800 0 c3t2d0 ENA

Put volume into maintenance mode


# vxvol -g oradg maint oravol

VxVM vxvol ERROR V-5-1-1222 Volume oravol is enabled, use -o force

To make the volume force maintenance


# vxvol -g oradg -o force maint oravol

v oravol - DETACHED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

Set the read policy for a volume


# vxvol -g oradg rdpol round oravol

v oravol - ENABLED ACTIVE 204800 ROUND - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA


pl oravol-02 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 204800 0 c3t2d0 ENA

Perform synchronization operation


# vxvol -g oradg -o bg resync oravol

Re-sizing the volumes


Sample volume:
v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

After Re-sizing the volume:

# vxvol -g oradg -o bg set len=value oravol

v oravol - ENABLED ACTIVE 102400 SELECT - fsgen

pl oravol-01 oravol ENABLED ACTIVE 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

To resize the volume, always use vxresize. If you set the incorrect length using vxvol , then volume
may not be startable.

Enable fastresync on Volume


# vxvol -g oradg set fastresync=on oravol

Start the specified Volume


# vxvol -g oradg -o bg start oravol

start the specified volume forcefully


# vxvol -g oradg -f start oravol

Stop the specified Volume


# vxvol -g oradg -o force stop oravol
v oravol - DISABLED CLEAN 204800 SELECT - fsgen

pl oravol-01 oravol DISABLED CLEAN 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c3t1d0 ENA

Start all Volumes in the disk group


# vxvol -g oradg -o bg,delayreover,slow startall

Stop all Volumes in the disk group


# vxvol -g oradg -o force -o bg stopall
vxdg – Syntax with Examples
September 3, 2014 298 Views

/usr/sbin/vxdg– Unix Arena’s Manual page.


Product – Veritas Volume Manager-vxvm (Storage Foundation)
/usr/sbin/vxdg – The vxdg utility performs administrative operations on disk groups.

System-Wide Reserved Disk Groups


bootdg – Specifies the boot disk group – Default is nodg
Caution: Do not attempt to change the value of bootdg. You may render your system unbootable.
defaultdg – Specifies the default disk group to use if the -g option is not specified -Default is nodg
nodg – Specifies to an operation that no disk group has been defined

Tasks Switches
vxdg [-s] init diskgroup [diskname=]devicename
Creating Disk Groups

vxdg -T [dg_version] init diskgroup


Creating Older Versions of Disk Groups
[diskname=]devicename …

vxdg init diskgroup


Creating Disk Group with Specific Minor Number
[minor=minor_no] [diskname=]devicename …

vxdg init diskgroup


Creating Sliced format Disk Group
cds=off [diskname=]devicename …

List & Viewing Available Disk Groups Information vxdg list [disk_group]

vxdg [-g diskgroup] [-f] reminor [diskgroup] new-


Changing Minor number of a Disk Group
minor-number

vxdg [-g diskgroup] adddisk


Adding Disk’s to Existing Disk Group
[diskname=]devicename …

Removing Disk’s from Existing Disk Group vxdg [-g diskgroup] rmdisk diskname …

View Default Disk Group vxdg defaultdg


View the free Space in Disk Group vxdg -g diskgroup free

vxdg [-n newname] [-h newhostid] deport


Deport Disk Group
diskgroup

Import Disk Group vxdg [-C] [-f] [-n new_name] import diskgroup

vxdg [-f] [-o expand] move src_diskgroup


Move Disk from one Disk Group to Another
dst_diskgroup diskname

Move Volume from one Disk Group to Another vxdg move src_diskgroup dst_diskgroup volume

vxdg [-f] [-o expand] split src_diskgroup


Split the Disk Group
dst_diskgroup objects

Join the Disk Group vxdg [-f] join src_diskgroup dst_diskgroup

Upgrading Disk Groups to Specific or latest Version vxdg [-T version] upgrade diskgroup

Destroy the Disk Group vxdg destroy diskgroup

vxdg command line Examples:


Note:
Diskgroup name – oradg
Disks name – oradisk01 oradisk02 oradisk03
Creating Disk Group:
#vxdg init oradg oradisk01=c3t1d0s2 oradisk02=c3t2d0s2 oradisk03=c3t3d0s2

Creating Disk Group with specific minor number and diskgroup version
number:
# vxdg -T 180 init oradg minor=20001 oradisk01=c3t1d0s2 oradisk02=c3t2d0s2
oradisk03=c3t3d0s2

Creating Sliced format Disk Group:


# vxdg init appsdg cds=off c4t1d0 c4t2d0

To View Disk Group Information’s


# vxdg list

NAME STATE ID

oradg enabled,cds 1408692754.17.vxserver1

appsdg enabled 1408693306.24.vxserver1

# vxdg list oradg

Group: oradg

dgid: 1408692754.17.vxserver1

import-id: 1024.16

flags: cds

version: 180

alignment: 8192 (bytes)

ssb: on

autotagging: on

detach-policy: global

dg-fail-policy: obsolete

ioship: off

copies: nconfig=default nlog=default

config: seqno=0.1029 permlen=48144 free=48139 templen=2 loglen=7296

config disk c3t1d0s2 copy 1 len=48144 state=clean online

config disk c3t2d0s2 copy 1 len=48144 state=clean online

config disk c3t3d0s2 copy 1 len=48144 state=clean online

log disk c3t1d0s2 copy 1 len=7296


log disk c3t2d0s2 copy 1 len=7296

log disk c3t3d0s2 copy 1 len=7296

To get the minor number of the diskgroup


# vxprint -l oradg | grep minor

minors: >= 20001

To get the free space of the diskgroup disks:


vxdg -g oradg free

DISK DEVICE TAG OFFSET LENGTH FLAGS

oradisk01 c3t1d0s2 c3t1d0 0 2031232 -

oradisk02 c3t2d0s2 c3t2d0 0 2031232 -

oradisk03 c3t3d0s2 c3t3d0 0 2031232 -

Changing Minor number of a Disk Group:


# vxdg -g oradg reminor 10001

Adding Disk’s to Existing Disk Group:


# vxdg -g oradg adddisk oradisk04=c3t4d0s2 oradisk05=c3t5d0s2 oradisk06=c3t6d0s2

Removing Disk’s from Existing Disk Group:


# vxdg -g oradg rmdisk oradisk06

Viewing Default Disk Group:


# vxdg defaultdg

oradg

Re-naming the diskgroup:


# vxdg -n testdg deport oradg

testdg is the new name.

Move Disk from one Disk Group to Another


# vxdg -o expand move oradg appsdg oradisk06

Move Volume from one Disk Group to Another:


• Actually it moves the corresponding disks from one disk Group to another.

# vxdg move oradg appsdg oravol

Splitting & Joining Disk Group:


# vxdg -o expand split oradg1 oradg2 oradisk04 oradisk05 oradisk06

# vxdg join oradg2 oradg1

Viewing the diskgroup version:


# vxdg list appsdg | grep version

version: 140

Upgrade DG to specific version:


# vxdg -T 160 upgrade appsdg

# vxdg list appsdg | grep version

version: 160

Upgrade DG to Latest Version available:


# vxdg upgrade appsdg

# vxdg list appsdg | grep version

version: 180

To Destroy the Disk Group:


# vxdg destroy oradg1
vxmake – syntax with examples
September 3, 2014 154 Views

VXVMAKE – UnixArena’s Manual Page


Product – Veritas Volume Manager-vxvm (Storage Foundation)
/usr/sbin/vxmake – Create VERITAS Volume Manager Configuration records (Sub-disks,Plex and
volume)

Tasks Switches
vxmake -g diskgroup -U usetype sd subdisk_name disk_name,start_len,end_len
Creating Sub Disk
vxmake -g diskgroup sd subdisk_name len=length disk_name

Creating Concat Plex vxmake -g diskgroup -U fsgen plex plex_name sd=subdisk…

vxmake -g diskgroup -U fsgen plex plex_name layout=stripe stwidth=width ncolumn=3


Creating Striped Plex
sd=subdisk1,subdisk2,subdisk3

vxmake -g diskgroup -U raid5 plex plex_name layout=raid5 stwidth=width ncolumn=3


Creating RAID5 Plex
sd=subdisk1,subdisk2,subdisk3

Creating Concat
vxmake -b -g diskgroup -U fsgen vol volume_name [len=length] plex=plex,…
Volume

Creating Striped
vxmake -b -g diskgrup -U fsgen vol volume_name plex=striped_plex
Volume

Creating Mirrored
vxmake -b -g diskgroup -U fsgen vol volume_name plex=plex1,plex2…
Volume

Creating RAID5 Volume vxmake -b -g diskgroup -U raid5 vol volum_name plex=raid5_plex,log_plex

vxmake -b -g diskgroup cache cache_name cachevolname=volume autogrow=yes|no


Creating cache Record
autogrowby=len maxautogrow=size

Creating DCO Volume vxmake -b -g diskgroup -U gen vol dco_volume_name plex=dco_plex


VXMAKE – Examples:
Note :
The output shown below are copied from ‘vxdisk list, vxprint -s, vxprint -p, vxprint -hpt & vxprint -
hvt|-hvtC’ commands.

Disk Group & Disks Used in this LAB


DEVICE TYPE DISK GROUP STATUS

c2t9d0s2 auto:cdsdisk oradisk01 oradg online

c2t10d0s2 auto:cdsdisk oradisk02 oradg online

c2t20d0s2 auto:cdsdisk oradisk03 oradg online

c2t22d0s2 auto:cdsdisk oradisk04 oradg online

c2t23d0s2 auto:cdsdisk oradisk05 oradg online nohotuse

Creating Sub Disk:


# vxmake -g oradg sd oradisk01-01 oradisk01,0,204800

# vxmake -g oradg sd oradisk02-01 len=100m oradisk02

Subdisk will look like this

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 - ENABLED 204800 - - - -

sd oradisk02-01 - ENABLED 204800 - - - -

Creating Concat Plex:


# vxmake -g oradg plex oravol-01 sd=oradisk01-01

Concat Plex will look like this

pl oravol-01 - DISABLED - 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c2t9d0 ENA

Creating Striped Plex:


# vxmake -g oradg -U fsgen plex oravol-01 layout=stripe stwidth=64 ncolumn=3
sd=oradisk01-01,oradisk02-01,oradisk03-01

Striped Plex will look like this

pl oravol-01 - DISABLED - 614400 STRIPE 3/64 RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0/0 c2t9d0 ENA

sd oradisk02-01 oravol-01 oradisk02 0 204800 1/0 c2t10d0 ENA

sd oradisk03-01 oravol-01 oradisk03 0 204800 2/0 c2t20d0 ENA

Creating RAID5 Plex:


# vxmake -g oradg -U raid5 plex plex_name layout=raid5 stwidth=width ncolumn=3
sd=subdisk1,subdisk2,subdisk3

RAID5 Plex will look this

pl oravol-01 - DISABLED - 409600 RAID 3/64 RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0/0 c2t9d0 ENA

sd oradisk02-01 oravol-01 oradisk02 0 204800 1/0 c2t10d0 ENA

sd oradisk03-01 oravol-01 oradisk03 0 204800 2/0 c2t20d0 ENA

Creating Concat Volume:


# vxmake -g oradg -U fsgen vol oravol plex=oravol-01

The output volume will look like this

v oravol - DISABLED EMPTY 204800 ROUND - fsgen

pl oravol-01 oravol DISABLED EMPTY 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c2t9d0 ENA

Creating Striped Volume:


# vxmake -g oradg -U fsgen vol oravol plex=oravol-01
Striped Volume will look like this

v oravol - DISABLED EMPTY 614400 ROUND - fsgen

pl oravol-01 oravol DISABLED EMPTY 614400 STRIPE 3/64 RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0/0 c2t9d0 ENA

sd oradisk02-01 oravol-01 oradisk02 0 204800 1/0 c2t10d0 ENA

sd oradisk03-01 oravol-01 oradisk03 0 204800 2/0 c2t20d0 ENA

Creating Mirrored Volume:


# vxmake -g oradg -U fsgen vol oravol plex=oravol-01,oravol-02

The output of mirror volume will look like this

v oravol - DISABLED EMPTY 204800 ROUND - fsgen

pl oravol-01 oravol DISABLED EMPTY 204800 CONCAT - RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0 c2t9d0 ENA

pl oravol-02 oravol DISABLED EMPTY 204800 CONCAT - RW

sd oradisk02-01 oravol-02 oradisk02 0 204800 0 c2t10d0 ENA

Creating RAID5 Volume:


# vxmake -g oradg -U raid5 vol oravol plex=oravol-01,oravol-02

RAID5 volume will look like this,

v oravol - DISABLED EMPTY 409600 RAID - raid5

pl oravol-01 oravol DISABLED EMPTY 409600 RAID 3/64 RW

sd oradisk01-01 oravol-01 oradisk01 0 204800 0/0 c2t9d0 ENA

sd oradisk02-01 oravol-01 oradisk02 0 204800 1/0 c2t10d0 ENA

sd oradisk03-01 oravol-01 oradisk03 0 204800 2/0 c2t20d0 ENA


pl oravol-02 oravol DISABLED EMPTY 20480 CONCAT - RW

sd oradisk05-01 oravol-02 oradisk05 0 20480 0 c2t23d0 ENA

Creating Cache Record:


# vxmake -g oradg cache cacheobj cachevolname=cachevol01 autogrow=yes autogrowby=100m
maxautogrow=500m

The object will look like this

co cacheobj cachevol01 DISABLED -

v cachevol01 cacheobj ENABLED ACTIVE 40960 SELECT - fsgen

pl cachevol01-01 cachevol01 ENABLED ACTIVE 40960 CONCAT - RW

sd oradisk05-02 cachevol01-01 oradisk05 20480 40960 0 c2t23d0 ENA

Creating DCO Volume:


# vxmake -g oradg -U gen vol dco_oravol plex=dco_oravol-01

# vxmake -g oradg dco oravol-dco log=oravol-dcl

The DCO record will look like this

dc oravol-dco oravol - - - - - -

v oravol-dcl gen DISABLED 20480 - EMPTY - -

pl oravol-dcl-01 oravol-dcl DISABLED 20480 - EMPTY - -

sd oradisk05-01 oravol-dcl-01 ENABLED 20480 0 - - -


vxassist – Syntax with example
September 2, 2014 735 Views

/usr/sbin/vxassist – Unix Arena’s Manual page


Product – Veritas Volume Manager-vxvm (Storage Foundation)
The vxassist utility is a command-line interface to the Veritas Volume Manager (VxVM) that:
– Finds space for and creates volumes
– Performs volume conversion
– Adds mirrors and logs to existing volumes
– Extends and shrinks existing volumes
– Migrates data from a specified set of disks
– Provides facilities for the online backup of existing volumes

Tasks & Switches:


 Check the maximum size a volume could be created
vxassist [-g diskgroup] maxsize

 Check the maximum size a volume can grow


vxassist [-g diskgroup] maxgrow volume-name [attrs...]

 Create volume
vxassist [-g diskgroup] [-U usetype] [-b] make volume-name {len|maxsize=<size>}
[layout=layout_method] [attrs...]

 Add logs to volume


vxassist [-g diskgroup][-b] addlog volume-name [attrs...]

 Resize volumes
growto

vxassist [-g diskgroup] growto volume-name new-length [attrs...]

growby

vxassist [-g diskgroup] growby volume-name length-change [attrs...]

Shrinkto

vxassist [-g diskgroup][-f] shrinkto volume-name new-length [attrs...]


shirnkby

vxassist [-g diskgroup][-f] shrinkby volume-name length-change [attrs...]

 Mirror volume
vxassist [-g diskgroup] [-b] mirror volume-name [attrs...]

 Volume relayout
vxassist [-g diskgroup] [-U usetype] [-b] relayout {volume-name|plex-name} [attrs...]

 Volume convertions
vxassist [-g diskgroup] convert volume-name [attrs...]

 Move volume
vxassist [-g diskgroup][-b] [-t taskid] [-k [-O operation-tag]] move volume-name storage-
spec ... [attrs...]

 removing volume|mirror|log
vxassist [-g diskgroup] [-b] remove {volume|mirror|log} volume-name [storage-spec ...]
[attrs...]

vxassist – Examples:
To check the maximum size a volume could be created:
# vxassist -g oradg maxsize

Maximum volume size: 24768512 (12094Mb)

# vxassist -g oradg maxsize layout=stripe

Maximum volume size: 24768512 (12094Mb)

# vxassist -g oradg maxsize layout=mirror

Maximum volume size: 12384256 (6047Mb)


# vxassist -g oradg maxsize layout=raid5

Maximum volume size: 16513024 (8063Mb)

# vxassist -g oradg maxsize layout=stripe-mirror

Maximum volume size: 12384256 (6047Mb)

Creating a Simple Volume:


# vxassist -g oradg make oravol01 5g

– If the ‘layout’ is not specified, by default ‘concat’ volumes will be created.

Creating a Stripe Volume:


# vxassist -g oradg make oravol 2g layout=stripe ncol=4 stwidth=64 oradisk01 oradisk02
oradisk03 oradisk04

– Here 4 coloumn stripe volume of 2 GB size will be created using the specified disks.
– Default ‘ncol’ value is 3
– Default ‘stwidth’ value is 128
Creating a Mirror Volume:
# vxassist -g oradg make oravol 1g layout=mirror mirror=ctlr nmirror=3 logtype=drl

– Here, the 3 way mirror volume of 1 GB size will created using different controllers with ‘DRL’
Log enabled (oradisk01=c1 oradisk03=c2 oradisk05=c3)
– Default ‘nmirror’ value is 2
– By default no log plexes will be added to mirror volume.
Creating RIAD-5 Volume:
# vxassist -g oradg make oravol 1g layout=raid5 ncol=4 oradisk01 oradisk02 oradisk03
oradisk04 oradisk05

– Here the 4 column raid5 volume will be created using specified disks.
– RIAD5 uses default LOG method
– Default ‘ncol’ value is 5
– Default ‘stwidth’ value is 32
Creating Non-Layerd Volumes:
– Volumes where sub disks directly mapped to plex then to Volumes
1. mirror-concat
# vxassist -g oradg make oravol 1g layout=mirror-concat

2. mirror-stripe

# vxassist -g oradg make oravol 1g layout=mirror-stripe

Creating Layed Volumes:


-Volumes where sub disks & plexes are mappaed to underlaying volumes then to volumes
1. concat-mirror
# vxassist -g oradg make oravol 1g layout=concat-mirror

2. stripe-mirror

# vxassist -g oradg make oravol 1g layout=stripe-mirror

Using ‘ordered’ allocation attribute:


# vxassist -g oradg -o ordered make oravol 1g layout=raid5 ncol=4 oradisk01 oradisk05
oradisk03 oradisk02 oradisk04

– Here the sub disks will be created in the above specified manner.
– For creating 4 coloumn raid, make sure you input five disks. ( 4 + 1 disk = 4 column + 1 log)
Adding or Enabling DRL logging to Existing Mirror Volume:
# vxassist -g oradg addlog oravol logtype=drl

Mirroring Existing Volumes:


# vxassist -g oradg mirror oravol

To check the maximum size a volume can grow:


# vxassist -g oradg maxgrow oravol01

Volume oravol01 can be extended by 24358912 to: 24563712 (11994Mb)

Resizing Volumes:
# vxassist -g oradg make oravol 300m

1. growto
# vxassist -g oradg growto oravol 500m

(Volume size will be resized to 500m)

2. growby

# vxassist -g oradg growby oravol 200m

(Volume size will be resized to 700m)

3. shrinkto

# vxassist -g oradg -f shrinkby oravol 200m

(Volume size will be resized to 500m)

4. shrinkby

# vxassist -g oradg -f shrinkto oravol 300m

(Volume size will be resized to 300m)

Note:
– The ‘vxassist’ command only resizes the volume not the file system use ‘fsadm’ to resize the file
system.
– The ‘vxresize’ command resizes both file systems & Volumes.
– Before shrinking any volumes make sure you have resized the file system using ‘fsadm’, else you
could corrupt file systems.
Performing Online-Relayout:
Online Re-Layout supports to change the plex or volume to or from
1. Concatenated
2. Striped
3. Raid 5
4. Striped Mirror
5. Concatenated mirror
Also it used to change number of columns & Stripe unit size in striped & Raid 5 Volumes
Changing Concat volume into Stripe Layout:
# vxassist -g oradg make oravol 100m layout=nostripe oradisk01
# vxassist -g oradg relayout testvol layout=stripe ncol=3

Adding more columns to existing Stripe Layout Volume:


# vxassist -g oradg relayout oravol ncol=+2

Removing column(s) from existing Stripe Layout Volume:


# vxassist -g oradg relayout oravol ncol=-1

To change Stripeunit size & number of column of a stripe layout volume:


# vxassist -g oradg relayout oravol stripeunit=64k ncol=5

To Change the mirror volume into RAID 5 Volume Layout:


# vxassist -g oradg relayout oravol-01 layout=raid5 stripeunit=128k ncol=3

Note:
*** Specify one of the plex name from mirror volume to change the layout into raid5. Online
relayout operations can be administered using ‘vxrelayout’ command as well.
Convert between a layered volume and a non-layered volume layout:
1. Mirror-Concat into Concat-Mirror

# vxassist -g oradg make testvol 100m layout=mirror-concat

# vxassist -g oradg convert testvol layout=concat-mirror

2. Mirror-Stripe into Stripe-Mirror

# vxassist -g oradg make testvol 100m layout=mirror-stripe

# vxassist -g oradg convert testvol layout=stripe-mirror

Moving Storage objects in volume:


# vxassist -g oradg move oravol \!oradisk01 oradisk02

– For a simple volume which is having one subdisk & plex you can use the above command
– For a mirror and other volumes you have to perform this command about ‘n’ time to complete the
operations depending on your volume configuration.
To remove log from existing volume:
# vxassist -g oradg remove log oravol

To remove Mirror from existing mirror volume:


# vxassist -g oradg remove mirror oravol

To remove volume and its associated objects:


# vxassist -g oradg remove volume oravol
vxprint – syntax with examples
September 2, 2014 708 Views

VXPRINT – UnixArena’s Manual Page .


Product – Veritas Volume Manager-vxvm (Storage Foundation)
“vxprint” command will displays the volume’s,plex’s and sub disk’s record information.

vxprint’s options
Option Description
-A Print all disk groups

-h List record hierarchies

-r Print Related information

-n Restrict output to record names

-l List all record information in a verbose format

-f Use simple one line list format

-m List all record information as a make description

-t Use one-line format tailored for each record type

–q Suppress output field header

-Q Suppresses disk group header

-g diskgroup Specify a disk group to print

-e pattern List records that match this search pattern

-N Display only SAN information. default is nonSan only


-S Print configuration summary information

-u h|H|unit Print sizes with user readable extensions

Disk Media State’s


STATE’s Description
FAILING Disk media is failing.

The node does not have local access to the disk. The node is sending private
LFAILED region I/Os through the network to a remote node that has local access to
the disk.

The disk was not discovered locally by DMP. The node does not have a
LMISSING
corresponding DMP device for the disk.

LOCAL_FAILING Disk is fenced off.

NODEVICE Disk is not valid.

NOHOTUSE Disk cannot be used for Hot Relocation.

REMOVED Disk is being removed from disk group.

RESERVED Disk is reserved.

SPARE Disk is marked as a spare for disk group.

ST_SPARE Disk is marked as spare for storage pool.

VOLATILE Disk state is changing.


Volume States
State Description
The volume is not started (kernel state is DISABLED) and its plexes are
CLEAN synchronized. For a RAID-5 volume, its plex stripes are consistent and its
parity is good.

ACTIVE The volume has been started (kernel state is currently ENABLED)

The volume contents are not initialized. The kernel state is always
EMPTY
DISABLED when the volume is EMPTY.

The contents of an instant snapshot volume no longer represent a true


INVALID
point-in-time image of the original volume.

The volume requires a resynchronization operation the next time it is


NEEDSYNC started. For a RAID-5 volume, a parity resynchronization operation is
required.

The volume is in a transient state as part of a log replay. A log replay


REPLAY occurs when it becomes necessary to use logged parity and data. This
state is only applied to RAID-5 volumes.

The volume is either in read-writeback recovery mode (kernel state is


SYNC currently ENABLED) or was in read-writeback mode when the machine
was rebooted (kernel state is DISABLED).

Volume Kernel States


State
Description
Maintenance is being performed on the volume. The volume cannot be read from
DETACHED
or written to, but certain plex operations and ioctl function calls are accepted.
DISABLED The volume is offline and cannot be accessed.

ENABLED The volume is online and can be read from or written to.

Plex States
State Description
1. When the volume is started and the plex fully participates in normal volume I/O
ACTIVE 2. When the volume is stopped as a result of a system crash and the plex is ACTIVE at
the moment of the crash

When it is known to contain a consistent copy (mirror) of the volume contents and an
operation has disabled the volume. As a result, when all plexes of a volume are clean,
CLEAN
no action is required to guarantee that the plexes are identical when that volume is
started.

Data change object (DCO) plex attached to a volume can be used by a snapshot plex
DCOSNP
to create a DCO volume during a snapshot operation.

Volume creation sets all plexes associated with the volume to the EMPTY state to
EMPTY
indicate that the plex is not yet initialized.

When the vxconfigd daemon detects an uncorrectable I/O failure on an ACTIVE plex,
IOFAIL it places the plex in the IOFAIL state to exclude it from the recovery selection process
at volume start time.

LOG The state of a dirty region logging (DRL) or RAID-5 log plex is always set to LOG.

The vxmend off task indefinitely detaches a plex from a volume by setting the plex
OFFLINE
state to OFFLINE.
A snapshot plex that is being attached by the snapstart operation, when the attach is
SNAPATT complete, the state for the plex is changed to SNAPDONE. If the system fails before
the attach completes, the plex and all of its subdisks are removed.

A snapshot plex that is fully attached. If the system fails before the attach completes,
SNAPDIS
the plex is dissociated from the volume.

SNAPDONE A snapshot plex is ready for a snapshot to be taken

The SNAPTMP plex state is used during a vxassist snapstart operation when a
SNAPTMP
snapshot is being prepared on a volume.

A plex does not have the complete and current volume contents, that plex is placed
STALE in the STALE state. Also, if an I/O error occurs on a plex, the kernel stops using and
updating the contents of that plex, and the plex state is set to STALE.

Setting a plex to the TEMP state eases some plex operations that cannot occur in a
TEMP
truly atomic fashion.

Plex Kernel States


State Description
DETACHED Maintenance is being performed on the plex.

DISABLED The plex is offline and cannot be accessed.

The plex is online. A write request to the volume is reflected in the plex. A read request from t
ENABLED
is satisfied from the plex.
SubCache & SubDisk Modes
State Description
DET The subdisk has been detached.

DIS The subdisk is disabled.

The subdisk in a RAID5 plex has failed and the RAID5 volume is in degraded mode (d
dS
indicates that the subdisk is detached, and S indicates that its contents are stale).

ENA The subdisk is usable.

FAIL The subdisk has been detached in the kernel due to an error.

NDEV The media record on which the subdisk is defined has no associated access record.

RCOV The subdisk is part of a RAID5 plex and has stale content.

RLOC The subdisk has failed and is waiting to be relocated.

The media record on which the subdisk is defined has been removed from its disk access
RMOV
record by a utility.

SubVolume Modes
State Description
ENA The subvolume is usable.

DIS The subvolume is disabled.

IOFAIL The subvolume has been detached in the kernel due to an error.
Command output with Examples:
To Display VxVM configuration Summary:
# vxprint -S

Disk group: oradg

VOLUMES PLEXES SUBDISKS PLEXFREE SDFREE DISKS RVGS RLINKS


STPOOLS VSET CACHES EXPORTS

3 5 6 0 0 4 0 0 0
0 0 0

Display Disk Media Records:


# vxprint -d

Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dm oradisk01 c3t1d0s2 - 4128288 - - - -

dm oradisk02 c3t2d0s2 - 4128288 - - - -

dm oradisk03 c2t9d0s2 - 2031232 - - - -

# vxprint -l oradisk03

Disk group: oradg

Disk: oradisk03

info: diskid=1408760143.38.vxserver1

assoc: device=c2t9d0s2 type=auto


flags: autoconfig

device: path=/dev/vx/dmp/c2t9d0s2

devinfo: publen=2031232 privlen=65536

mediatype: hdd

Display Disk Group Records:


# vxprint -G

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg oradg oradg - - - - - -

# vxprint -l oradg

Disk group: oradg

Group: oradg

info: dgid=1408715327.33.vxserver1

version: 180

alignment: 8192 (bytes)

detach-policy: global

dg-fail-policy: dgdisable

ioship: off

copies: nconfig=default nlog=default

devices: max=32767 cur=1

minors: >= 15000

cds=on
# vxprint -g oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg oradg oradg - - - - - -

dm oradisk01 c3t1d0s2 - 4128288 - - - -

dm oradisk02 c3t2d0s2 - 4128288 - - - -

dm oradisk03 c2t9d0s2 - 2031232 - - - -

v oravol fsgen ENABLED 204800 - ACTIVE - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -

sd oradisk01-01 oravol-01 ENABLED 204800 0 - - -

Display Volume Records:


# vxprint -v

Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

v appsvol fsgen ENABLED 204800 - ACTIVE - -

v oravol fsgen ENABLED 204800 - ACTIVE - -

# vxprint -g oradg -t oravol

V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE


v oravol - ENABLED ACTIVE 204800 SELECT - fsgen

# vxprint -l oravol

Disk group: oradg

Volume: oravol

info: len=204800

type: usetype=fsgen

state: state=ACTIVE kernel=ENABLED cdsrecovery=0/0 (clean)

assoc: plexes=oravol-01

exports=(none)

policies: read=SELECT (round-robin) exceptions=GEN_DET_SPARSE

flags: closed writeback

logging: type=REGION loglen=0 serial=0/0 mapalign=0 maplen=0 nummaps=64


(disabled)

apprecov: seqno=0/0

recovery: mode=default

recov_id=0

device: minor=15000 bdev=274/15000 cdev=274/15000 path=/dev/vx/dsk/oradg/oravol

perms: user=root group=root mode=0600

guid: {cb16f2d8-2a6a-11e4-8488-000c299c547d}

Display SubDisk Records:


# vxprint -s
Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

sd oradisk01-01 oravol-01 ENABLED 204800 0 - - -

sd oradisk03-01 appsvol-01 ENABLED 204800 0 - - -

# vxprint -l oradisk01-01

Disk group: oradg

Subdisk: oradisk01-01

info: disk=oradisk01 offset=0 len=204800

assoc: vol=oravol plex=oravol-01 (offset=0)

flags: enabled

device: device=c3t1d0s2 path=/dev/vx/dmp/c3t1d0s2 diskdev=273/130

mediatype: hdd

Display Plexes Related Records:


# vxprint -p

Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

pl appsvol-01 appsvol ENABLED 204800 - ACTIVE - -

pl oravol-01 oravol ENABLED 204800 - ACTIVE - -


# vxprint -l appsvol-01

Disk group: oradg

Plex: appsvol-01

info: len=204800

type: layout=CONCAT

state: state=ACTIVE kernel=ENABLED io=read-write

assoc: vol=appsvol sd=oradisk03-01

flags: complete

mediatype: hdd

Display Configuration records in Human readable


format:(Display VXVM Object Size in MB/GB/KB)
# vxprint -hvt -u h -t oravol

Disk group: oradg

V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE

PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE

SD NAME PLEX DISK DISKOFFS LENGTH [COL/]OFF DEVICE MODE

SV NAME PLEX VOLNAME NVOLLAYR LENGTH [COL/]OFF AM/NM MODE

SC NAME PLEX CACHE DISKOFFS LENGTH [COL/]OFF DEVICE MODE

DC NAME PARENTVOL LOGVOL


SP NAME SNAPVOL DCO

EX NAME ASSOC VC PERMS MODE STATE

v oravol - ENABLED ACTIVE 100.00m SELECT oravol-03 fsgen

pl oravol-03 oravol ENABLED ACTIVE 100.00m STRIPE 2/64.00k RW

sv oravol-S01 oravol-03 oravol-L01 1 50.00m 0/0.00 2/2 ENA

sv oravol-S02 oravol-03 oravol-L02 1 50.00m 1/0.00 2/2 ENA

Note : Use {m - MB, g - GB, k-KB}

Display Records in Line list format:


# vxprint -g oradg -f

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dg oradg oradg - - - - - -

dm oradisk01 c3t1d0s2 - 4128288 - - - -

dm oradisk02 c3t2d0s2 - 4128288 - - - -

dm oradisk03 c2t9d0s2 - 2031232 - - - -

dm oradisk04 c3t3d0s2 - 4128288 - - - -

sd oradisk01-02 oravol-P03 ENABLED 102400 0 - - -

sd oradisk02-02 oravol-P02 ENABLED 102400 0 - - -

sd oradisk03-02 oravol-P01 ENABLED 102400 0 - - -

sd oradisk04-02 oravol-P04 ENABLED 102400 0 - - -

sv oravol-S01 oravol-03 ENABLED 102400 0 - - -


sv oravol-S02 oravol-03 ENABLED 102400 0 - - -

pl oravol-P01 oravol-L01 ENABLED 102400 - ACTIVE - -

pl oravol-P02 oravol-L01 ENABLED 102400 - ACTIVE - -

pl oravol-P03 oravol-L02 ENABLED 102400 - ACTIVE - -

pl oravol-P04 oravol-L02 ENABLED 102400 - ACTIVE - -

pl oravol-03 oravol ENABLED 204800 - ACTIVE - -

v oravol fsgen ENABLED 204800 - ACTIVE - -

v oravol-L01 fsgen ENABLED 102400 - ACTIVE - -

v oravol-L02 fsgen ENABLED 102400 - ACTIVE - -

Display Cache Volumes:


# vxprint -C

Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

co cacheobj - ENABLED - - ACTIVE - -

To display the names of all associated plexes:


# vxprint -n -p -e assoc

cachevol-01

oravol-P01

oravol-P02

oravol-P03

oravol-P04
oravol-03

To display the names of all unassociated plexes:


# vxprint -n -p -e \!assoc

To display all unassociated subdisks:


# vxprint -s -e \!assoc

To Display related record to the specified object:


# vxprint -r cachevol

Disk group: oradg

TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0

dm oradisk02 c3t2d0s2 - 4128288 - - - -

v cachevol cacheobj ENABLED 40960 - ACTIVE - -

pl cachevol-01 cachevol ENABLED 40960 - ACTIVE - -

sd oradisk02-01 cachevol-01 ENABLED 40960 0 - - -

You might also like