Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Professional XXL with 2x 1TB HDDs (1TB RAID) server from velia.net and i want to create a volume group in it but when first i create pv it's showing.

           [root@xen17 ~]# pvcreate /dev/sda3
              /dev/sda3: open failed: No such device or address 
              Can't open /dev/sda3 exclusively.  Mounted filesystem?

And the output of.

           [root@xen17 ~]#  grep filter /etc/lvm/lvm.conf | grep -v "#"
              filter = [ "a/.*/" ]

sometimes it shows

           [root@xen17 ~]# pvcreate /dev/sda3
           Device /dev/hda1 not found (or ignored by filtering).

Now i am confused why this disk is behaving like that please help me in this i am struggling in this since 4 days. Any help will be appreciated.

share|improve this question

1 Answer 1

up vote 0 down vote accepted

Try grep sda3 /proc/partitions to see if sda3 is actually available on your system.

If it is, then try grep sda3 /proc/mounts and see if the disk you are trying to use is not actually already mounted.

Note that in a XEN guest, your block devices are most likely not named sda (cat /proc/partitions to see what your block devices are).

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.