[TriLUG] Trying to free space from extended partition (that was in lvm) (fwd)

Errol Casey amr at trilug.org
Tue Jun 19 20:46:43 EDT 2007


More details regarding disk setup:

Current view from linux (df -h, fdisk, parted):

Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                       23G   11G   11G  52% /
/dev/sda3              92M   71M   17M  82% /boot
tmpfs                 500M     0  500M   0% /dev/shm
/dev/sda2              15G   13G  2.4G  84% /drivec

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1           6       48163+  de  Dell Utility
/dev/sda2   *           7        1918    15358140    7  HPFS/NTFS (C: 
WinXP)
/dev/sda3            1919        1930       96390   83  Linux (/boot)
/dev/sda4            1931        7296    43102395    5  Extended
/dev/sda5            3283        7296    32242423+  8e  Linux LVM 
/dev/sda6            1931        3282    10859877   83  Linux

Model: ATA Hitachi HTS72106 (scsi)
Disk /dev/sda: 60.0GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number  Start   End     Size    Type      File system  Flags
 1      32.3kB  49.4MB  49.3MB  primary   fat16             
 2      49.4MB  15.8GB  15.7GB  primary   ntfs         boot 
 3      15.8GB  15.9GB  98.7MB  primary   ext3              
 4      15.9GB  60.0GB  44.1GB  extended                    
 6      15.9GB  27.0GB  11.1GB  logical                     
 5      27.0GB  60.0GB  33.0GB  logical                lvm 



I freed the space on the logical volume that is on sda5
I believe.

Does this help? Or is there some other info that would be useful?


---------- Forwarded message ----------
Date: Tue, 19 Jun 2007 17:03:34 -0400 (EDT)
From: Errol Casey <amr at trilug.org>
Reply-To: Triangle Linux Users Group discussion list <trilug at trilug.org>
To: trilug at trilug.org
Subject: [TriLUG] Trying to free space from extended partition (that was in
    lvm)


I successfully resized (reduced) file system and logical volume.

But due to the volume and partition being in the extended partition, there 
seems I need another step to make the space available to a partition 
outside the extended one (I want to grow one of the 1st 3 partitions on 
the drive).

The steps/commands I've used so far to free up the space are:
e2fsck
resize2fs
lvreduce

My question is do I need to do something else with lvm?
How to I get the extended partition to let go of the space I've freed up?

I'm doing this on a system that had Fedora 6 installed. I have been using 
Knoppix/Qparted and Gparted to look/change partition information.
-- 
TriLUG mailing list        : http://www.trilug.org/mailman/listinfo/trilug
TriLUG Organizational FAQ  : http://trilug.org/faq/
TriLUG Member Services FAQ : http://members.trilug.org/services_faq/




More information about the TriLUG mailing list