LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Extending logical volume LogVol01 Insufficient allocatable logical exte swap space (http://www.linuxquestions.org/questions/linux-newbie-8/extending-logical-volume-logvol01-insufficient-allocatable-logical-exte-swap-space-734322/)

umeshsharma 06-20-2009 01:14 AM

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

anomie 06-21-2009 10:13 AM

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.

umeshsharma 06-22-2009 05:04 AM

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

anomie 06-22-2009 12:02 PM

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.

PTrenholme 06-22-2009 12:26 PM

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...


All times are GMT -5. The time now is 08:47 AM.