San Francisco

dave spink toolset


VxFS COMMANDS:

SYSTEM INFO NEW VXFS MAINTENANCE IMPORT DG
DEPORT DG


SYSTEM INFO

pkginfo | grep -y VRTS ;look for VRTSvxvm packages
pkginfo -l VRTSvxv ;see package version
vxlicense -p ;to preview the licenses
vxprint -ht ;to see configuration
vxdisk list ;to see disks under veritas control
vxdisk -o alldgs -e list ;to see all disk groups




NEW VXFS

vxdctl enable ;allow veritas to see new disks
/usr/lib/vxvm/bin/vxdisksetup -i cXtXdXX format=cdsdisk ;post version 4.0 specify type
vxdg init sapdg sap01=cXtXdX ;create new disk group and add device
vxdg -g sapdg adddisk sap02=cXtXdX ;add disk to existing disk group
vxmake -g sapdg sd sap01-01 sap01 len=100m ;create sub disk
vxmake -g sapdg sd sap02-01 sap02 len=100m ;create sub disk
vxmake -g sapdg plex plex01 layout=stripe ncolumn=2 stwidth=64k sd=sap01-01,sap02-01 ;create striped plex
vxmake -g sapdg -U fsgen vol vol01 plex=plex01 ;create a volume attaching the plex
vxassist -g drsdg make vol01 50g ;vxassist automatically handles subdisk and plex
vxassist -g drsdg make vol01 67g layout=stripe,log sapdg00 sapdg01 sapdg02 sapdg03 sapdg04 ;vxasist stripe example
vxvol -g sapdg start vol01 ;start volume
vxvol -g sapdg startall ;start all volumes
/opt/VRTS/bin/mkfs -F vxfs /dev/vx/rdsk/sapdg/vol01 ;create new file vxfs system on this volume
mkdir /mytest ;create directory
mount /dev/vx/dsk/sapdg/vol01 /mytest ;mount file system




MAINTENANCE

/usr/lib/fs/vxfs/fsadm -o largefiles /swapfile ;enable large files
vxedit -g rootdg set failing=off rootdisk ;remove "disk failing" if disk sector marked
nohup vxassist -g testdg relayout vol02 layout=stripe ncol=4 disk01 disk02 disk03 disk04 & ;extend stripe, you need a spare disk




IMPORT DG

vi /etc/vfstab ;amend if needed
mkdir "directories" ;if importing disks from another system
vxdisk -s list ;list current disk information
vxdg -C import $VxdGp ;import disk groups
vxvol -g $VxdGp startall ;start volumes
/opt/VRTS/bin/fsck -F vxfs $VOLX ;fsck for integrity
mountall ;or mount file systems manually




DEPORT DG

cat /etc/vfstab ;you need mount point info
umount $FileSystem ;unmount file systems
vxvol -g $VxDg stopall ;stop all volumes
vxinfo -g $VxDg ;check volumes are stopped
vxdg deport $VxDg ;deport disk groups