关键词不能为空

当前您在: 主页 > 英语 >

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

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2021-01-28 12:49
tags:

happened-moony

2021年1月28日发(作者:置换)


vxassist



VxVM

< br>中非常重要的一个工具


,


使用非常频繁

< br>,


我这里给出一个命令手册


,


并 作了一些简


单的翻译和注释


,


仅供参考


.


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


ng a Mirror


a RAID-5 Log


a DRL Log


ng a RAID-5 Log



ing a Volume for Online Backup


ying Volume Configuration Information





General



vxassist< /p>


工具是


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.


< p>
vxassist


在创建卷组时


,


如果不指定


,


缺省的会把卷分配给

rootdg(note:



VxVM4.0



rootdg


不再必须


,


但是你可以指定一个


default dg


具有类似的功能


).


vxass ist


的缺省单位是


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



缺省的


,vxass ist


把一个卷组里的所有磁盘统一看待


,

如果创建的


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



·


?


#vxassist make appvol 100m disk03



1.2 Creating a Striped Volume



A striped volume contains at least one plex that consists of two or more subdisks located on


two or more physical disks.


Command Syntax :



·


?


vxassist make volume_name length layout=stripe



To create a striped volume appvol2 with the default stripe unit size on the default number of


disks



·


?


#vxassist make appvol2 100m layout=stripe



To create a striped volume appvol2 100MB striped volume on three specific disks.



·


?


#vxassist make appvol2 100m layout=stripe disk04 disk05 disk06



1.3 Creating a RAID-5 Volume



A RAID-5 volume contains a RAID-5 plex that consists of two or more subdisks located on two


or more physical disks. Only one RAID-5 plex can exist per volume. A RAID-5 volume may


also contain one or more RAID-5 log plexes, which are used to log information about data and


parity being written to the volume.


Command Syntax :



·


?


vxassist make volume_name length layout=raid5



To create the RAID-5 volume appvol4 with the default stripe unit size on the default number of


disks with RAID-5 log,



·


?


#vxassist make appvol4 100m layout=raid5.



2. Extending a Volume--


扩展一个建 好的


Volume



Caution


: If you plan to use volume size change (grow or shrink ) on a volume with data make


sure you have the good backup of the volume available before carrying out such operation .


2.1 Extending a volume up to certain length


Command syntax



·


?


vxassist growto volume_name length



To extend vol3 upto 8000 sectors, type:--


例如


,


扩展


vol3



8000


个扇区



·


?


#vxassist growto vol3 8000



Note:


这里可以指定大小


,


例如


:


vxassist growto redo101 100


M



如果使用的是非缺省


DG,


还需要指定磁盘组


:


vxassist -g


oradg


growto redo101 100M



2.2 Extending by a Given Length


Command Syntax



·


?


vxassist growby volume_name length



To extend volapp by 1000 sectors, type:



·


?


#vxassist growby volapp 1000



3. Shrinking a Volume



Caution


- Do not shrink a volume below the size of the file system. If you have a VxFS file


system, you can shrink the file system and then shrink the volume. If you do not shrink the file


system first, you risk unrecoverable data loss.


Always make sure you have a good backup of the data volume to be shirnked.


3.1 Shrinking to a Given Length


Shrink a volume to a specific length as follows:



·


?


vxassist shrinkto volume_name length



Make sure you do not shrink the volume below the current size of the file system or database


using the volume. This command can be safely used on empty volumes.


To shrink volcat to 1300 sectors, type:



·


?


#vxassist shrinkto volcat 1300



3.2 Shrinking by a Given Length



Shrink a volume by a specific length as follows:



·


?


vxassist shrinkby volume_name length



To shrink volcat by 8000 sectors, type:



·


?


#vxassist shrinkby volapp2 8000



4. Removing a Volume



Removing


a


volume


requires


removing


all


references


to


the


volumes


to


be


removed


like


unmounting the volume if mounted and removing its reference from /etc/vfstab .

< br>如果你需要


remove


一个


v olume,


那么首先你需要


stop


这个卷组


,


停止其上的所有活动事务


.


An active volume has to be stopped first to stop all the activities to the volume only then it can


be removed.


Stopping Volume :


Command Syntax



·


?


vxvol stop volume_name



To stop appvol1


happened-moony


happened-moony


happened-moony


happened-moony


happened-moony


happened-moony


happened-moony


happened-moony



本文更新与2021-01-28 12:49,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/579497.html

Veritas Volume Manager(VxVM)-vxassist命令手册的相关文章