All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tomasz Chmielewski <mangoo@wpkg.org>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: [linux-lvm] can't use LVM2 - "Failed to write physical volume"?
Date: Wed, 09 Jan 2008 17:42:49 +0100	[thread overview]
Message-ID: <4784F989.3030801@wpkg.org> (raw)

It seems to me that for some reason it's not possible to create a 
physical volume on a DRBD device. Below, we can see that running 
"pvcreate" succeeds and than fails, then it succeeds again etc.:

# pvcreate -d -v /dev/drbd0
     Set up physical volume for "/dev/drbd0" with 976544952 available 
sectors
     Zeroing start of device /dev/drbd0
   Physical volume "/dev/drbd0" successfully created

# pvcreate -d -v /dev/drbd0
     Wiping cache of LVM-capable devices
     Set up physical volume for "/dev/drbd0" with 976544952 available 
sectors
     Zeroing start of device /dev/drbd0
   Failed to write physical volume "/dev/drbd0"

# pvcreate -d -v /dev/drbd0
     Set up physical volume for "/dev/drbd0" with 976544952 available 
sectors
     Zeroing start of device /dev/drbd0
   Physical volume "/dev/drbd0" successfully created


Running vgcreate fails:

# vgcreate san2_data /dev/drbd0
   No physical volume label read from /dev/drbd0
   /dev/drbd0 not identified as an existing physical volume
   Unable to add physical volume '/dev/drbd0' to volume group 'san2_data'.



This is the setup used:

encrypted /dev/sdb -> unencrypted /dev/mapper/san2_crypt -> partition 
/dev/mapper/san2_crypt1 -> /dev/drbd0


I can create physical volume on /dev/mapper/san2_crypt2 (no DRBD) just fine.


The machine is running Debian Etch on a 2.6.23.12 kernel.

# lvm version
   LVM version:     2.02.07 (2006-07-17)
   Library version: 1.02.08 (2006-07-17)
   Driver version:  4.11.0


I found a similar post, where DRBD wasn't used:

http://linux.derkeiler.com/Mailing-Lists/Ubuntu/2006-11/msg00414.html


Any clues why this happens?


-- 
Tomasz Chmielewski
http://wpkg.org

             reply	other threads:[~2008-01-09 16:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-09 16:42 Tomasz Chmielewski [this message]
2008-01-10 12:12 ` [linux-lvm] can't use LVM2 - "Failed to write physical volume"? [SOLVED] Tomasz Chmielewski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4784F989.3030801@wpkg.org \
    --to=mangoo@wpkg.org \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.