Creating a disk group
/usr/sbin/vxdg init <disk_group> <disk_name>
Example : vxdg init datadg c0t0d0s2
Displaying free disk space in a disk group
vxdg -g <disk_group> free
Example : mars# vxdg -g datadg free
| DISK |
DEVICE |
TAG |
OFFSET |
LENGTH |
FLAGS |
| c1t0d0 |
c1t0d0s2 |
c1t0d0 |
8273920 |
104720 |
- |
| c1t1d0 |
c1t1d0s2 |
c1t1d0 |
8273920 |
104720 |
- |
| c1t2d0 |
c1t2d0s2 |
c1t2d0 |
8273920 |
104720 |
- |
| c2t0d0 |
c2t0d0s2 |
c2t0d0 |
4104000 |
4274640 |
- |
| c2t1d0 |
c2t1d0s2 |
c2t1d0 |
4104000 |
4274640 |
- |
| c2t2d0 |
c2t2d0s2 |
c2t2d0 |
4104000 |
4274640 |
- |
Displaying a disk group version
vxdg list <disk_group> | grep -i ver
Example: mars# vxdg list datadg | grep -i ver
version: 60
Upgrading the disk group version
vxdg -T <Version> upgrade <Disk_Group>
Example: vxdg -T 60 upgrade datadg
Remove a disk from a disk group
vxdg rmdisk <disk_name>
Exact Estimate of availble disk space
vxassist -g <disk_group> mazsize layout=mirror <disk_lists>
Example: vxassist -g datadg maxsize -> to see the max size
in a disk group
vxassist -g datadg maxsize layout=option - (strip, mirror,
raid5, raid5,nolog)
| Deporting and importing
disk groups |
| |
|
| vxdg deport <dg_name> |
Simple deport |
| vxdg -n <new_dg_name> deport <dg_name> |
Deport and rename diskgroup |
| vxdg import <dg_name> |
Simple import |
| vxdg -n <new_dg_name> import <dg_name> |
Import and rename diskgroup |
| vxdg -f import <dg_name> |
Need to force if a disk is
missing |
| vxdg -C import <dg_name> |
Clears the hostid and importing
a diskgroup to another host after crash |
|