http://www.symantec.com/business/support/index?page=content&id=HOWTO58833
-
export DG=SOME-DG clear; for i in `vxprint -ht -g ${DG}|grep DISA| grep ^pl | awk '{print $2}'`; do echo "vxmend -g ${DG} fix stale $i" echo "vxmend -g ${DG} fix clean $i"; done vxvol -g ${DG} startall -
# add volume definition
hares -add SRVS-vol8 Volume SRVS-SG
hares -modify SRVS-vol8 Critical 0
hares -modify SRVS-vol8 DiskGroup cjprd
hares -modify SRVS-vol8 Volume cjprd-vol8
hares -modify SRVS-vol8 Enabled 1
hares -link SRVS-vol8 SRVS-dg 0 0# Add mount definition
hares -add SRVS-odbf4 Mount SRVS-SG
hares -modify SRVS-odbf4 Critical 1
hares -modify SRVS-odbf4 SnapUmount 0
hares -modify SRVS-odbf4 CkptUmount 1
hares -modify SRVS-odbf4 SecondLevelMonitor 0
hares -modify SRVS-odbf4 SecondLevelTimeout 30
hares -modify SRVS-odbf4 MountPoint /cjprd/odbf4
hares -modify SRVS-odbf4 BlockDevice /dev/vx/dsk/cjprd/cjprd-vol8
hares -modify SRVS-odbf4 FSType vxfs
hares -modify SRVS-odbf4 MountOpt
hares -modify SRVS-odbf4 FsckOpt -y
hares -modify SRVS-odbf4 Enabled 0
hares -modify SRVS-odbf4 Critical 0
hares -modify SRVS-odbf4 Enabled 1
hares -link SRVS-odbf4 SRVS-vol8 0 0hares -modify SRVS-odbf4 Critical 1
hares -link SRVS-odbf4 SRVS 0 0
hares -modify SRVS-vol8 Critical 1
haconf -dump -
Scan the fibre and re-read the device maps: /opt/QLogic_Corporation/ql-dynamic-tgt-lun-disc-2.5/ql-dynamic-tgt-lun-disc.sh vxdctl initdmp vxdctl enable vxdisk list #will show something similar to: fas60801_40 auto - - error verify the 'FAS' number from sanlun output to make sure we are working with the correct device! #Initialize the new disk vxdisksetup -i fas60801_40 vxdisk list #will now show the disk online: fas60801_40 auto:cdsdisk - - online thinrclm To create a volume in an existing disk group: vxdg -g DGNAME adddisk DGNAME-
Disk=FAS60800_27 ex: vxdg -g proddg adddisk proddg-redoDisk=FAS60800_27 # see how big we can make a concat on the new disk vxassist -b -g proddg maxsize layout=concat proddg-redoDisk output will be like this: Maximum volume size: nnnnnnn (XXXXMb) # make the volume vxassist -b -g proddg make proddg-redoVol XXXXm layout=concat proddg-redoDisk # mkfs.vxfs /dev/vx/rdsk/proddg/proddg-redoDisk # then mount it up and off you go! For a new disk group: #Initialize the new disk group vxdg init SOMETHING_dg SOMETHING-1=fas60801_40 vxdisk -o alldgs list will now show the new disk in its new group: fas60801_40 auto:cdsdisk SOMETHING-1 SOMETHING_dg online thinrclm #Create logical volume and filesystem vxassist -g SOMETHING_dg make SOMETHING-vol1 SOMETHING-1 #make the filesystem /usr/lib/fs/vxfs/mkfs -t vxfs -o largefiles /dev/vx/rdsk/SOMETHING_dg/SOMETHING-vol1 #Mount up the filesystem mount -t vxfs /dev/vx/rdsk/SOMETHING_dg/SOMETHING-vol1 /where/ever -
see all available disk groups:
vxdisk -o alldgs listImport a DG:
vxdg import DG_NAMEStart the volumes:
vxvol -g DG_NAME startall -
hares -display -attribute Address -group GROUP_NAME | tail -1| awk '{print $4}' -
hastatus -sum | grep FAULT| awk '{print "hagrp -clear", $2, " -sys ", $3}'| sh -
hastatus -sum | grep ^B|grep OFFLINE|awk '{print $2, $6}'|sort | uniq -c|sort -n -
hagrp -flush GROUP -sys SYS
hares -probe RESOURCE -sys SYS
-
export GROUP=SERVICE_GROUP for RESOURCE in `hares -display -attribute MountOpt -group ${GROUP} | awk '{print $1}' | grep -v ^\#`; do echo "hares -modify ${RESOURCE} MountOpt 'mincache=direct,convosync=direct'" done | sh haconf -dump
Category:
- Administration
- APPS
- Articles
- Backup & Recovery
- Certification
- Configuration
- DATABASE STRUCTURE
- DATAGUARD
- Documentation
- EBS
- Enterprise Manager
- FLASHBACK
- HACKING
- HEADS UP
- Installation
- JDeveloper
- Linux
- Monitoring
- MQ
- NFS
- NXclient/server
- Online Resources
- PERL
- python
- RMAN
- Routing & Switching
- SAN – NAS
- Scripts
- Serial-Parallel-Port-Testers
- SNMP
- Software
- Solaris
- Spiritual
- SQL & PL/SQL
- SQLPLUS
- Startup/Shutdown
- Streams
- Tuning
- Version Control
- Vertias
- VMWare
- VNC
- Windows XP
- ZFS





