ImageVerifierCode 换一换
格式:DOCX , 页数:7 ,大小:19.78KB ,
资源ID:6517281      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/6517281.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(Veritas vxvm之卷管理.docx)为本站会员(b****6)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

Veritas vxvm之卷管理.docx

1、Veritas vxvm之卷管理vxvm之卷管理一、创建卷: 1、使用vxassist命令: 查出卷的最大空间: rootnode03 /# vxassist -g testgp maxsize layout=raid5 nlog=2 Maximum volume size: 37523456 (18322Mb) 在任一磁盘上创建卷: rootnode03 /# vxassist -b -g testgp make vol01 1g rootnode03 /# vxassist -b -g testgp make vol02 1g(如果希望卷立即能够使用,指定 -b 选项。-b选项可以使用in

2、it=active替代。) 完了后创建vxfs或ufs文件系统: rootnode03 /# mkfs -F vxfs /dev/vx/rdsk/testgp/vol01 rootnode03 /# mkfs -F vxfs /dev/vx/rdsk/testgp/vol02 rootnode03 /# mount -F vxfs /dev/vx/dsk/testgp/vol01 /share/vol01 使用vxvoladm查看信息 rootnode03 /# vxvoladm list rootnode03 /# vxprint -ht 在特定的磁盘上创建卷: rootnode03 /#

3、vxdisk list DEVICE TYPE DISK GROUP STATUS c1t0d0s2 auto:none - - online invalid c1t1d0s2 auto:cdsdisk testgp01 testgp online c1t2d0s2 auto:cdsdisk testgp02 testgp online c1t3d0s2 auto:cdsdisk testgp03 testgp online c1t4d0s2 auto:cdsdisk testgp04 testgp online c1t5d0s2 auto:cdsdisk testgp05 testgp on

4、line rootnode03 /# vxassist -b -g testgp make vol03 1G testgp04 testgp05 rootnode03 /# newfs /dev/vx/dsk/testgp/vol03 创建镜像卷: rootnode03 /# vxassist -b -g testgp make vol05 2G layout=mirror 要创建具有 3 个镜像而非默认的 2 个镜像的卷: rootnode03 /# vxassist -b -g testgp make vol06 2G layout=mirror nmirror=3 创建镜像连续卷: ro

5、otnode03 /# vxassist -b -g testgp make vol07 2G layout=mirror-concat nmirror=3 创建连续镜像卷: rootnode03 /# vxassist -b -g testgp make vol08 2G layout=concat-mirror nmirror=3 创建启用脏区日志的卷: rootnode03 /# vxassist -b -g testgp make vol09 2G layout=mirror logtype=drl nlog=2 nmirror=2 创建条带卷: rootnode03 /# vxass

6、ist -b -g testgp make vol10 2G layout=stripe 创建镜像条带卷: rootnode03 /# vxassist -b -g testgp make vol11 2G layout=mirror-stripe 创建条带镜像卷: rootnode03 /# vxassist -b -g testgp make vol12 2G layout=stripe-mirror 创建 RAID-5 卷: rootnode03 /# vxassist -b -g testgp make vol13 2G layout=raid5 nlog=2 2、使用vxmake创建

7、卷: 这个命令比较麻烦,只说怎样初始化并启动使用 vxmake 创建的卷: 如果使用 vxmake 命令创建的卷尚未初始化,或者该卷被设置为未初始化状态,则可以运行 vxvol 命令初始化该卷。 要初始化并启动卷,请使用如下命令: # vxvol -g diskgroup start volume 以下命令可用于启用未初始化的卷: # vxvol -g diskgroup init enable volume 这样,就可以在使用以下命令使卷完全活动之前,从备份恢复卷上的数据: # vxvol -g diskgroup init active volume 如果希望清空整个卷的内容,请使用此命令

8、将其初始化: # vxvol -g diskgroup init zero volume 3、vxprint信息: rootnode03 /# vxprint -ht Disk group: testgp DG NAME NCONFIG NLOG MINORS GROUP-ID ST NAME STATE DM_CNT SPARE_CNT APPVOL_CNT DM NAME DEVICE TYPE PRIVLEN PUBLEN STATE RV NAME RLINK_CNT KSTATE STATE PRIMARY DATAVOLS SRL RL NAME RVG KSTATE STATE

9、REM_HOST REM_DG REM_RLNK CO NAME CACHEVOL KSTATE STATE VT NAME RVG KSTATE STATE NVOLUME V NAME RVG/VSET/CO KSTATE STATE LENGTH READPOL PREFPLEX UTYPE PL NAME VOLUME KSTATE STATE LENGTH LAYOUT NCOL/WID MODE SD NAME PLEX DISK DISKOFFS LENGTH COL/OFF DEVICE MODE SV NAME PLEX VOLNAME NVOLLAYR LENGTH COL

10、/OFF AM/NM MODE SC NAME PLEX CACHE DISKOFFS LENGTH COL/OFF DEVICE MODE DC NAME PARENTVOL LOGVOL SP NAME SNAPVOL DCO EX NAME ASSOC VC PERMS MODE STATE SR NAME KSTATE dg testgp default default 35000 1168768128.13.node03 dm testgp01 c1t1d0s2 auto 65536 18762384 - dm testgp02 c1t2d0s2 auto 65536 1876238

11、4 - dm testgp03 c1t3d0s2 auto 65536 18762384 - dm testgp04 c1t4d0s2 auto 65536 18762384 - dm testgp05 c1t5d0s2 auto 65536 18762384 - dm testgp06 c1t6d0s2 auto 65536 18762384 - pl raidplex - DISABLED - 0 RAID 4/32 RW v vol01 - ENABLED ACTIVE 2097152 SELECT - fsgen pl vol01-01 vol01 ENABLED ACTIVE 209

12、7152 CONCAT - RW sd testgp01-01 vol01-01 testgp01 0 2097152 0 c1t1d0 ENA v vol02 - ENABLED ACTIVE 2097152 SELECT - fsgen pl vol02-01 vol02 ENABLED ACTIVE 2097152 CONCAT - RW sd testgp02-01 vol02-01 testgp02 0 2097152 0 c1t2d0 ENA v vol03 - ENABLED ACTIVE 2097152 SELECT - fsgen pl vol03-01 vol03 ENAB

13、LED ACTIVE 2097152 CONCAT - RW sd testgp04-01 vol03-01 testgp04 0 2097152 0 c1t4d0 ENA v vol04 - ENABLED ACTIVE 6291456 SELECT - fsgen pl vol04-01 vol04 ENABLED ACTIVE 6291456 STRIPE 3/128 RW sd testgp01-02 vol04-01 testgp01 2097152 2097152 0/0 c1t1d0 ENA sd testgp02-02 vol04-01 testgp02 2097152 209

14、7152 1/0 c1t2d0 ENA sd testgp03-01 vol04-01 testgp03 0 2097152 2/0 c1t3d0 ENA pl vol04-02 vol04 ENABLED ACTIVE 6291456 STRIPE 3/128 RW sd testgp04-02 vol04-02 testgp04 2097152 2097152 0/0 c1t4d0 ENA sd testgp05-01 vol04-02 testgp05 0 2097152 1/0 c1t5d0 ENA sd testgp06-01 vol04-02 testgp06 0 2097152

15、2/0 c1t6d0 ENA v vol05 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol05-01 vol05 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp03-02 vol05-01 testgp03 2097152 4194304 0 c1t3d0 ENA pl vol05-02 vol05 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp05-02 vol05-02 testgp05 2097152 4194304 0 c1t5d0 ENA v vol06

16、 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol06-01 vol06 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp06-02 vol06-01 testgp06 2097152 4194304 0 c1t6d0 ENA pl vol06-02 vol06 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp01-03 vol06-02 testgp01 4194304 4194304 0 c1t1d0 ENA pl vol06-03 vol06 ENABLED ACT

17、IVE 4194304 CONCAT - RW sd testgp02-03 vol06-03 testgp02 4194304 4194304 0 c1t2d0 ENA v vol07 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol07-01 vol07 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp04-03 vol07-01 testgp04 4194304 4194304 0 c1t4d0 ENA pl vol07-02 vol07 ENABLED ACTIVE 4194304 CONCAT - R

18、W sd testgp03-03 vol07-02 testgp03 6291456 4194304 0 c1t3d0 ENA pl vol07-03 vol07 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp05-03 vol07-03 testgp05 6291456 4194304 0 c1t5d0 ENA v vol08 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol08-04 vol08 ENABLED ACTIVE 4194304 CONCAT - RW sv vol08-S01 vol08-0

19、4 vol08-L01 1 4194304 0 3/3 ENA v vol08-L01 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol08-P01 vol08-L01 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp06-04 vol08-P01 testgp06 6291456 4194304 0 c1t6d0 ENA pl vol08-P02 vol08-L01 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp01-05 vol08-P02 testgp01 838

20、8608 4194304 0 c1t1d0 ENA pl vol08-P03 vol08-L01 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp02-05 vol08-P03 testgp02 8388608 4194304 0 c1t2d0 ENA v vol09 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol09-01 vol09 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp04-04 vol09-01 testgp04 8389136 4194304 0 c

21、1t4d0 ENA pl vol09-02 vol09 ENABLED ACTIVE 4194304 CONCAT - RW sd testgp03-04 vol09-02 testgp03 10486288 4194304 0 c1t3d0 ENA pl vol09-03 vol09 ENABLED ACTIVE LOGONLY CONCAT - RW sd testgp03-05 vol09-03 testgp03 10485760 528 LOG c1t3d0 ENA pl vol09-04 vol09 ENABLED ACTIVE LOGONLY CONCAT - RW sd test

22、gp04-05 vol09-04 testgp04 8388608 528 LOG c1t4d0 ENA v vol10 - ENABLED ACTIVE 4194304 SELECT vol10-01 fsgen pl vol10-01 vol10 ENABLED ACTIVE 4194432 STRIPE 3/128 RW sd testgp05-04 vol10-01 testgp05 10485760 1398144 0/0 c1t5d0 ENA sd testgp06-03 vol10-01 testgp06 10485760 1398144 1/0 c1t6d0 ENA sd te

23、stgp01-04 vol10-01 testgp01 12582912 1398144 2/0 c1t1d0 ENA v vol11 - ENABLED ACTIVE 4194304 SELECT - fsgen pl vol11-01 vol11 ENABLED ACTIVE 4194432 STRIPE 3/128 RW sd testgp05-05 vol11-01 testgp05 11883904 1398144 0/0 c1t5d0 ENA sd testgp06-05 vol11-01 testgp06 11883904 1398144 1/0 c1t6d0 ENA sd te

24、stgp02-04 vol11-01 testgp02 12582912 1398144 2/0 c1t2d0 ENA pl vol11-02 vol11 ENABLED ACTIVE 4194432 STRIPE 3/128 RW sd testgp04-06 vol11-02 testgp04 12583440 1398144 0/0 c1t4d0 ENA sd testgp01-06 vol11-02 testgp01 13981056 1398144 1/0 c1t1d0 ENA sd testgp03-06 vol11-02 testgp03 14680592 1398144 2/0

25、 c1t3d0 ENA v vol13 - ENABLED ACTIVE 4194336 RAID - raid5 pl vol13-01 vol13 ENABLED ACTIVE 4194336 RAID 4/32 RW sd testgp05-06 vol13-01 testgp05 13282048 1398112 0/0 c1t5d0 ENA sd testgp06-06 vol13-01 testgp06 13282048 1398112 1/0 c1t6d0 ENA sd testgp02-06 vol13-01 testgp02 13981056 1398112 2/0 c1t2

26、d0 ENA sd testgp04-07 vol13-01 testgp04 13981584 1398112 3/0 c1t4d0 ENA pl vol13-02 vol13 ENABLED LOG 3840 CONCAT - RW sd testgp01-07 vol13-02 testgp01 15379200 3840 0 c1t1d0 ENA pl vol13-03 vol13 ENABLED LOG 3840 CONCAT - RW sd testgp03-07 vol13-03 testgp03 16078736 3840 0 c1t3d0 ENA 二、管理卷: 1、显示卷管理

27、信息: 通常使用vxprint -hvt显示,也可以显示特定卷: rootnode03 /# vxprint -g testgp -hvt vol13 2、停止卷: 在停止卷之前,确保所有卷已经卸载了,否则会报错的。 rootnode03 /# vxvol -g testgp (-f) stopall(停止组testgp中的所有卷) 停止单个卷: rootnode03 /# vxvol -g testgp (-f) stop vol01 3、启动卷: 启动卷是指将卷状态从 DISABLED 或 DETACHED 更改为 ENABLED: rootnode03 /# vxvol -g testg

28、p start vol01 (启动单个卷) rootnode03 /# vxvol -g testgp startall (启动testgp组中的所有卷) 另一中启动disabled卷的方法是使用vxrecover: rootnode03 /# vxrecover -g testgp -s vol01 (启动单个卷) 启动全部 DISABLED 卷: rootnode03 /# vxrecover -s 要防止对卷执行任何修复操作,请另外指定 vxrecover 的 -n 选项。 4、给卷做镜像: 将镜像添加到卷: rootnode03 /# vxassist -b -g testgp mir

29、ror vol01 vol01卷是之前创建的,现在给它使用以上命令做镜像。 镜像全部卷: 要将磁盘组中所有的卷镜像到可用的磁盘空间,请使用此命令: rootnode03 /# /etc/vx/bin/vxmirror -g testgp -a 要配置 VxVM 以在默认情况下创建镜像卷,请使用此命令: rootnode03 /# /etc/vx/bin/vxmirror -d yes 进行此更改后,仍可以通过将 nmirror=1 指定为 vxassist 命令的属性来生成非镜像卷。如下: rootnode03 /# vxassist -g testgp make vol14 3G nmirr

30、or=1 删除镜像: 从卷中删除某镜像: rootnode03 /# vxassist -g testgp remove mirror vol01 还可以使用存储属性指定要删除的存储空间,以下是从卷vol08上删除磁盘c1t2d0上的镜像: 向镜像中添加脏区日志: rootnode03 /# vxassist -b -g testgp addlog vol10 logtype=drl nlog=2 如果logtype=drlseq表示使用顺序 DRL. 删除 DRL 日志: rootnode03 /# vxassist -g testgp remove log vol10 nlog=2 5、重

31、定卷大小: vxresize (首选)、vxassist 或 vxvol。另一种选择是,可以使用图形 VERITAS Enterprise Administrator (VEA) 重定卷大小。 确定卷可以增加的大小: rootnode03 /# vxassist -g testgp maxgrow vol01 Volume vol01 can be extended by 25182208 to: 27279360 (13320Mb) (1)、使用vxresize重定卷大小: vxresize对于已挂载的vxfs的文件系统可以进行在线增加和缩小,对于已挂载的ufs文件系统只能增加不能减小;对于已卸载的文件系统,vxfs不允许操作,而ufs 只能增加。 如下所示,在线增加vxfs和ufs的大小: rootnode03 /# vxresize -g testgp -b -F vxfs -t homevolresize vol01 5G(这个大小是指增加后的总大小,不是在原大小上加5G) -b 选项

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1