[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[linux-lvm] pvcreate can't use entire disk?



[Please keep me CC'ed.  Tnx.]

I've been using LVM2 under Ubuntu Breezy for several months now; the
original partitioning & volume groups were created by its installer.
I've just decided to add a second disk, and I'm having problems with
what should have been the simplest step, namely pvcreate.

My new disk is /dev/hdd.  But doing "pvcreate /dev/hdd" complains
"Device /dev/hdd not found."  The disk is surely online:  I can
do, e.g., "strings /dev/hdd | head -1" and get "LILO" because this
disk was originally a random non-LVM'ed disk from another machine.
I would have -expected- pvcreate to complain about a partition table
existing (at which point I would have zeroed it and tried again), but
not to complain that the entire disk doesn't exist.

What's the problem here?  I'd rather not have to repartition the
(several) partions on the device into one, and then use just that
single partition, when I logically wanted the entire disk to just be
part of my VG.  (Though if that's the only way to get pvcreate to
behave, I can do so.)  But the howto at tldp.org very clearly states
that this should just work (it uses /dev/hdb as its example; but that
shouldn't matter :), and the manpage for pvcreate both talks about
whole disks, and includes whole disks in its example at the end.

What's the problem here?  What should I do?  Thanks!

P.S.  pvcreate --version claims LVM version 2.01.04 (2005-02-09),
library version 1.01.03 (2005-06-13), and driver version 4.4.0.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]