免费注册 查看新帖 |

Chinaunix

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

create LV 测试 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-15 11:00 |只看该作者 |倒序浏览
# lvcreate -L 128 -n yxy /dev/vg00                                               
Logical volume "/dev/vg00/yxy" has been successfully created with               
character device "/dev/vg00/ryxy".                                               
Logical volume "/dev/vg00/yxy" has been successfully extended.                  
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#         

# newfs -F vxfs /dev/vg00/ryxy
    version 4 layout
    131072 sectors, 131072 blocks of size 1024, log size 1024 blocks
    unlimited inodes, largefiles not supported
    131072 data blocks, 129952 free data blocks
    4 allocation units of 32768 blocks, 32768 data blocks
#
# mkdir yxy
# mount /dev/vg00/yxy /yxy
mount -v
/dev/vg00/lvol3 on / type vxfs log on Wed Jan 10 23:49:34 2007
/dev/vg00/lvol1 on /stand type hfs defaults on Wed Jan 10 23:49:35 2007
/dev/vg00/lvol8 on /var type vxfs delaylog,nodatainlog on Wed Jan 10 23:49:39 2007
/dev/vg00/lvol6 on /usr type vxfs delaylog,nodatainlog on Wed Jan 10 23:49:39 2007
/dev/vg00/lvol5 on /tmp type vxfs delaylog,nodatainlog on Wed Jan 10 23:49:39 2007
/dev/vg00/lvol7 on /opt type vxfs delaylog,nodatainlog on Wed Jan 10 23:49:40 2007
/dev/vg00/lvol4 on /home type vxfs delaylog,nodatainlog on Wed Jan 10 23:49:40 2007
/dev/vg00/yxy on /yxy type vxfs log,nodatainlog on Fri Jan 12 02:08:35 2007
# bdf
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg00/lvol3    4194304   98040 4064304    2% /
/dev/vg00/lvol1    1966264   63136 1706496    4% /stand
/dev/vg00/lvol8    8912896  323384 8522736    4% /var
/dev/vg00/lvol6    4194304 1018528 3151024   24% /usr
/dev/vg00/lvol5    4194304    2656 4158968    0% /tmp
/dev/vg00/lvol7    13238272 9880008 3332088   75% /opt
/dev/vg00/lvol4    10485760    2592 10401280    0% /home
/dev/vg00/yxy       131072    1133  121825    1% /yxy
# lvremove -f /dev/vg00/yxy  
lvremove: Couldn't delete logical volume "/dev/vg00/yxy":
The specified logical volume is open, or
a sparing operation is in progress.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
# umount /yxy  
umount: cannot unmount /yxy : Device busy
# pwd
/yxy
# cd ..
# umount /yxy
# lvremove -f /dev/vg00/yxy  
Logical volume "/dev/vg00/yxy" has been successfully removed.
Volume Group configuration for /dev/vg00 has been saved in /etc/lvmconf/vg00.conf
#
#

                           

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

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP