Veritas VxVM – Creating Filesystem Command Line

What diskgroups are Available:

vxdg list

Finding free space in Veritas diskgroups

vxdg -g oradg free
vxassist -g oradg maxsize layout=concat

list the existing filesystem in datagroup

# vxinfo -g datadg1
oracle raid5 Started
database raid5 Started
u05 raid5 Started
u07 raid5 Started
# vxinfo -g datadg2
database raid5 Started
index raid5 Started
u06 raid5 Started
u08 raid5 Starte


To Create a Filesystem

– create volume first (if disk group is there already, that is, just another request for another filesystem from free space)

# vxdg init datadg disk01=c1t1d0s2 disk02=c1t2d0s2 disk03=c1t3d0s2 disk04=c1t4d0s2
# vxassist -g datadg make vol01 2g layout=raid5

or
# vxassist -g DG1 make VolS 10m layout=stripe c1t1d0 c1t2d0s2

bash-3.00# mount -F vxfs /dev/vx/dsk/DG1/VolS /stripe/
bash-3.00# mount -F vxfs /dev/vx/dsk/DG1/VolM /mirror/

Reason: RFC13585613
# vxdg list
NAME STATE ID
orapdg enabled 1140953419.50.nsgct2-ivm01
# vxassist -g orapdg maxsize layout=concat
Maximum volume size: 872189952 (425874Mb)
# vxinfo -g orapdg
oralib fsgen Started
archive fsgen Started
redolog08 fsgen Started
archivelog fsgen Started
usertable fsgen Started
indextable fsgen Started

—–
# create volume for /DBA01
# vxassist -g orapdg make dba01 350g layout=fsgen # <<-- fsgen ?? # create filesystem from volume # mkfs - F vxfs /dev/vx/rdks/orapdg/dba01 # mount point # mkdir /DBA01 # mount -F vxfs /dev/vx/dsk/orapdg/dba01 /DBA01 # ownership # chown -R appdbmnt:appdba /DBA01

Leave a Reply

Your email address will not be published. Required fields are marked *