LVM Memory Usage

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat LVM Memory Usage
# 1  
Old 01-16-2013
LVM Memory Usage

Hello
I am using LVM to create volumes.

After creating the volumes using "lvcreate" and then formating them as "ext3".
I mounted these volumes to find around 40 -50GB space wasted.

Any suggestions why?

Code:
 # df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/sdb1             111G   16G   90G  15% /
/dev/sda1              99M   24M   71M  25% /boot
tmpfs                 5.9G     0  5.9G   0% /dev/shm
/dev/mapper/vg_oracle-lv_u91
                      699G  197M  664G   1% /u91
/dev/mapper/vg_oracle-lv_u92
                      955G  200M  907G   1% /u92


Last edited by jim mcnamara; 01-16-2013 at 07:54 PM..
# 2  
Old 01-16-2013
Every one of the "real" disk devices shows the same thing. Short answer is that the filesystem uses disk space on the disk that is not reported as used by the file system.
This is normal behavior. As time goes on the difference will become a smaller percentage - the space is not "wasted".
This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 01-17-2013
I guess I needed refresher for my Disk Partitions basics.
Forgot that about 5% is used for root access on all partitions and this looks like it.

Was able to reduce this using tune2fs command.
# 4  
Old 01-20-2013
Also, the file systems leave a small bit of space "unavailable" on purpose. This allows for the root user to access and perform functions in a file system that shows 100% full and not have a full disk make the system totally unusable. You don't want to remove that.
This User Gave Thanks to sixstrings For This Post:
# 5  
Old 01-20-2013
I would suggest rather than decreasing the reserved block percentage, use tune2fs -u to specify a user id (usually user id of the application which will use the file system, I'm assuming it's oracle in this case) which will use the reserved blocks.

In this way, you will be ensuring free space for the application, even when other users will not have any space left on that filesystem to write to.
This User Gave Thanks to admin_xor For This Post:
# 6  
Old 01-21-2013
Hello Sixsprings... I reducerd the percentage to 3% and have 8GB space still allocated for root access. Did not reduce the size to 0. THink this should be enough.

---------- Post updated at 02:15 AM ---------- Previous update was at 02:14 AM ----------

Thank you for the suggestion will keep in mind this option for future use...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Memory usage per user,percent usage,sytem time in ksh

Let's say i have 20 users logged on Server. How can I know how much memory percent used each of them is using with system time in each user? (2 Replies)
Discussion started by: roy1912
2 Replies

2. Red Hat

LVM unmounted due to out of memory

Hi , Our one of VMguest all lvm got unmounted once the machine is rebooted when in repair state dmesg its showing an error out of memory killed process 22289 (lvm) please refer screen shots attached when i look the lvscan its showing all lvm are inactive i checked throuh top there... (0 Replies)
Discussion started by: venikathir
0 Replies

3. UNIX for Dummies Questions & Answers

Command to display the space usage (memory usage) of a specific directory.

Hi all, Can you please tell me the command, with which one can know the amount of space a specific directory has used. df -k . ---> Displays, the amount of space allocated, and used for a directory. du -k <dir name> - gives me the memory used of all the files inside <dir> But i... (2 Replies)
Discussion started by: abhisheksunkari
2 Replies

4. AIX

How to monitor the IBM AIX server for I/O usage,memory usage,CPU usage,network..?

How to monitor the IBM AIX server for I/O usage, memory usage, CPU usage, network usage, storage usage? (3 Replies)
Discussion started by: laknar
3 Replies

5. Solaris

Memory usage in Solaris - memory not freed?

Hi, I'm running a multi-process software system on a Solaris 8 machine. When I monitor the memory usage, I see that the free memory is dropping rapidly, but I can't detect a process that uses this memory. I'm using "top" to get the free memory and the memory usage of processes. Thanks. (3 Replies)
Discussion started by: gewurtz
3 Replies

6. Solaris

current CPU usage, memory usage, disk I/O oid(snmp)

Hi, I want to monitor the current cpu usage, monitor usage , disk I/o and network utlization for solaris using SNMP. I want the oids for above tasks. can you please tell me that Thank you (2 Replies)
Discussion started by: S_venkatesh
2 Replies

7. HP-UX

how can I find cpu usage memory usage swap usage and logical volume usage

how can I find cpu usage memory usage swap usage and I want to know CPU usage above X% and contiue Y times and memory usage above X % and contiue Y times my final destination is monitor process logical volume usage above X % and number of Logical voluage above can I not to... (3 Replies)
Discussion started by: alert0919
3 Replies

8. UNIX for Dummies Questions & Answers

cpu, memory and virtual memory usage

Hi All, Does anyone know what the best commands in the UNIX command line are for obtaining this info: current CPU usage memory usage virtual memory usage preferably with date and time parameters too? thanks ocelot (4 Replies)
Discussion started by: ocelot
4 Replies

9. HP-UX

How can I get memory usage or anything that show memory used from sar file?

Refer from title: How can i get memory used or anything that can show memory from sar file example on solaris:- we can use sar with option to show memory used at time that sar crontab run. on HP-UX, it not has option to see memory used. But i think it may be have some parameter or some... (1 Reply)
Discussion started by: panithat
1 Replies

10. Programming

Monitor CPU usage and Memory Usage

how can i monitor usages of CPU, Memory, Hard disk etc. under SUN Solaries through a c program or java program i want to store that data into database so i can show it graphically thanks in advance (2 Replies)
Discussion started by: Gajanad Bihani
2 Replies
Login or Register to Ask a Question