LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 06-20-2009, 01:14 AM   #1
umeshsharma
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Rep: Reputation: 0
Extending logical volume LogVol01 Insufficient allocatable logical exte swap space


Hi,

i have Dell™ PowerEdge™ 2650 redhat 4 linux system with 4.256 GB ram and 511 MB Swap space and i want to increase swap space like.

Quote:
[root@htss06 ~]# free -m
total used free shared buffers cached
Mem: 3804 374 3429 0 19 172
-/+ buffers/cache: 182 3621
Swap: 511 0 511


[root@htss06 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
133G 6.8G 120G 6% /
/dev/sda1 99M 13M 82M 13% /boot
none 1.9G 0 1.9G 0% /dev/shm

[root@htss06 ~]# swap off -v /dev/VolGroup00/LogVol01
-bash: swap: command not found
[root@htss06 ~]# swapoff -v /dev/VolGroup00/LogVol01
swapoff on /dev/VolGroup00/LogVol01
[root@htss06 ~]# free -m
total used free shared buffers cached
Mem: 3804 381 3422 0 20 173
-/+ buffers/cache: 187 3616
Swap: 0 0 0
[root@htss06 ~]# lvm lvresize /dev/VolGroup00/LogVol01 -L +6144M
Extending logical volume LogVol01 to 6.50 GB
Insufficient allocatable logical extents (17) for logical volume LogVol01: 208 required

I am using this link http://www.redhat.com/docs/manuals/enterprise/RHEL-4-Manual/sysadmin-guide/s1-swap-adding.html

Thanks
umesh
 
Old 06-21-2009, 10:13 AM   #2
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
You don't have enough space (logical extents) left in your volume group. Have a look at:

# vgdisplay

You'll need to either add another physical volume to your VG, or reduce the size of another LV in that VG.
 
Old 06-22-2009, 05:04 AM   #3
umeshsharma
LQ Newbie
 
Registered: Jun 2009
Posts: 6

Original Poster
Rep: Reputation: 0
Thanks for reply

this is output of command
Quote:

[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 135.47 GB
PE Size 32.00 MB
Total PE 4335
Alloc PE / Size 4334 / 135.44 GB
Free PE / Size 1 / 32.00 MB
VG UUID EK4h2w-zCUP-BXN5-KxT3-2F7Y-gmoZ-ldcNiq
I can't add new disks can anybody please give me command reduce the size of another LV in that VG

Thanks
umesh
 
Old 06-22-2009, 12:02 PM   #4
anomie
Senior Member
 
Registered: Nov 2004
Location: Texas
Distribution: RHEL, Scientific Linux, Debian, Fedora
Posts: 3,935
Blog Entries: 5

Rep: Reputation: Disabled
Read here (along with its associated documentation):

http://www.redhat.com/docs/manuals/e...resources.html

Post back if you're still having issues. Be sure to practice on a test system first.
 
Old 06-22-2009, 12:26 PM   #5
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
If I read it correctly, your first free command indicated that you were not using any of your currently allocated swap space. (Which is, I presume, something to check before doing a swapoff. )

Anyhow, rather than resizing the LV(s), why not just create a file in / and add it to the swap pool? And track your swap usage: With 4GB RAM, especially if you're on a server, you're unlikely to need any swap at all...
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extending a logical volume in a reconfigured RAID 5 array set cswebb Linux - Hardware 3 12-19-2008 02:16 AM
LVM - Extending logical volume - Insufficient free space deim Linux - Newbie 0 04-07-2007 09:47 PM
swsusp and swap on logical volume card-suse Linux - Laptop and Netbook 3 02-09-2006 06:58 PM
how to reduce logical volume LinuxLover Linux - Enterprise 2 10-29-2005 08:26 AM
lvm extending logical partation Ammad Linux - General 0 09-25-2005 04:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 04:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration