免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 900 | 回复: 0
打印 上一主题 下一主题

Volume Tips and Tasks [复制链接]

论坛徽章:
2
双鱼座
日期:2014-02-23 12:10:03操作系统版块每日发帖之星
日期:2015-12-17 06:20:00
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-03-13 21:47 |只看该作者 |倒序浏览
The basic command used to create volumes is "vxassist". The format is "vxassist make". The length can be specified in units of kilobytes, megabytes, or gigabytes with the suffixes k, m, or g. By default, new volumes are created from rootdg. Use "-g" to specify a different diskgroup.
To determine the maximum size that a new volume could be given particular attributes, use the "vxassist maxsize" command. For example, to determine the maximum size of a striped volume using disk01 and disk02:
vxassist maxsize layout=stripe disk01 disk02
Then create the volume using that length. For example: vxassist make vol01 20g layout=stripe disk01 disk02
By default, the "vxassist" command creates concatenated volumes. For example, the command "vxassist make newvol 10m" would create a concatenated volume with the length of 10 MB. To specify the disk(s) to use, add the disk name(s). For example, "vxassist make newvol 10m disk01".
To create striped volumes, add the attribute "layout=stripe". For exampke, "vxassist make newvol 10g layout=stripe disk01 disk02".
To create RAID-5 volumes, add the attribute "layout=raid5". For example, "vxassist make newvol 30g layout=raid5".
To create mirrored volumes, add the attribute "layout=mirror". For example, "vxassist make newvol 10g layout=mirror".
The "vxassist" command can be used to grow or shrink the size of volumes. Do not shrink the size of volumes below the size of the filesystem. To grow volumes, run one of the following commands:
vxassist growto
vxassist growby
Similarly, you can shrink the size of volumes:
vxassist shrinkto
vxassist shrinkby
To remove an unneeded volume, unmount any filesystems on the volume, remove any references to the volume from /etc/vfstab, stop the volume with "vxvol stop", and then run "vxedit -rf rm" or "vxassist remove volume".
Existing volumes can be mirrored to add redundancy. To mirror existing volumes, use the following command:
vxassist mirror
To remove a mirror (more precisely, to remove one of the plexes from the volume), use the following command:
vxplex -o rm
To stop volumes, use the command "vxvol stop". To stop all volumes, run the command "vxvol stopall". To restart volumes, use the command "vxrecover -s" or use the command Veritas will automatically allocate the necessary space from unused disks. The process may take some time depending on the size of the volume. When fully synchronized, the status of the snapshot mirror will change to SNAPDONE. Use the following command to monitor the progress of the snapshot:
vxtask -l list
2. Detach the snapshot and create the new read-only snapshot volume with the following command:
vxassist snapshot
The period required to create the snapshot volume is shorter but it is preferred to limit I/O to the volume during the period required.
3. Clean the contents of the new snapshot volume with the following command:
fsck -y /dev/vx/rdsk/
4. Mount the snapshot volume, perform the backup, unmount the volume, and then remove the snapshot volume to save space with the following command:
vxedit -rf rm


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/524/showart_84838.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP