0

I want to use my empty harddrive /dev/sda as a physical volume.

$ cat /proc/partitions | grep sda
   8        0  488386584 sda

$ pvcreate -f /dev/sda
  WARNING: Device for PV uzeYqk-T9tW-Ej74-Vy9R-l4sX-zKib-GCdgFN not found or rejected by a filter.
  WARNING: Device for PV uzeYqk-T9tW-Ej74-Vy9R-l4sX-zKib-GCdgFN not found or rejected by a filter.
  Device /dev/sda not found (or ignored by filtering).

It seems to be the case that some filters prevent me from creating the physical volume. I couldn't find how to disable them. I would prefer a solution which doesn't require editing a config file.

From the examples on the manpage it seems like this should work:

pvcreate /dev/sdc4 /dev/sde
pvcreate --dataalignmentoffset 7s /dev/sdb
  • 2
    It should, I've done it before. Try zeroing out the first few megabytes of the drive; there may be metadata on it that is interfering. – Ignacio Vazquez-Abrams Dec 29 '17 at 12:43
  • @IgnacioVazquez-Abrams that did the trick, thanks – timakro Dec 29 '17 at 12:44

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.