All of lore.kernel.org
 help / color / mirror / Atom feed
From: Delian Krustev <krustev@krustev.net>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Reducing the Linux LVM(8e) partition itself (not PV, VG or LV)
Date: Mon, 7 Mar 2005 15:54:48 +0200	[thread overview]
Message-ID: <200503071554.48408.krustev@krustev.net> (raw)
In-Reply-To: <1110115850.4677.216665923@webmail.messagingengine.com>

On Sunday 06 March 2005 15:30, Ajeet Nankani wrote:
> I have a /dev/hda6 partition as Linux LVM(8e), its size is around 8GB.
> I have one PV(no free PEs in it all are allocated) in this partition.
> This PV has a total size of around 7GB.
> I have also made sure that this PV is contiguous from the start of the
> LVM partition hence it is confirmed that the free 1GB is at the end of
> LVM partition.
> I want to reduce this Linux LVM(8e) partition and recover this 1GB free
> space to create a fat32 partition.
> When i tried to print partition table of this /dev/hda6 through gnu
> parted, it gave error "Error: Could not detect file system." and so
> qtparted does not work either.

There's no partition table or filesystem on a LVM partiton.

>
> Is there anyway to reduce this linux LVM (8e) partition safely?

Here are the steps. I hope I won't miss one:

lvreduce ..(if You don't have enough free PE)
pvmove ..
vgreduce ..
repartition(fdisk, cfdisk, parted .. )
possible reboot(reread the partition table)
pvcreate ..
vgextend ..
possibly lvextend ..
mkdosfs ..


Cheers,
Delian

      reply	other threads:[~2005-03-07 13:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-06 13:30 [linux-lvm] Reducing the Linux LVM(8e) partition itself (not PV, VG or LV) Ajeet Nankani
2005-03-07 13:54 ` Delian Krustev [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=200503071554.48408.krustev@krustev.net \
    --to=krustev@krustev.net \
    --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.