删除逻辑卷

Posted by zuzhihui in Linux技术 on 2009/06/28 with No Comments

在Linux下有时候删除一个没有被使用的逻辑卷也会碰到 Can’t remove open logical volume /dev/mapper/vpsvg-win 的错误信息,这个时候可以这样删除试试,或许能成功:

[root@sj2 xen]# parted /dev/mapper/vpsvg-win
GNU Parted 1.8.1
Using /dev/mapper/vpsvg-win
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print

Model: Linux device-mapper (dm)
Disk /dev/mapper/vpsvg-win: 7516MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type     File system  Flags
 1      32.3kB  7516MB  7516MB  primary               boot

(parted) rm 1
(parted) quit
Information: Don't forget to update /etc/fstab, if necessary.

[root@sj2 xen]# lvremove /dev/mapper/vpsvg-win
Do you really want to remove active logical volume "win"? [y/n]: y
  Logical volume "win" successfully removed
标签:

Leave a Comment

Back to Top

2007-2017 © 北京瑞豪开源科技有限公司 京ICP备13004995号-2