Skip to contentSkip to conversation

Can't pvcreate /dev/sda

linux-lvm Turbo Fredriksson 3 participants 3 messages Jan 13, 2007 – Feb 5, 2007

lore
Share & tools
lore
#0 lore raw

This is very weird!

----- s n i p -----

root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
root@pegasos:~# pvcreate /dev/sda
  Physical volume "/dev/sda" successfully created
root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
----- s n i p -----

Any ideas?

#1 lore raw
Quoted 15 lines · Turbo Fredriksson

This is very weird!

----- s n i p -----

root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
root@pegasos:~# pvcreate /dev/sda
  Physical volume "/dev/sda" successfully created
root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
----- s n i p -----
Quoted 1 line

Any ideas?

Check the filter in lvm.conf to see if /dev/sdb is excluded from scanning?

Signature · 2 lines
Jonathan Biggar
[email protected]
#2 lore raw
In reply to Turbo Fredriksson
Quoted 13 lines · Turbo Fredriksson

----- s n i p -----

root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
root@pegasos:~# pvcreate /dev/sda
  Physical volume "/dev/sda" successfully created
root@pegasos:~# pvscan
  PV /dev/hdb   VG MovieShare   lvm2 [74.53 GB / 74.53 GB free]
  PV /dev/sdb                   lvm2 [372.61 GB]
  Total: 2 [447.14 GB] / in use: 1 [74.53 GB] / in no VG: 1 [372.61 GB]
----- s n i p -----
Quoted 1 line

Any ideas?

Check whether sda is partitioned, and if so, remove the partitions. Use 'pvscan -vvvv' and look for the reason it gives for ignoring it.

Alasdair

Signature · 1 line
[email protected]