Disk Commands |
| ||
Operation | Command | Example | |
| | | |
Initialise disks | vxdisksetup | vxdisksetup -i c0t9d0 | |
Un-initialise disks | vxdiskunsetup | vxdiskunsetup -C c0t9d0 | |
Remove disk | vxdisk | vxdisk rm c1t0d0 | |
Scan for new disks | vxdctl vxdisk | vxdctl enable vxdisk scandisks v | |
List disks | vxdisk | vxdisk list | |
List disk header | vxdisk | vxdisk list disk1 | |
List disk private region | vxprivutil list | vxprivutil list /dev/rdsk/c1t9d0s2 | |
Move data to another disk | vxevac | vxevac –g my-dg old-disk new-disk | |
Reserve a disk | vxedit | vxedit -g my-dg set reserve=on my-disk | |
Disable relocation tou | vxedit | vxedit -g my-dg set nohotuse=on my-disk | |
Undo relocationu | vxunreloc | vxunreloc –g my_dg my_disk | |
Disk Group Commands | ||
Operation | Command | Example |
| | |
Create disk group | vxdg init | vxdg init my-dg disk01=c4t4d0 |
Remove disk group | vxdg destroy | vxdg destroy my-dg |
Add disk | vxdg adddisk | vxdg -g my-dg adddisk disk02=c1t5d0 |
Remove disk | vxdg rmdisk | vxdg -g my-dg rmdisk disk02 |
Import disk group | vxdg import | vxdg import otherdg |
Deport disk group | vxdg deport | vxdg deport my-dg |
List disk groups | vxdg list | vxdg list |
Dispay disk group info. | vxdg list | vxdg list my-dg |
List free space | vxdg free | vxdg -g my-dg free |
Subdisk Commands |
| ||
Operation | Command | Example | |
| | | |
Create subdisk | vxmake sd | vxmake -g my-dg sd my-sd disk1,0,5000 | |
Remove subdisk | vxedit rm | vxedit -g my-dg rm my-sd | |
Display subdisk info. | vxprint –st | vxprint –st | |
Associate subdisk to plex | vxsd assoc | vxsd -g my-dg assoc my-plex my-sd | |
Disassociate subdisk | vxsd dis | vxsd -g my-dg dis my-sd | |
Move a subdisk. | vxsd mv | vxsd –g my-dg [ –o rm ] mv old-sd new-sd | |
Plex Commands |
| ||
Operation | Command | Example |
|
| | | |
Create a plex | vxmake | vxmake -g my-dg plex my-plex sd=my-sd | |
Associate a plex | vxplex | vxplex -g my-dg att my-vol my-plex | |
Disassociate a plex. | vxplex | vxplex -g my-dg dis my-plex | |
Attach a plex | vxplex | vxplex -g my-dg att my-vol my-plex | |
Detach a plex (remains associated) | vxplex | vxplex -g my-dg det my-plex | |
List plexes | vxprint | vxprint –lp | |
Remove a plex | vxedit | vxedit -g my-dg rm my-plex | |
Volume Commands | |||
Operation | Command | Example | |
| | | |
Create a volume | vxassist | vxassist -g my-dg make my-vol 1G vxassist make my-vol 1G layout=stripe | |
Delete a volume | vxedit | vxedit -g my-dg -r rm my-vol | |
Change owner of volume | vxedit | vxedit –g my-dg set user=oracle my-vol | |
Change permissions of vol | vxedit | vxedit –g my-dg set mode=644 my-vol | |
Display volume info | vxprint vxinfo | vxprint -g my-dg –hrt my-vol vxinfo -g my-dg my-vol | |
Resize a volume only. (does not resize file system ) | vxassist | vxassist -g my-dg growto my-vol 2G vxassist -g my-dg growby my-vol 600M | |
Resize volume & file system | vxresize | vxresize –g my_dg my_vol new_size | |
Start a volume | vxvol | vxvol -g my-dg start my-vol | |
Stop a volume | vxvol | vxvol -g my-dg stop my-vol | |
Initialise a volume | vxvol | vxvol -g my-dg init active my-vol | |
Recover a volume | vxrecover | vxrecover -g my-dg my-vol | |
Mirror a volume | vxassist | vxassist -g my-dg mirror my-vol | |
Remove mirror from volume | vxassist | vxassist –g my-dg remove mirror my-vol | |
Add log to a volume | vxassist | vxassist -g my-dg addlog my-vol | |
Remove log from a volume | vxassist | vxassist –g my-dg remove log my-vol | |
Snapshot a volume | vxassist | vxassist -g my-dg snapstart my-vol vxassist -g my-dg snapshot my-vol my-snap vxassist –g my-dg snapback my-vol my-snap v | |
Change volume layout | vxassist | vxassist -g my-dg relayout my-vol layout=stripe | |
Convert volume type | vxassist | vxassist -g my-dg convert my-vol layout=stripe-mirror | |
stripe-mirror & concat-mirror is RAID 1+0 ,mirror-stripe & mirror-concat is RAID 0+1
Mirroring System Disk | ||
Operation | Command | Example |
| | |
Initialise disk. | vxdisksetup -i | vxdisksetup -i c0t8d0 |
Add disk to rootdg. | vxdg adddisk | vxdg adddisk rootmirror=c0t8d0 |
Create system disk mirror. | vxmirror | vxmirror rootdisk rootmirror |
Enable devalias in eeprom. | vxeeprom | vxeeprom enable |
Boot from mirror disk. | boot | boot vx-rootmirror (At eeprom prompt) |
Show disk booted from. | prtconf | prtconf –vp | grep bootpath |
Removing from VM. | vxunroot | vxunroot followed by a reboot. |
Monitoring and Performance | ||
Operation | Command | Example |
| | |
List running tasks | vxtask | vxtask –g my_sg list |
Pause running task. | vxtask | vxtask –g my_dg pause taskid |
Display volume statistics | vxstat | vxstat –g my-dg –c 5 –i 10 –v (-s=sd, -p=plex) |
Display volume operations | vxtrace | vxtrace –g my-dg –c 5 –t 30 –o v (-s=sd, -p=plex) |
No comments:
Post a Comment