linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: karl@mouse-hole.com
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Resize physical volume SOLVED
Date: Wed, 06 May 2009 13:28:37 +0100 (BST)	[thread overview]
Message-ID: <1241612917.8151@mouse-hole.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 1343 bytes --]

Hi all

Just to let you all know, I finally got this sorted.

The problem was these partitions had been part of an md raid. By zeroing them out (mdadm wouldnt zero the superblock, but dding from /dev/zero worked) then following the exact same procedure it worked flawlessly.

Rgds
Karl

karl@mouse-hole.com wrote ..
> Hi
>
> Does anyone have any advice on this matter?
>
> Regards
> Karl
>
> Karl Wagner wrote ..
> > Hi all
> >
> > I have just been through a fairly major reorganisation of my data, and need to
> > resize the physical volumes in my LVM setup.
> >
> > Currently I have sd[a-d]6, which are physical volumes for the volume group ‘data’,
> > and sd[a-d]7, which contain nothing. My plan was to get rid of p7 on each device
> > and extend p6 to include that space. However when I tried on sda, I got an error
> > after of Couldn't find device with uuid…
> >
> > These are the steps I took:
> >
> > * Deactivate all vg’s
> > * Fdisk /dev/sda
> > * Delete p7
> > * Delete p6
> > * Create p6 with start at start of old p6, end at end of old p7
> > * Write part table
> >
> > At this point, sda7 has gone and sda6 is the correct size (checked with blockdev
> > –getsz). But running a pvscan, lvm tells me it cant find sda6.
> >
> > What am I missing?
> >
> >
> >
> > Regards
> >
> > Karl

                 reply	other threads:[~2009-05-06 12:28 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=1241612917.8151@mouse-hole.com \
    --to=karl@mouse-hole.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).