LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Resize Linux partitions (https://www.linuxquestions.org/questions/linux-newbie-8/resize-linux-partitions-649110/)

wombat53 06-13-2008 01:54 PM

Resize Linux partitions
 
I am sure this q. has been asked hundreds of times, but I need to resize my /home partition of Fedora 8. The disk was set up with Anaconda/DRUID, I manually assigned several partition sizes, and I used LVM, which seems to make a small VG in swp, and the remainder of the disk in another VG in /root (48GB). A book I have (Sobell, 3rd Ed). says VG's are to simplify space management, and also suggests, adding new LV's to the VG and identifying a mount point, fstype and size for that LV. However, I'm not sure if this can be done after install.
Here's a couple of listings.
Many thanks
George
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
49199340 3023044 43636776 7% /
/dev/sdb7 497829 454100 18027 97% /home
/dev/sdb6 1984016 104152 1777452 6% /tmp
/dev/sdb5 1984016 372816 1508788 20% /var
/dev/sdb2 9920624 4980376 4428180 53% /usr
/dev/sdb3 9920624 153884 9254672 2% /usr/local
/dev/sdb1 194442 34664 149739 19% /boot
tmpfs 777264 24 777240 1% /dev/shm
/dev/sda2 38909428 22129104 16780324 57% /mnt/win_c
/dev/sda5 205270504 35509812 169760692 18% /mnt/win_d
_____________________________________________________________________
and:
[root@localhost ~]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 1
Act PV 1
VG Size 50.41 GB
PE Size 32.00 MB
Total PE 1613
Alloc PE / Size 1612 / 50.38 GB
Free PE / Size 1 / 32.00 MB
VG UUID 2XmoSY-3Pl4-115F-dNpi-HOPB-jb4i-6LSfZw

specialized 06-13-2008 04:11 PM

Oh my god! Why yo do that?
what a mess......

fix everything with cfdisk

amani 06-13-2008 04:27 PM

It will be a better idea to do the fixing with parted.

Best

A. Mani

syg00 06-13-2008 05:52 PM

In future use [code] tags when posting output.
We need the actual layout on the disks - let's see the output from "fdisk -l" (may need root under Fedora).

onebuck 06-13-2008 06:28 PM

Hi,

It is easier to place large pieces of data within 'Quote' or 'Code' vbcode tags. The tags are at the top of the reply window.

Quote:

Originally Posted by wombat53 (Post 3183944)
I am sure this q. has been asked hundreds of times, but I need to resize my /home partition of Fedora 8. The disk was set up with Anaconda/DRUID, I manually assigned several partition sizes, and I used LVM, which seems to make a small VG in swp, and the remainder of the disk in another VG in /root (48GB). A book I have (Sobell, 3rd Ed). says VG's are to simplify space management, and also suggests, adding new LV's to the VG and identifying a mount point, fstype and size for that LV. However, I'm not sure if this can be done after install.
Here's a couple of listings.
Many thanks
George

Code:

Filesystem          1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      49199340  3023044  43636776  7% /
/dev/sdb7              497829    454100    18027  97% /home
/dev/sdb6              1984016    104152  1777452  6% /tmp
/dev/sdb5              1984016    372816  1508788  20% /var
/dev/sdb2              9920624  4980376  4428180  53% /usr
/dev/sdb3              9920624    153884  9254672  2% /usr/local
/dev/sdb1              194442    34664    149739  19% /boot
tmpfs                  777264        24    777240  1% /dev/shm
/dev/sda2            38909428  22129104  16780324  57% /mnt/win_c
/dev/sda5            205270504  35509812 169760692  18% /mnt/win_d

_____________________________________________________________________
and:
Code:

[root@localhost ~]# vgdisplay
  --- Volume group ---
  VG Name              VolGroup00
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access            read/write
  VG Status            resizable
  MAX LV                0
  Cur LV                2
  Open LV              2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size              50.41 GB
  PE Size              32.00 MB
  Total PE              1613
  Alloc PE / Size      1612 / 50.38 GB
  Free  PE / Size      1 / 32.00 MB
  VG UUID              2XmoSY-3Pl4-115F-dNpi-HOPB-jb4i-6LSfZw


Not that hard and makes things easier to read.


All times are GMT -5. The time now is 03:31 PM.