Can't assign physcial disk to new volume group

General support questions
Post Reply
kenyzet
Posts: 3
Joined: 2018/02/21 18:46:38

Can't assign physcial disk to new volume group

Post by kenyzet » 2018/02/21 18:57:31

Hello everyone,

My problem is that I can't assign a disk to a newly created volume group. Reason? The physical disk is already in a volume group called "VolGroup". Also, I can't remove this device from "VolGroup" cause "Physical volume is still in use". It's not - it's just attached as a virtual disk to a virtual machine but it wasn't used by me. Why is this default "VolGroup" creating themselves?

What can I do in this case ? I've lost already one VM due to fstab mess that I've done trying to solve this.
All ideas are welcome.

Thanks.

User avatar
TrevorH
Forum Moderator
Posts: 22806
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Can't assign physcial disk to new volume group

Post by TrevorH » 2018/02/21 19:07:35

Was this "disk" previously in use on a different VM? It sounds like it.

Post the output from the following commands, all run as root:

pvs
vgs
lvs
fdisk -lu /dev/sdX (where sdX is the device you're having trouble with).
CentOS 5 died in March 2017 - migrate NOW!
Full time Geek, part time moderator. Use the FAQ Luke

kenyzet
Posts: 3
Joined: 2018/02/21 18:46:38

Re: Can't assign physcial disk to new volume group

Post by kenyzet » 2018/02/21 19:16:59

Disk wasn't used in different VM.

Image
Image
Image
Image
Image
Image

kenyzet
Posts: 3
Joined: 2018/02/21 18:46:38

Re: Can't assign physcial disk to new volume group

Post by kenyzet » 2018/02/21 19:34:36

Also, I know that this disk is a part of lv_root but i can't remove it.

Post Reply