Hi Lists,

I recently did some rearranging of my partitions, so that everything
except / and /boot (they're where my Windows used to be) is on a
logical volume. Yay, me. My partitioning now looks like this:

>marcec marcec # df -h
>Dateisystem          Größe Benut  Verf Ben% Eingehängt auf
>/dev/sda1             1,2G  516M  610M  46% /
>udev                   10M  280K  9,8M   3% /dev
>tmpfs                 501M     0  501M   0% /dev/shm
>/dev/mapper/maindisk-Var
>                      2,0G  340M  1,7G  17% /var
>/dev/mapper/maindisk-Usr
>                       20G   13G  7,4G  64% /usr
>/dev/mapper/maindisk-Opt
>                       15G  8,6G  6,5G  57% /opt
>/dev/mapper/multimedia-Home
>                       45G   40G  5,7G  88% /home
>/dev/mapper/multimedia-Media
>                       20G  1,5G   19G   8% /home/marcec/multimedia
>/dev/mapper/multimedia-Stuff
>                       45G   37G  8,7G  81% /home/marcec/stuff

I wasn't sure how big I should make /var and /usr. /opt is that big in
the event I install some more games. Otherwise /boot is on sda5, the VG
maindisk on sda6 and the VG multimedia on sdb.

Now, since Windows was at the beginning of the hard drive, there is a
huge gap (about 23 GB) between sda5 and sda6.

What I want to know is, how would I go about filling the gap to have a
single, large partition for maindisk? Gparted wouldn't do it and I
didn't dare do anything with cfdisk.

For the moment I added a new partition (via cfdisk, that I did dare do)
that takes up the entire gap and extended maindisk to that. It's not
what I wanted, but it works. So that puts the VG on both sda6 (new) and
sda7 (old sda6). So it looks like this now:

>marcec marcec # pvs
>  PV         VG         Fmt  Attr PSize   PFree
>  /dev/sda6  maindisk   lvm2 a-    23,22G  23,22G
>  /dev/sda7  maindisk   lvm2 a-   273,31G 233,38G
>  /dev/sdb1  multimedia lvm2 a-   149,05G  39,05G


Of course, since I didn't do anything else to maindisk, I understand I
can always remove the partition from LVM via vgreduce and pvremove.

Any hints in this regard, or is my current solution the only viable?

-- 
Marc Joliet
--
"People who think they know everything really annoy those of us who
know we don't" - Bjarne Stroustrup

Attachment: signature.asc
Description: PGP signature

Reply via email to