关键词不能为空

当前您在: 主页 > 英语 >

twitter是什么意思[原创] veritas volume manager(常用命令集)

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

twitter是什么意思-眼光独到

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


终于在春节前把


veritas volume manager


写完了


.


希望对要学习这个的朋友有一些帮助 吧


.


最后一部分把常用命令给大家希望可以有一个帮助吧


.(


前面的一部分内容是我转贴过来的


)


做了一个组合吧


.


刚写好的


,


可能有些乱


,


还请大家不要 介意


.


谢谢大家的支持


!!!


二、添加


License


的命令

< p>



vxlicense -c < /p>


三、查看


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


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



六、安装


VxFS


后,修改

< p>
/etc/system


,在里面添加一行:



set lwp_default_stksize=0x4000


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



七、检查安装包:




pkginfo


列出所有安装的包




pkginfo | grep VRTS


列出安装的


VERITAS


的包




pkginfo -l pkckage


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



八 、用


vxinstall


来创建


roo tdg




选择


Custom


安装。



九、显示执行过的命令:




tail -f /var/opt/vmsa/logs/command


十、命令行



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



/etc/vx/bin


/usr/sbin


/usr/lib/vxvm/bin


注:把这些目录 加入到


PATH


环境变量中去。



十一、几条常用命令:



vxassist



vxprint



vxdg



vxdisk



vxinfo



vxdiskadm


十二、检查 是否有别的


VMSA


版本存在:




pkginfo -l | grep vmsa


如果有则删除:




pkgrm VRTSvmsa


十三、启动


VMSA


1


.以


root


用户登录;


2


.#


./vmsa_server &


3



xhost



system_name


(这一步有时需要做)



4


.DISPLAY=’uname


-n


‘:


0.0



export DISPLAY


(这一步有时需要做)



十四、启动


VMSA


客户端



1


.本地启动:


# vmsa


2


.远程启动:


# vmsa remote_machine_name


十五、几个命令



1

< p>
.确定


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


注:注意磁盘在卷中和不在卷中,< /p>


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/vxdiskunsetup -[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 , beca


use 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


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


volume




二十六、


Destroying a disk group


# vxdg destroy diskgroup


二十七、查看磁盘组信息



1



vxdisk -s list


显示磁盘组名和


ID


2



vxdisk -o alldg list


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


destroy< /p>


的。



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


(把


datadg



20


升级到


40




3



# vxdg upgrade datadg


(把


datadg


升级到 当前的版本


90




4



# vxdg -T 50 init newdg newdg01=c0t3d0s2


(创建版本为


50


的磁盘组)



vxrootmir doesn't join the secondary boot disk into rootdg disk group and it on


ly mirrors rootvol. The correct procedure to mirror your boot disk is:



1. install Veritas volume manager and license


2. vxinstall


3. choose


4. answer yes to


t disk name


5. leave all the other disks alone


6. reboot your system


7. export PATH=$$PATH:/etc/vx/bin


8. select a disk on a different controler as your secondary boot disk, for inst


ance, c1t0d0


9. vxdisksetup -i c1t0d0


10. vxdg -g rootdg adddisk rootdisk02=c1t0d0


11. vxprint -hg rootdg | grep ^v and note down the volume names other than root


vol


12. nohup vxrootmir rootdisk02 &


13. nohup vxassist -g rootdg mirror volume_name rootdisk02 &


14. vxtask list to monitor the progress


15. eeprom | grep boot-device, normally it should be vx- rootdisk01 vx-rootdisk0


2


16. init 0


17. boot vx- rootdisk02 to verify


If you want to break the mirror, you'll have to detach and deassociate the mirr


ored plexes, and then remove them. Below is the example of how to remove the se


cond plex for rootvol:



1> vxprint -g rootdg -ht rootvol | grep ^pl (the plex name should be rootvol-02


)


2> vxplex -g rootdg det rootvol-02


3> vxplex -g rootdg dis rootvol-02


4> vxedit -g rootdg -rf rm rootvol-02 (this removes plex and the subdisk)


5> do 1-4 for other volumes in rootdg


6> vxprint -hg rootdg, you should see no subdisk nor plex should resides on roo


tdisk02


7> If you want to remove the second boot disk out of rootdg, do


rmdisk rootdisk02


8> vxdisk list (you should see the disk is online but not belong to any disk gr


oup)


我们可以从根盘(假设它是

< br>c0t0d0s2)“偷”出一点空间来,再做出一个


slice


,比如是


c0t0d0s7


,最好从

< br>swap


的尾部分出,假设


swap slice


从柱面


1000



3 000


,那么你可以把


2900



3000


分给


slice7



具体要根据你的硬盘情况,


但要保证


slice7


至少有


10M


的 大小。



format


命令完成这一步 。




然后用以下步骤重新做一个


rootdg:

twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到


twitter是什么意思-眼光独到



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

[原创] veritas volume manager(常用命令集)的相关文章

  • 余华爱情经典语录,余华爱情句子

    余华的经典语录——余华《第七天》40、我不怕死,一点都不怕,只怕再也不能看见你——余华《第七天》4可是我再也没遇到一个像福贵这样令我难忘的人了,对自己的经历如此清楚,

    语文
  • 心情低落的图片压抑,心情低落的图片发朋友圈

    心情压抑的图片(心太累没人理解的说说带图片)1、有时候很想找个人倾诉一下,却又不知从何说起,最终是什么也不说,只想快点睡过去,告诉自己,明天就好了。有时候,突然会觉得

    语文
  • 经典古训100句图片大全,古训名言警句

    古代经典励志名言100句译:好的药物味苦但对治病有利;忠言劝诫的话听起来不顺耳却对人的行为有利。3良言一句三冬暖,恶语伤人六月寒。喷泉的高度不会超过它的源头;一个人的事

    语文
  • 关于青春奋斗的名人名言鲁迅,关于青年奋斗的名言鲁迅

    鲁迅名言名句大全励志1、世上本没有路,走的人多了自然便成了路。下面是我整理的鲁迅先生的名言名句大全,希望对你有所帮助!当生存时,还是将遭践踏,将遭删刈,直至于死亡而

    语文
  • 三国群英单机版手游礼包码,三国群英手机单机版攻略

    三国群英传7五神兽洞有什么用那是多一个武将技能。青龙飞升召唤出东方的守护兽,神兽之一的青龙。玄武怒流召唤出北方的守护兽,神兽之一的玄武。白虎傲啸召唤出西方的守护兽,

    语文
  • 不收费的情感挽回专家电话,情感挽回免费咨询

    免费的情感挽回机构(揭秘情感挽回机构骗局)1、牛牛(化名)向上海市公安局金山分局报案,称自己为了挽回与女友的感情,被一家名为“实花教育咨询”的情感咨询机构诈骗4万余元。

    语文