Veritas Foundation Learning for newbie

Virtual Volume
1 sect = 512 bytes = 2 VM Objects
2 sect = 1 KB
1 VM Object = 256 bytes
2048 sect = 1 M = 4096 VM Object (Private Region)

Length =Total Sectors for particular volume/diskgroup/disk
Disk Size = (Length/2) KBytes

Creating Volume
Stripe Unit = SU = 64K
SU * # of columns = Appl I/O
FSW=Full Stripe Width.
FSW=App I/O

RAID-5 :
SU = 16K
SU * (# of columns - 1) = App IO

Mirror does not have a log by default
RAID-5 have a log by default (can be set to no log)

lf u wanna shrink/expand filesystem space with remain volume size on dg that is not used :
/usr/lib/fs/vxfs/fsadm -b -r /dev/vx/rdsk/datadg/reszvol /reszmnt

lf u wanna shrink/expand filesystem space with remain disk size on diskgroup :
vxresize -F vxfs -g datadg reszvol

create snapshot filesystem :
1. vxassist -g datadg make snapvol datadg04
2. mount -F vxfs -o snapof=/fsorig /dev/vx/dsk/snapvol /snapmnt

remove snapvol :
vxassist -g datadg remove volume snapvol

check frag FS :
/opt/VRTSvxfs/sbin/fsadm -D -E /mnt

defrag FS with report both before n after :
/opt/VRTSvxfs/sbin/fsadm -e -E -d -D -s /mnt

Disk Failure :

Permanent :
1. devfsadm
2. vxdctl enable
3. vxdisksetup -i
4. vxdg -k adddisk
5. vxrecover -sb

Temporary :
1. devfsadm
2. vxdctl enable
3. vxreattach -r


when drive is fixed, to turn off the flag failing :
vxedit set failing=off

Volume relayout to concat:
vxassist -g diskdg relayout vol01 layout=concat

mirror volume :
vxassist -b -g diskdg mirror vol01

remove plex/mirroring in volume :
vxplex -o rm dis

disassociate plex from volume in dg :
vxplex dis

create volume from disassociated/dettached plex:
vxmake -g diskdg -U vol vol02 plex=

set user/group/mode volume for raw device:
vxedit -g set user=oracle group=dba mode=600

create subdisk (sd) :
vxmake -g sd , ,
i.e :
vxmake -g diskdg sd disk01-01 disk01, 0, 8000
vxmake -g diskdg sd disk01-02 disk01, 8000, 8000


create stripe plex (pl) from subdisk :
vxmake -g plex layout=stripe stwidth=<....> ncolumn=<...> sd=sd-01,sd-02
i.e :
vxmake -g diskdg plex vol01-01 layout=stripe stwidth=32 ncolumn=2 sd=disk01-01,disk01-02

mirroring a concat volume
we can use vxassist :
vxassist -b -g diskdg mirror vol01
or vxmake and vxplex (see mirroring a stripe volume part for detail)

mirroring a stripe volume
• mirroring a stripe volume with stripe plex.
we assume mirroring a stripe volume: vol01 that has 2 subdisks w/ 32 stripe width and 2 column .
we cannot directly mirrored volume, we need to create subdisk first and then plex as follows :
1. create new subdisks that have the same length/size w/ subdisk-stripe volume to be mirrored. :
vxmake -g diskdg sd disk01-01 disk01, 0, 8000
vxmake -g diskdg sd disk01-02 disk01, 8000, 8000

2. create new plex based on #1 :
vxmake -g diskdg plex vol01-02 layout=stripe stwidth=32 ncolumn=2 sd=disk01-01,disk01-02

3. attach the new plex into stripe volume (mirroring begin here) :
vxplex -g diskdg att vol01 vol01-02

• mirroring a stripe volume with concat plex.
we assume mirroring a stripe volume: vol01 that has 2 subdisks w/ 32 stripe width and 2 column .
we cannot directly mirrored volume, we need to create subdisk first and then plex as follows :
1. create new subdisk that has the same length/size w/ total subdisks volume to be mirrored. :
vxmake -g diskdg sd disk01-01 disk01, 0, 16000
2.
3. create new plex based on #1 :
vxmake -g diskdg plex vol01-02 layout=concat sd=disk01-01
4.
5. attach the new plex into stripe volume (mirroring begin here) :
vxplex -g diskdg att vol01 vol01-02

mirroring a raid5 volume
cannot mirroring a raid5 volume!

check maxsize of volume that can be created for different layout :
vxassist –g diskdg maxsize layout=

check maxsize of volume that can be created for different layout exclude disk disk05 and disk06 :
vxassist –g diskdg maxsize layout= !disk05 !disk06

delete subdisk (sd) :
vxedit -g diskdg rm

(VSF4.0) disassociate subdisk using vxsd

check disk array support library :
vxddladm listsupport

io statistic from dmp-size (load balancing) :
vxdmpadm iostat show
VxVM vxdmpadm ERROR V-5-1-2389 Incorrect Usage :
This is used to print dmp statistics.
vxdmpadm iostat start [memory=]
vxdmpadm iostat stop
vxdmpadm iostat reset
vxdmpadm iostat show [interval= [count = ]]

can be
all | enclosure= | dmpnodename= |
pathname=

vxdmpadm iostat show enclosure=HDS9980V0 interval=10

To know diskgroup configuration :
Vxdg list diskdg

Another way to know imported diskgroup :
/usr/sbin/vxprint -G -q -n -A

Comments

Popular posts from this blog

OSS RC : learning by doing (new beginning)

Link sudoers in linux (centos7) with Active Directory group

RSYNC via SSH on solaris 10