All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chung Hsien Hu <mozo@coventive.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] How to resize a PV partition
Date: Tue, 26 Apr 2005 11:14:28 +0800	[thread overview]
Message-ID: <426DB214.4080009@coventive.com> (raw)
In-Reply-To: <d4dq72$an3$1@sea.gmane.org>

I think the possible ways is:
1. Reduce the filesystem(resize2fs) to some minimal capacity a bit 
larger than the used size.
2. Do vgcfgbackup. Rename the backup file (for later use)
3. Recreate a smaller partition(larger than the filesystem capacity), 
and the new non-LVM
regular partition next to it.
4. Recreate an new PV on the partition(pvcreate -ff), and than create a 
VG with the orignal name.
5. Do vgcfgbackup again, use this PV information of Size and UUID to 
modify the old backup.
6. Restore LVM with the modified old backup file.

Erik Meitner wrote:

>Hello,
>I have a disk partition(type 0x8e) that is the single PV for the VG
>where my other partitions reside. I would like to recover the unused PEs
>from this PV and use them to create a non-LVM regular parition at the
>end of the disk. How do I:
>B) move used PEs from the 'end' of the PV so that it can be resized?
>A) resize the PV (previous messages suggest vgcfgbackup, edit backup
>file, vgcfgrestore)
>C) resize the type 0x8e partition?(parted won't do it)
>
>Thanks.
>
>_______________________________________________
>linux-lvm mailing list
>linux-lvm@redhat.com
>https://www.redhat.com/mailman/listinfo/linux-lvm
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>
>  
>


-- 
Mozo Hu. mozo@coventive
R&D Assistant Manager, Coventive Advance Technologies

      reply	other threads:[~2005-04-26  3:08 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-23 15:44 [linux-lvm] How to resize a PV partition Erik Meitner
2005-04-26  3:14 ` Chung Hsien Hu [this message]

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=426DB214.4080009@coventive.com \
    --to=mozo@coventive.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 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.