6.02.2005

Veritas: Basics

Remove a disk (oracle21) from a disk group (oracle):

vxdg -g oracle rmdisk oracle21

Add that disk back into the disk group with the old disk name (can use any though):

vxdg -g oracle adddisk oracle21=c4t0d123 (the s2 is there by default, and can be added/changed)

Great Veritas VM resource:

vxintro

Great vxassist resource:

vxassist -H; great vxassist help

Create a new disk group (jeff) by creating/adding 1 disk (jeff01) to it:

vxdg init jeff jeff01=c4t0d123

Make a 5 gig volume on that disk group:

vxassist -g jeff make jvol 5g

Start/stop a volume:

vxvol -g jeff start jvol
vxvol -g jeff stop jvol

Remove a volume (jvol):

vxassist -g jeff remove volume jvol

Make a vxfs filesystem on a volume, taking up the entire volume:

mkfs -F vxfs /the/raw/device

Grow a volume & filesystem at the same time to a new size of 20 gigs:

vxresize -F vxfs -g jeff jvol 20g

*Note: default filesystem (without -F) is dependent on /etc/default/fs
Destroy a disk group:

vxdg -g jeff destroy jeff

List all disk groups:

vxdg list

Look deeply at all disk groups and their devices:

vxprint -ht

Look at all veritas disks and their associated disk groups and OS disk names:

vxdisk list

Great menu for adding to a disk group or initializing or encapsulating filesystems into a disk group:

vxdiskadm

Add DRL (dirty region log) to a volume:

vxassist addlog volume

*note Used to cause mirrors to quickly resync after a crash or when you remove/replace a mirror. Must run "vxdctl start" before this will work

1 comment:

rmouniak said...

Excellent Blog , i appreciate your hardwork ,it is useful
AWS Online Training