public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Resizing physical volume for lvm.
@ 2009-03-22 20:15 Momesso Andrea
  2009-03-22 20:33 ` Jil Larner
                   ` (2 more replies)
  0 siblings, 3 replies; 19+ messages in thread
From: Momesso Andrea @ 2009-03-22 20:15 UTC (permalink / raw
  To: gentoo-user

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

My current setup is:

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        2894    23246023+  83  Linux
/dev/sda2            2895        3381     3911827+  82  Linux
   swap /Solaris 
/dev/sda3            3382       24804   172080247+  83  Linux
/dev/sda4           24805       30401    44957902+  83  Linux

where sda3 is an lvm volume and sda4 is free space.

I'd like to to merge sda3 and sda4 into a single partition without
losing the data on it, but I'm not sure if it is possible.

My guess is that I can use fdisk to delete sda4 and sda3, create a sda3
partition starting at 3382 and ending at 30401, then use pvresize to
enlarge it.

This is from man pvresize:
"Expand the PV on /dev/sda1 after enlarging the partition with fdisk:
pvresize /dev/sda1"

Is that going to work or I'm going to lose all the data?

P.S. I'm not using vgextend to simply add sda4 to the lvm because I
might want to migrate my root (sda1) to ext4, and to do so I will need
to split it in two separate partitions (/boot using ext3 and / using
ext4). This way I'm not going to need extended partitions.

---
TopperH
http://topperh.blogspot.com



[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2009-03-23 19:19 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-22 20:15 [gentoo-user] Resizing physical volume for lvm Momesso Andrea
2009-03-22 20:33 ` Jil Larner
2009-03-22 20:35 ` Alan McKinnon
2009-03-22 20:42   ` Momesso Andrea
2009-03-23  7:16     ` Alan McKinnon
2009-03-22 21:00   ` Momesso Andrea
2009-03-23  7:22     ` Alan McKinnon
2009-03-23  7:57       ` Momesso Andrea
2009-03-23  8:57         ` Neil Bothwick
2009-03-23  9:07           ` Momesso Andrea
2009-03-23  9:31             ` Neil Bothwick
2009-03-23 10:22               ` Momesso Andrea
2009-03-23 18:16   ` Mick
2009-03-23 19:18     ` Alan McKinnon
2009-03-22 20:39 ` Dirk Heinrichs
2009-03-22 20:46   ` Momesso Andrea
2009-03-22 20:49   ` Neil Bothwick
2009-03-22 20:58     ` Momesso Andrea
2009-03-22 21:39       ` Albert Hopkins

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox