[linux-lvm] Strange behavior adding LUN

Stuart Browne stuart.browne at ausregistry.com.au
Sun Feb 19 23:26:05 UTC 2012


Hi,

We've been cleaning up some of our storage recently and migrating to new disks etc. when I came across this issue.

I've re-allocated some old storage back to a server as a new array, but lvm is refusing to allow the LUN to participate.  Here's what I see:

[root at office ~]# pvcreate /dev/mpath/backup1
  Physical volume "/dev/mpath/backup1" successfully created
[root at office ~]# pvdisplay /dev/mpath/backup1
  "/dev/mpath/backup1" is a new physical volume of "2.93 TB"
  --- NEW Physical volume ---
  PV Name               /dev/mpath/backup1
  VG Name
  PV Size               2.93 TB
  Allocatable           NO
  PE Size (KByte)       0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               ipTgcI-kjdJ-Aucx-cUVs-TWKr-wAFO-Rkd0u8

Thinking it's somehow mussed up the labelling, I had a quick look at the disk header:

[root at office ~]# dd if=/dev/mpath/backup1 bs=1k count=1 | cat -v -
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^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@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 0.000809 seconds, 1.3 MB/s

Given that it looks, well, 'ok' to me, I thought I'd 'pvremove' it and validate that the disk is empty.  It was (^@'s all the way, for the first 10MB at least), and re-add it.  New UUID, but basically the same.

So, weird.  Why is the 'pvcreate' seeing the new LUN, seeing that it is 2.93TB, but not creating any PE's for use.

Anybody have any idea what I should try next?

Stuart J. Browne
Senior Unix Administrator, Network Administrator, Database Administrator
AusRegistry Pty Ltd
Level 8, 10 Queens Road
Melbourne. Victoria. Australia. 3004.
Ph:  +61 3 9866 3710
Fax: +61 3 9866 1970
Email: stuart.browne at ausregistry.com.au
Web: www.ausregistry.com.au

The information contained in this communication is intended for the named recipients only. It is subject to copyright and may contain privileged and/or confidential information. If you are not an intended recipient you must not use, copy, distribute or take any action in reliance on it. If you have received this communication in error, please delete all copies from your system and notify us immediately.


-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: pvcreate.txt
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20120220/5b2d67f3/attachment.txt>


More information about the linux-lvm mailing list