Veritas Volume Manager(VxVM)-vxassist命令手册

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

vxassist是VxVM中非常重要的一个工具,使用非常频繁,我这里给出一个命令手册,并作了一些简单的翻译和注释,仅供参考.

General

1. Creating a Volume

1.1 Creating a Concatenated V olume

1.2 Creating a Striped V olume

1.3 Creating a RAID-5 V olume

2. Extending a Volume

2.1 Extending a volume up to certain length

2.2 Extending by a Given Length

3. Shrinking a V olume

3.1 Shrinking to a Given Length

3.2 Shrinking by a Given Length

4. Removing a Volume

5. Mirroring a V olume

5.1 Creating & Mirroring a New Volume

5.2 Mirroring an Existing V olume

5.3 Mirroring All Volumes

6.Removing a Mirror

7.Adding a RAID-5 Log

8.Adding a DRL Log

9.Removing a RAID-5 Log

10.Preparing a Volume for Online Backup

11.Displaying Volume Configuration Information

General

vxassist工具是VxVM中用于进行卷管理的工具,可以用于创建卷、增加镜像、扩展或者收缩存在的卷等,是非常重要的一个工具.

The vxassist utility in Veritas Volume Manager is used to create volumes, add mirrors and logs to existing volumes, extend and shrink existing volumes, provides for the migration of data from a specified set of disks, and provides facilities for the on-line backup of existing volumes. vxassist在创建卷组时,如果不指定,缺省的会把卷分配给rootdg(note:在VxVM4.0中rootdg 不再必须,但是你可以指定一个default dg具有类似的功能).

vxassist的缺省单位是blocks,但是你可以指定K 或M 或G 为单位,这都是合法的.

The default behavior of vxassist is to create volumes in the rootdg diskgroup if diskgroup is not specified . The default length is taken as number of blocks but this can be specified in Kilobytes or Megabytes or Gigabytes.

vxassist command syntax :

vxassist

Commonly used options are given below (See man vxassist for complete list of supported options) -g for specifying diskgroups -b for background operation -d file containing defaults for vxassist if not specified /etc/default/vxassist is used Keywords used are make , mirror , move , growto ,growby ,shrintto ,shirnkby ,snapstart , snapshot ,snapwait Attributes specify volumes layout disks controllar to include exclude etc

Device Nodes :

Default rootdg disk group. Block Device Node /dev/vx/dsk/volume_name Raw Device Node /dev/vx/rdsk/volume_name Other DiskGroups Block Device Node /dev/vx/dsk/diskgroup_name/volume_name Raw Device Node /dev/vx/rdsk/diskgroup_name/volume_name

_______________________________________

1. Creating a Volume :

1.1 Creating a Concatenated Volume

缺省的,vxassist把一个卷组里的所有磁盘统一看待,如果创建的volume大于单个磁盘,那么空间分配自动的跨越磁盘.

By default, vxassist creates a concatenated volume using the space available on a disk or on the number of disks in a diskgroup if the volume size specified is more then the one available on a single disk.

Disks can be specified from a diskgroup for a volume group but if not mentioned available disks are selected by the volume manager.

Command syntax :

· vxassist make volume_name volume_length

To create a new volume appvol of 100 MB in the default disk group rootdg with available disks:· #vxassist make appvol 100m

To create the volume appvol of 100MB on disk03

相关文档
最新文档