关键词不能为空

当前您在: 主页 > 英语 >

adriftVxVM—常用命令手册

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

adrift-lanlan

2021年1月28日发(作者:好主意的英文)


精品文档



vertas volume manager


命令手册



一、常见命令



获取机器


ID


和机器类型的命令



添 加


License


的命令


...





一、获 取机器


ID


和机器类型的命令




hostid



uname -i


二、添加


License


的命令




vxlicense -c


三、查 看


License


的命令



# vxlicense -p


四、名词解析



VRTSvxvm VxVM


软件



VRTSlic VxVM licensing utilities


VRTSvmdoc VxVM


电子文档



VRTSvmman VxVM


帮助手册



VRTSvmdev VxVM developer



s package


VRTSvxsa VxVM


图形管理界面



VRTSvxfs VxFS


软件



VRTSfsdoc VxFS


文档



五、添加


VxVM


< br>VxFS





mount



F hsfs



o ro /dev/dsk/c0t6d0s2 /mnt


# pkgadd



d path_name product_packages


注意:要以超级用户权限登录系统,完了后还要重启系统。


< /p>


六、安装


VxFS


后,修改


/etc/system


,在里面添加一行:



set lwp_default_stksize=0x4000


并将原始的文件拷贝一份。



.


精品文档



七、检查安装包:




pkginfo


列出所有安装的包




pkginfo | grep VRTS


列出安装的


VERITAS


的包




pkginfo



l pkckage


列出某个安装包的详细信息



八、用< /p>


vxinstall


来创建


rootdg




选择


Cu stom


安装。



九、显示执行过的命令:




tail



f /var/opt/vmsa/logs/command


十、命令行



在如下几个目录中,可以找到在命令行中使用的命令:



/etc/vx/bin


/usr/sbin


/usr/lib/vxvm/bin


注:把这些目录加入到


PATH


环境变量中去。



十一、几条常用命令:



vxassist



vxprint



vxdg



vxdisk


十二、检查是否有别 的


VMSA


版本存在:




pkginfo



l | grep vmsa


如果有则删除:




pkgrm VRTSvmsa


十三、启动


VMSA


1


.以


root


用户登录;



2


.#


./vmsa_server &


3



xhost



system_name


(这一步有时需要做)



4

< p>


DISPLAY=



u name



n


‘:


0.0



export DISPLAY


(这一步有时需要做)



十四、启动


VMSA


客户端



1


.本地启动:


# vmsa


2


.远程启动:


# vmsa remote_machine_name


十五、几个命令



.


精品文档



1


.确定


VMSA


是否运行:


# vmsa_server -q


2


.停 止


VMSA


服务:


# vmsa_server -k


3


.显示

VMSA


运行版本:


# vmsa_server -v


4


.启动自动模式:


# autostart on


5


.显示当前运行模式:


# netstat -a | grep vmsa


6


.改变自动模式:


# autostart off


7


.运行在只读模式下:


# vmsa_server -r &



# vmsa -r &


十六、添加磁盘的方法:


(行命令)



1



vxdisksetup



configures a disk for VxVM


2



vxdg addisk



add a disk to a disk group


3



# /etc/vx/bin/vxdisksetup



i disk_address [attributes]


注:


The


disk_address


defines


the


controller


,


target


,


and


SCSI


logical


unit


number


of the disk to be set up and takes the form c # t # d # . The



i option writes


a disk header to the disk , making the disk derectly usable .


4



# vxdg



g diskgroup adddisk disk_name=device_name


十七、查看磁盘信息(命令行)



1



vxdisk list



list disk information


2



prtvtoc



Display VTOC configuration


3



vxdisk



o alldgs list



show all disk groups in the output .


4



# vxdisk list disk_name


:显示某个磁盘的信息。



5



# prtvtoc physical_disk_path


6



# prtvtoc /dev/rdsk/c1t10d0s2


注:注意磁盘在卷中和不在卷中,


prtvtoc


命令结果显示的不同。



十八、


Evacuating a disk // remove a disk


(命令行)



1



vxevac



g diskgroup from_diskname to_diskname


2


.例子:


# vxevac



g datadg datadg02 datadg03


3



vxdg rmdisk



returns a disk to the free disk pool


4



vxdiskunsetup



returning a disk to an uninitialized state


5



vxdg



g diskgroup rmdisk disk_name


.


精品文档



6


.例子:


# vxdg



g newdg rmdisk newdg02


7



/etc/vx/bin/vxdisku nsetup



[C] disk_address


8


.例子:


# vxdiskunsetup c1t0d0


十九、给磁盘重命名(命令行)



1



# vxedit



g diskgroup rename old_diskname new_diskname


2



Using vxdg deport and vxdg import rename a disk group


二十、


The


rootdg


disk


group


cannot


be


destroyed


and


must


exist


on


every


system



,


because it is an essential part of the VxVM boot process .


二十一、创建磁盘组(命令行)



1



vxdg init diskgroup disk_name=device_name


2



# vxdg init newdg newdg01=c1t1d0s2


二十二、创建备用磁盘




vxdg



g diskgroup set spare=on|off disk_media_name


二十三、


Deporting a disk group


(命令行)



1



# unmount /filesystem


(先卸载磁盘组上的文件系统)



2



# vxdg deport diskgroup


3



# vxdg



n new_name deport old_name



deport and rename a disk group




4



# vxdg



h hostname deport diskgroup



deport to a new host




二十四、


Importing a disk group


(命令行)



1



# vxdg import diskgroup


2



# vxdg



n new_name import old_name



import and rename a disk group




3



# vxdg



t



n temp_name import old_name



import and rename temporaily




4



#


vxdg



tC



n


newerdg


import


newdg



clear


import


locks,add


the



C


option




5



# vxdg



f import newdg



force an import




二十五、


Rename a disk group



CLI


1



# vxdg



n new_name deport old_name


2



# vxdg import new_name


以上是第一种方式



3



# vxdg deport old_name


.


精品文档



4



# vxdg



n new_name import old_name


5



#


vxvol



g


diskgroup_newname


startall



在命令行中重命名磁盘组后要重启


vol ume




二十六、


Destroying a disk group


# vxdg destroy diskgroup


二十七、查看磁盘组信息



1



vxdisk



s list


显示磁盘组名和


ID


2



vxdisk



o alldg list


显示所 有磁盘组的信息,包括已经


destroy


的。



3



vxdg



g diskgroup free


显示磁盘组中的


free space




4



vxdg free


二十八、显示磁盘组的版本



1



# vxdg list diskgroup


2



# vxprint -l


二十九、升级磁盘组版本



1



vxdg [-T version] upgrade diskgroup


2



# vxdg



T 40 upgrade datadg

< br>(把


datadg



20


升级到


40




3



# vxdg upgrade datadg


(把


datadg


升级到 当前的版本


90




4



# vxdg -T 50 init newdg newdg01=c0t3d0s2


(创建版本为


50


的磁盘组)




.


精品文档



二、命令集




vxdisk list [diskname]


列出由



VxVM


控制的磁盘。



vxdg list [diskgroup]


列出有关磁盘组的信息。



vxdg -s list


列出有关集群中共享磁盘组的信息。



vxinfo [-g diskgroup] [volume ...]


显示有关卷的可访问性和可用性的信息。



vxprint -hrt [object]


打印有关



VxVM


中对象的单行信息。



vxprint -st [subdisk]


显示有关子磁盘的信息。



vxprint -pt [plex]


显示有关



plex


的信息。



vxdiskadm


使用基于菜单的界面管理



VxVM


磁盘。



vxdiskadd [devicename]


添加由设备名指定的磁盘。



vxedit rename olddisk newdisk


重命名由



VxVM


控制的磁盘。



vxedit set reserve=on|off diskname


留出


/< /p>


不留出磁盘组中的某个磁盘。



vxedit set nohotuse=on|off diskname


不允许


/


允许将磁盘上的空闲空间用于热重定 位。



vxedit set spare=on|off diskname


在热重定位备用磁盘池中添加


/

< p>
删除磁盘。



vxdisk offline devicename


使磁盘脱机。



vxdg -g diskgroup rmdisk diskname


将磁盘从其磁盘组中删除。



vxdisk rm diskname




VxVM


的控制中删除磁盘。



vxdg init diskgroup [diskname=]devicename


使用预 先初始化的磁盘创建磁盘组。



vxdg -s init diskgroup [diskname=]devicename


使用预先初始化 的磁盘在集群中创建共享磁


盘组。



vxdg [-n newname] deport diskgroup


逐出磁盘组并根据需要重新命名它。



vxdg [-n newname] import diskgroup


导入磁盘组并根据需要重新命名它。



vxdg [-n newname] -s import diskgroup


导入由集群共享的磁盘组并根据需要重新命名它。



vxdg [-o expand] listmove sourcedg targetdg object ...


列出可能因移动磁盘组而受到影响的


对象






vxdg [-o expand] move sourcedg targetdg object ...


在磁盘组之间移动对象。



.


精品文档



vxdg [-o expand] split sourcedg targetdg object ...


分割磁盘组并将指定对象移入目标磁盘组。



vxdg [-o expand] join sourcedg targetdg


结合两个磁盘组并删除源磁盘组。



vxdg -g diskgroup set activation=ew|ro| sw|off


设置集群中的共享磁盘组的激活模式。



vxrecover -g diskgroup -sb


启动已导入磁盘组中的所有卷。



vxdg destroy diskgroup


破坏磁盘组并释放其磁盘。



vxmake sd subdisk diskname,offset,length


创建子磁盘。



vxsd assoc plex subdisk ...


将子磁盘与现有的



plex


关联。



vxsd assoc plex subdisk1:0 ... subdiskM:N-1


将子磁盘添加到条带卷或



RAID-5


卷的列尾。



vxsd aslog plex subdisk


将日志子磁盘与现有的



plex


关联。



vxsd mv oldsubdisk newsubdisk


替换子磁盘。



vxsd -s size split subdisk sd1 sd2


将一个子磁盘分割为两个子磁盘。



vxsd join sd1 sd2 subdisk


结合两个子磁盘。



vxassist [-g diskgroup] move volume !olddisk newdisk


在磁盘之间重定位卷中的子磁盘。



vxunreloc [-g diskgroup] original_disk


将子磁盘重定位到原始磁盘。



vxsd dis subdisk




plex


中分离子磁盘。



vxedit rm subdisk


删除子磁盘。



vxsd -o rm dis subdisk




plex


中分离并删除子磁盘。



vxmake plex plex sd=subdisk1[,subdisk2,...]


创建连 续



plex




vxmake plex plex layout=stripe|raid5 stwidth=W ncolumn=N



sd=subdisk1[,subdisk2,...]


创建条带式



plex




RAID-5 plex




vxplex att volume plex




plex


挂接到现有卷。



vxplex det plex


分离



plex




vxplex off plex


使



plex


脱机以便进行维护。



vxmend on plex


重新启用



plex


以供使用。



vxplex mv oldplex newplex


替换



plex




vxplex cp volume newplex


将卷复制到



plex


上。



vxplex fix clean plex


将不可启动的卷中的



plex


的状态设置为


CLEAN< /p>




vxplex -o rm dis plex


从卷中分离并删除



plex




vxassist [-g diskgroup] maxsize layout=layout [attributes]


.

adrift-lanlan


adrift-lanlan


adrift-lanlan


adrift-lanlan


adrift-lanlan


adrift-lanlan


adrift-lanlan


adrift-lanlan



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

VxVM—常用命令手册的相关文章