一.挂接文件系统:
LVM格式下挂接命令:
mount -t 文件系统 逻辑卷 挂接点
挂接时需注意:
1. 执行mount动作时先打一下pwd看看现在的目录是不是在挂载点,如果现在目录在挂载点的话,mount (或umount)不会成功 (会显示device busy).
2.
挂接的应该是映射中的逻辑卷而不是设备中
如下例不应该是挂接/dev/ideavg/ideavg-lvidea_data而应该挂接
/dev/mapper/ideadg-lvidea_log
举例:
mount -t ext3 /dev/mapper/ideadg-lvidea_log /sharedisks/idea_log
mount -t ext3 /dev/mapper/ideadg-lvidea_data /sharedisks/idea_data
二.卸载文件系统:
想卸载某设备的语法是umount 目录名,例如umount /mnt/cdrom等.
umount - unmount file systems
举例:
umount /sharedisks/idea_data
三.修改lv名称
EXAMPLE
To rename lvold in volume group vg02 to lvnew:
lvrename /dev/vg02/lvold /dev/vg02/lvnew
An alternate syntax to rename this logical volume is
lvrename vg02 lvold lvnew
举例:
lvrename /dev/ideadg/lvlog /dev/ideadg/lvidea_log
lvrename /dev/ideadg/lvdata /dev/ideadg/lvidea_data
本文出自 “博之初体验” 博客,请务必保留此出处http://hengdao.blog.51cto.com/2631450/577019
|