Allocating available space to file system


 
Thread Tools Search this Thread
Operating Systems Linux Allocating available space to file system
# 1  
Old 09-07-2010
Allocating available space to file system

have a VMWARE machine, I have extended it from 20GB to 30GB for Linux box.

The linux box shows this for df -hal:

Code:
Filesystem Size Used Avail Use% Mounted on
-dev-mapper-VolGroup00-LogVol00
19G 5.9G 12G 34% -
proc 0 0 0 - -proc
sysfs 0 0 0 - -sys
devpts 0 0 0 - -dev-pts
-dev-sda1 99M 13M 82M 14% -boot
tmpfs 187M 0 187M 0% -dev-shm
none 0 0 0 - -proc-sys-fs-binfmt_misc
sunrpc 0 0 0 - -var-lib-nfs-rpc_pipefs
-dev-hdc 238M 238M 0 100% -media-NEW

So, it still shows only 20GB.

But fdisk -l shows this:

Code:
Disk -dev-sda: 32.2 GB, 32212254720 bytes
255 heads, 63 sectors-track, 3916 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
-dev-sda1 * 1 13 104391 83 Linux
-dev-sda2 14 2610 20860402+ 8e Linux LVM

So, -dev-sda shows the full 32.2GB.

Sorry, couldn't use the slash mark so replaced with the dash

How do I take the additional 10GB that it has and allocate it to -dev-mapper-VolGroup00-LogVol00 ?

That way I can use the 10GB of available space in that file system.

Thanks for help!

Last edited by pludi; 09-07-2010 at 05:34 PM.. Reason: code tags, please...
# 2  
Old 09-07-2010
Hi.

You could try:

Code:
lvextend -l +100%FREE /dev-mapper/VolGroup00/LogVol00
resize2fs /dev-mapper/VolGroup00/LogVol00

(I guess this is fairly dependent on some factors, which are not obvious from your post)
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Allocating Unallocated Drive Space from a SAN to a filesystem

Good Morning everyone, I want to know how to allocate unallocated drive space from a SAN to a file system that desperately needs the drive space. Does anyone have any documentation or tips on how to accomplish this? I am running on AIX version 6.1. (2 Replies)
Discussion started by: ryanco
2 Replies

2. AIX

No space in the file system

A file system has reached 100%. I have tried adding space using chfs -a size=+100 command to that file system. However, the % used is not decreasing from 100%. Is there a way to add more space? Also, can someone suggest a script to send a mail alert when a file system is reaching 90%. G (4 Replies)
Discussion started by: ggayathri
4 Replies

3. Solaris

Solaris file system space

Hi Experts, I have query regarding output of df command. $ df -k Filesystem 1024-blocks Used Available Capacity Mounted on rpool/ROOT/solaris-161 191987712 6004395 140577816 5% / /devices 0 0 0 0% /devices... (3 Replies)
Discussion started by: sai_2507
3 Replies

4. UNIX for Dummies Questions & Answers

allocating space for samba users

I have installed samba by cmd yup install samba -a and configured my samba server.But i want my samba users to lo-gin from windows users and contain allocated amount of space. plz help me............ (1 Reply)
Discussion started by: yashwanthguru
1 Replies

5. Solaris

Allocating space to ufs /usr by using ZFS in solaris

Hi, Im currently having my diskspace allocation of my UFS filesystem in solris as 100% for /usr directory.I have created a zfs pool of 3 gb.I want to allocate space from my zfs pool to /usr so that i can free space in /usr.Please help me it is quiet urgent. (6 Replies)
Discussion started by: navjotmannan
6 Replies

6. Shell Programming and Scripting

Get free space of file system

Hi guys, I'm trying to get free space in GB of file system into parameter. I have the following code: > cat get_free_space_FS.ksh #! /bin/ksh FS=/dw/mar FreeSpace=`df -h | grep $FS | awk '{print $4}'` echo $FreeSpace > ./get_free_space_FS.ksh 362G My question is ,how can I cut in... (4 Replies)
Discussion started by: nir_s
4 Replies

7. UNIX for Advanced & Expert Users

allocating swap space on solaris 9

Hi, I have a solaris 9-sparc box, which after bouncing is giving swap space related error messages(that swap space is not enough). could it be possible that there was some command issued or setting made before bouncing, which was lost after bouncing? please let me know how i can add swap space... (1 Reply)
Discussion started by: 0ktalmagik
1 Replies

8. Solaris

Lost space on file system

Hi everybody, I got a problem on my SUN server in Solaris 9. I'll try to explain, if somebody could help me. I have mounted some volumes in RAID 0+1, that is stripped slices and then mirror. To be clear the result of metastat d80 is as follow : d80: Mirror Submirror 0: d81 State:... (2 Replies)
Discussion started by: aribault
2 Replies

9. UNIX for Dummies Questions & Answers

Re-allocating hard drive space

Hi, Is their an easy way to realloate hard drive space on Solaris 10. For example : /c20td0 10G /space 90 G I would like to move some of the hard-drive space from "/space" and add it to "/c20td0". In Windows this can be easily done using Partition magic, anything similar for UNIX? (4 Replies)
Discussion started by: annointed3
4 Replies

10. HP-UX

Root File system Space

Hi I'm using HP-UX 11.00, the root file system is as shown below. Several time it reach 100% used, to free some space I use to reboot the system. What can I do to free some space without rebooting the machine? Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol3 ... (2 Replies)
Discussion started by: cgege
2 Replies
Login or Register to Ask a Question