SCIENTIFIC-LINUX-USERS Archives

August 2006

SCIENTIFIC-LINUX-USERS@LISTSERV.FNAL.GOV

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Jan Iven <[log in to unmask]>
Reply To:
Date:
Thu, 31 Aug 2006 12:15:51 +0200
Content-Type:
text/plain
Parts/Attachments:
text/plain (40 lines)
On Thu, 2006-08-31 at 12:48 +0300, Ioannis Vranos wrote:
> I have SL 4.3 x86 installed on two hard disks, because during installation it created an 
> LVM2 configuration (VolGroup00 with /dev/hdc and /dev/hdf). I want to remove dev/hdf.
> 
> I checked Logical Volume Management and when I tried to "Remove Volume from Volume Group" 
> it gave the message "Volume Group VolGroup00 does not have enough space to move the data 
> stored on /dev/hdf1. A possible solution would be to add an additional Physical Volume to 
> the Volume Group"
> 
> 
> When I tried "Migrate Selected Extents From Volume", it gave the message "There are not 
> enough free extents to perform the necessary migration. Adding more physical volumes would 
> solve the problem".
> 
> 
> However I have enough free space:
> 
> 
> [root@localhost download]# df -h
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
>                         99G   11G   84G  12% /
> /dev/hdc1              99M   13M   82M  13% /boot
> none                  506M     0  506M   0% /dev/shm
> [root@localhost download]#
> 
> 
> 
> The first hard disk is 80 GB one and the second I want to remove 30 GB one. Is there any 
> way to resize VolGroup00 or something, so as to remove the /dev/hdf? Can the live cd help 
> in this case?

You will have to shrink the filesystem inside the VG. I think for ext2/3
that is an offline operation (FS cannot be mounted), i.e. something
where the live CD will help. 
After that you should be able to remove the Physical volume on hdf1.

Regards
jan

ATOM RSS1 RSS2