nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Reducing the volume group size

This is a discussion on Reducing the volume group size within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I have a rhel 5 server in which the logical group is setup as can be seen below, I need ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 15-05-2009, 11:55 PM
Junior Member
User
 
Join Date: May 2009
OS: redhat
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fungi2k is on a distinguished road
Default Reducing the volume group size

I have a rhel 5 server in which the logical group is setup as can be seen below, I need to reduce the size of VolGroup00 to 200GB.
As you can see from below I have 201.09G free space in VolGroup00.
Any instructions on how to achieve it.

> vgs
/dev/hdc: open failed: No medium found
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 7 0 wz--n- 273.09G 201.09G
>
> lvs
/dev/hdc: open failed: No medium found
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
homevol VolGroup00 -wi-ao 10.00G
optvol VolGroup00 -wi-ao 10.00G
rootvol VolGroup00 -wi-ao 10.00G
swapvol VolGroup00 -wi-ao 2.00G
tmpvol VolGroup00 -wi-ao 10.00G
usrvol VolGroup00 -wi-ao 15.00G
varvol VolGroup00 -wi-ao 15.00G
>
> pvs
/dev/hdc: open failed: No medium found
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 273.09G 201.09G
>
> fdisk -l

Disk /dev/sda: 293.3 GB, 293378981888 bytes
255 heads, 63 sectors/track, 35667 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 16 128488+ 83 Linux
/dev/sda2 17 35667 286366657+ 8e Linux LVM
>
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-rootvol
9.7G 433M 8.8G 5% /
/dev/mapper/VolGroup00-usrvol
15G 2.3G 12G 17% /usr
/dev/mapper/VolGroup00-homevol
9.7G 155M 9.1G 2% /home
/dev/mapper/VolGroup00-optvol
9.7G 152M 9.1G 2% /opt
/dev/mapper/VolGroup00-tmpvol
9.7G 408M 8.8G 5% /tmp
/dev/mapper/VolGroup00-varvol
15G 320M 14G 3% /var
/dev/sda1 122M 18M 98M 16% /boot
tmpfs 4.0G 0 4.0G 0% /dev/shm
>
Reply With Quote
  #2 (permalink)  
Old 05-06-2009, 05:26 AM
Junior Member
User
 
Join Date: May 2009
OS: redhat
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
fungi2k is on a distinguished road
Default

well after searching for a while came across
How to shrink a default install LVM PV to create another partition — Fedora Unity Project

had to do a little bit of arithmetic but finally got it done
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
importing ZFS volume from OpenSolaris? mad99 All about FreeBSD/OpenBSD/NetBSD 1 31-05-2009 07:17 PM
Linux Logical volume manager unixfoo CentOS / RHEL / Fedora 0 18-12-2008 08:27 AM
The volume is not working manoharp2008 Linux software 0 22-08-2008 01:23 AM
Retrieval of volume UUID in Mac Ashish Pathak The Hangout 0 05-04-2008 11:21 AM
How to increase the vmalloc size? warren Linux software 1 11-09-2006 12:59 PM


All times are GMT +5.5. The time now is 01:47 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38