- 论坛徽章:
- 0
|
# 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 |
|