Volume operations | Make a volume | Vxassist -U fsgen -g <group> make <volumename> <size> layout=(raid5,stripe,nolog) [disk disk disk] |
| Remove a volume/plex/disk | Vxedit -rf -rm <device> |
| Make a volume with a mirror | Vxassist -g rootdg make vol01 100m layout=nostripe, log nmirror=2 |
| Start a volume | Vxvol init clean <volumename> |
| Start all volumes in a disk group | Vxrecover -g <group> -sb |
| Make a mirror | Vxassist -g <group> mirror <volumename> |
| Add a drl | Vxassist -g <group> addlog <volumename> |
| Grow a volume to maximum size | Vxassist -g <group> maxgrow <volume> [disk disk disk] |
States and fixes | DETACHED ACTIVE | Vxvol (-f) start <volume> |
| DISABLED ACTIVE | Vxvol (-f) start <volume> |
| DETACHED ACTIVE | Vxmend fix empty <plex> |
| DETACHED REPLAY | Vxplex -f -o rm dis <log plex> vxassist -g <dg> addlog <volume> vxvol -g <dg> start <volume> |
Plex | Detach a plex | Vxplex det <plexname> |
| Disassociate a plex | Vxplex dis <plexname> |
States and fixes | DISABLED ACTIVE | Vxplex (-f) att <volume> <plex> |
| DETACHED IOFAIL | Vxmend fix clean <plex> vxmend fix active <plex> vxplex (-f) att vol <plex> vxvol (-f) start |
| DETACHED IOFAIL | Vxmend fix empty <plex> vxmend fix clean <plex> vxmend fix active <plex> vxplex (-f) att vol <plex> |
| DISABLED RECOVER |
|
| DISABLED IOFAIL | Vxvol -f start <vol> |
| STALE ACTIVE | Vxplex dis <plex> vxplex (-f) att vol <plex> |
| DISABED STALE | Ps -ef | grep vplex (it should be fixing itself, if not) vxplex dis <plex> vxplex (-f) att vol <plex> |
| ENABLED STALE | Ps -ef | grep vxplex vxplex dis <plex> vxplex (-f) att vol <plex> |
| ENABLED RECOVER ENABLED REGEN | Ps -ef | grep vxplex (should be fixing itself) |
| DISABLE EMPTY | Vxvol -f start <vol> (if this doesn't work than the plex is invalid, probably due to size) |
| DISABLED STALE | (for logging plexes) vxplex dis <logplex> vxedit -rm rm <logplex> vxassist -g <dg> addlog <vol> <disk> |
Disk operations | Add a disk to vxvm | Vxdisk add c?t?d? C?t?d? |
| Display disk info | Vxdisk list <disk> |
| Rename a disk/vol/plex | Vxedit rename <oldname> <newname> |
| Activate a hot spare | Vxedit set spare=on <diskname> |
| Evacuate a disk | Vxevac -g <group> <diskname> <newdiskname> |
| Remove the disk from it's disk group | Vxdg -g <group> rmdisk <diskname> |
| Add a disk to a disk group Creat group and add disk | Vxdg -g <group> adddisk <diskname>=c?t?d? Vxdg init <newgroup> <diskname>=c?t?d? |
| Remove a disk from vxvm control | Vxdisk rm c?t?d? |
| Unset failing subdisk flag | Vxedig -g <group> set failing=off <subdisk> |
Disk group Operations | Maxsize available | Vxassist -g <group> maxsize layout=<raid5>, <stripe>,<nolog> |
| Import a diskgroup | Vxdg import <group> vxdg -C import <group> (clears locks) vxdg -C -n <newdgname> import <dgid> (creates a new diskgroup from an oldone, forces new dg name> |
| Deport a diskgroup | Vxdg deport <group> |
| Rebuid a diskgroup | Vxprivutil dumpconfig /dev/rdsk/c?t?d?s2 > /tmp/vxconfig cat /tmp/vxconfig | vxprint -hmvps -D - > /tmp/new.vxconfig vxmake -g <dg> -d /tmp/new.vxconfig |
Created by Aaron M. Hirsch
1 comment:
Thanks :)
Post a Comment