Cuddletech系列VERITAS教程之二(上)
some disk selection examples:
all: all disks
Add or initialize disks Menu: VolumeManager/Disk/AddDisks
Use this operation to add one or more disks to a disk group. You can add the selected disks to an existing disk group or to a new disk group that will be created as a part of the operation. The selected disks may also be added to a disk group as spares. The selected disks may also be initialized without adding them to a disk group leaving the disks available for use as replacement disks.
More than one disk or pattern may be entered at the prompt. Here are some disk selection examples:
all: all disks c3 c4t2: all disks on both controller 3 and controller 4, target 2 c3t4d2: a single disk
Select disk devices to add: [<pattern-list>,all,list,q,?] list
DEVICE DISK GROUP STATUS c0t0d0 - - error c0t1d0 - - error c2t0d0 disk01 rootdg online c2t1d0 disk02 rootdg online c2t2d0 disk03 rootdg online c2t6d0 - - online
Select disk devices to add: [<pattern-list>,all,list,q,?] c2t6d0
Here is the disk selected. Output format: [Device_Name]
c2t6d0
Continue operation? [y,n,q,?] (default: y)
You can choose to add this disk to an existing disk group, a new disk group, or leave the disk available for use by future add or replacement operations. To create a new disk group, select a disk group name that does not yet exist. To leave the disk available for future use, specify a disk group name of "none".
Which disk group [<group>,none,list,q,?] (default: rootdg)
Use a default disk name for the disk? [y,n,q,?] (default: y)
Add disk as a spare disk for rootdg? [y,n,q,?] (default: n)
The selected disks will be added to the disk group rootdg with default disk names.
c2t6d0
Continue with operation? [y,n,q,?] (default: y)
The following disk device appears to have been initialized already. The disk is currently available as a replacement disk. Output format: [Device_Name]
c2t6d0
Use this device? [y,n,q,?] (default: y)
The following disk you selected for use appears to already have been initialized for the Volume Manager. If you are certain the disk has already been initialized for the Volume Manager, then you do not need to reinitialize the disk device. Output format: [Device_Name]
c2t6d0
Reinitialize this device? [y,n,q,?] (default: y)
Initializing device c2t6d0.
Adding disk device c2t6d0 to disk group rootdg with disk name disk04.
Add or initialize other disks? [y,n,q,?] (default: n)
够简单吧!完全地!现在我们的磁盘已经加入Veritas管理之中,可以开始使用它啦。我们在使用4块磁盘,全部加入到Veritas中后,”vxprint”的输出如下:
# vxprint Disk group: rootdg TY NAME ASSOC KSTATE LENGTH PLOFFS STATE TUTIL0 PUTIL0 dg rootdg rootdg - - - - - - dm disk01 c2t0d0s2 - 17678493 - - - - dm disk02 c2t1d0s2 - 17678493 - - - - |