|
Disk Operation
|
| |
Initializing
a disk for veritas use |
| vxdisksetup -i <disk> |
| Example: /etc/vx/bin/vxdisksetup -i c2t3d0
|
| This will not add the disk to a disk group but
the disk will be |
| ready to go to any disk group. |
| |
Increasing
the private region lenght more than the default length |
| (1024 sector) |
| vxdisksetup -i <disk> privlen=length
|
| Example: vxdisksetup -i c2t3d0
privlen=10080s |
| |
Uninitilizing
a volume manager disk |
| vxdiskunsetup -C <disk> |
| Example: /etc/vx/bin/vxdiskunsetup
-C c2t3d0 |
| -C option will force the departitioning
of the disk in this case |
| |
Adding
a volume manager initilized disk to an existing disk group
|
| vxdg -g <disk_group> adddisk
disk_c?t?d?=c2?t?d?s2 |
| Example: vxdg -g datadg adddisk
c2t3d0=c2t3d0s2 |
| Where : Disk Group = datadg, Disk =
(c2t3d0=c2t3d0s2) |
| |
| |
| Adding
one or more disks to volume manager using vxdiskadd command
|
| vxdiskadd <disk_lists> |
| Example: vxdiskadd c2t3d0 c3t2d0
|
| Note: Multiple disks can be input |
| |
| Listing
all disks under volume manager control |
| vxdisk list |
| Example: mars# vxdisk list |
| DEVICE |
TYPE |
GROUP |
DISK |
STATUS |
| c0t0d0s2 |
sliced |
c0t0d0 |
datadg |
online |
| c0t8d0s2 |
sliced |
c0t8d0 |
datadg |
online |
| c0t9d0s2 |
sliced |
c0t9d0 |
datadg |
online |
| c0t10d0s2 |
sliced |
c0t10d0 |
datadg |
online |
| c0t11d0s2 |
sliced |
c0t11d0 |
datadg |
online |
| c0t12d0s2 |
sliced |
c0t12d0 |
datadg |
online |
|
| |
| |
| Renaming
a disk |
| vxedit -g <disk_group> rename
<old_disk> <new_disk> |
| Example: vxedit -g datadg rename
c2t3d0 datadisk |
| |
| Taking
a disk offline |
| vxdisk offline <disk> |
| Example: vxdisk offline c2t3d0
|
| |
| Mirroring
whole disk to a alternate disk |
| vxmirror <vol_disk> <alternate_disk>
|
| Example: vxmirror c3t0d0 c4t0d0
|
| |
| Removing
a disk from veritas volume manager control |
| vxdg -g <disk_group> rmdisk <disk_name>
|
| vxdisk rm <disk_name> |
| Example: vxdg -g datadg rmdisk
c2t3d0 |
| vxdisk rm c3t0d0 |
| |
| Displaying
details on a particular disk |
| vxdisk list <disk_name> |
| Example: mars# vxdisk list
c1t0d0 |
| Device: c1t0d0s2 |
| devicetag: c1t0d0 |
| type: sliced |
| hostid: mars |
| disk: name=c1t0d0 id=927566261.1060.mars
|
| group: name=datadg id=927566262.1063.mars
|
| flags: online ready autoconfig autoimport
imported |
| pubpaths: block=/dev/vx/dmp/c1t0d0s4
char=/dev/vx/rdmp/c1t0d0s4 |
| privpaths: block=/dev/vx/dmp/c1t0d0s3
char=/dev/vx/rdmp/c1t0d0s3 |
| version: 2.1 |
| iosize: min=512 (bytes) max=2048 (blocks)
|
| public: slice=4 offset=0 len=8378640
|
| private: slice=3 offset=1 len=2159
|
| update: time=1005684741 seqno=0.24
|
| headers: 0 248 |
| configs: count=1 len=1563 |
| logs: count=1 len=236 |
| Defined regions: |
| config priv 000017-000247[000231]:
copy=01 offset=000000 enabled |
| config priv 000249-001580[001332]:
copy=01 offset=000231 enabled |
| >log priv 001581-001816[000236]: copy=01
offset=000000 enabled |
| Multipathing information: |
| numpaths: 1 |
| c1t0d0s2 state=enabled |
| |
| Exclusion
of Disks and Controllers |
| Disk and controllers can be exculded
while the vxinstall is initializing the disks. |
| Create a file /etc/vx/disk.exclude,
list the name of the disk to be exclude - Example
|
| /etc/vx/cntrls.exclude : list the controllers
to be exclude - Example
|
| |
| Setting
off the disk failing status |
| vxedit -g <disk_group> set offline=off
<disk_name> |
| Example: vxedit -g datadg set
offline=off c2t3d0 |
| |
| Designating
a disk as a hot spare disk |
| vxedit -g <disk_group> spare=on
<disk_name> |
| Example: vxedit -g datadg spare=on
c2t3d0 |
| This can also be done using option
12 using vxdiskadm |
| |
| Unmarking
a hot spare disk |
| vxedit -g <disk_group> spare=off
<disk_name> |
| Example: vxedit -g datadg spare=off
c2t3d0 |
| This can also be done using option 13
using vxdiskadm |
| |
| |