Tag Archives: Filesystem Size Used Avail Use Mounted

Reduce system inode count

By rupeshkp728

I have lots of space on my system.

Code:

linux-e30c:~ # df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 41G 3.4G 35G 9% /
/dev/sda3 91G 36G 51G 42% /home
/dev/sda2 99G 3.4G 91G 4% /usr


But still somehow the inode count has almost finished up and some times I am not able to create files.

Code:

linux-e30c:~ # df -ih
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda1 2.6M 2.6M 12K 100% /
/dev/sda3 5.8M 109K 5.7M 2% /home
/dev/sda2 6.3M 143K 6.2M 3% /usr


I tried deleting many files especially of small sizes.
Is there any way(other then to format the sda1) out of this issue to decrease the inode count?

From: http://www.unix.com/unix-dummies-questions-answers/220989-reduce-system-inode-count.html

Trouble with .tar creation over NFS mount

By ikn3

Hello,

I am trying to backup a directory to an NFS mount. But after mounting the “tar” command is failing.

1. Created folder for mount point: test1
2. Mounted desired mount:
[root@server_name1 ~]# mount -t nfs server_name2:/backup/WMSAPP_backup -w /test1/
[root@server_name1 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVolRoot
19G 14G 4.1G 78% /
/dev/mapper/VolGroup00-LogVolTmp
9.5G 3.9G 5.1G 44% /tmp
/dev/mapper/VolGroup00-LogVolVar
4.8G 574M 4.0G 13% /var
/dev/mapper/VolGroup00-LogVolApps
99G 14G 81G 15% /apps/scope
/dev/sda1 996M 41M 904M 5% /boot
tmpfs 7.9G 0 7.9G 0% /dev/shm
server_name2:/backup/WMSAPP_backup
1008G 80G 878G 9% /test1

[root@servera-name1 ~]# tar cvf /test1/app_scope.tar /apps/scope/
tar: /test1/app_scope.tar: Cannot open: Permission denied

tar: Error is not recoverable: exiting now

A. Is there a different way of mounting where we can pass credentials. I read somewhere that we do not need credentials to mount as NFS.

B. Is there a different tar option that we can use…

THanks in advance for help.

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Increase Font size

By vasuibm

Hi friends

I want increase font size in linux can anybody help me plese

Example:this is my in put
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 18G 2.5G 14G 15% /
/dev/sda2 99M 11M 83M 12% /boot
tmpfs 506M 0 506M 0% /dev/shm

I want output like this

Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 18G 2.5G 14G 15% /
/dev/sda2 99M 11M 83M 12% /boot
tmpfs 506M 0 506M 0%/dev/shm

I want increase size of Headers only
File system Size Used Avail Use% Mounted on

Advance Thanks To alll…….

…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Rsync size descrepancies

By westmoreland

I’m using rsync to transfer data from one system (nfs01) to another (nfs02) but I’m seeing 28GB more data on the target than what’s on the source. The source and target filesystems are both 138 GB. The source shows 100GB used and after running rsync the target shows 128 GB used. Shouldn’t they be the same? As you can see below, three subfolders on the target system are each about 10GB larger than the source. I’m cluless, any help would be appreciated.

I’m running this rsync command on the target system (nfs02):

Code:

rsync -avr --delete root@nfs01r5v.lamar.edu:/bannertreedev/ /bannertreedev/


The source:

Quote:

[root@nfs01r5v ~]# df -h
Filesystem Size Used Avail Use% Mounted on
242G 14G 216G 7% /lu99
/dev/mapper/vg–bantreeDEV-lv–bantreeDEV
138G 100G 32G 77% /bannertreedev
/dev/mapper/vg–bantreePRD-lv–bantreePRD
138G 22G 109G 17% /bannertreeprd

[root@nfs01r5v ~]# du -sch /bannertreedev/*
269M /bannertreedev/bannerOH
1.3G /bannertreedev/bookshelf
36G /bannertreedev/BT
32K /bannertreedev/config
28G /bannertreedev/LI
16K /bannertreedev/lost+found
36G /bannertreedev/RG


The Target:

Quote:

[root@nfs02r5v ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup_BannerTreeDev-LogVol_BannerTreeDev
138G 128G 3.5G 98% /bannertreedev

[root@nfs02r5v ~]# du -sch /bannertreedev/*
269M /bannertreedev/bannerOH
1.3G /bannertreedev/bookshelf
45G /bannertreedev/BT
32K /bannertreedev/config
38G /bannertreedev/LI
8.0K /bannertreedev/lost+found
45G /bannertreedev/RG
128G total


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

Print header and some lines

By netdbaind

HI ,

i have to print the first header of df -h (Filesystem Size Used Avail Use% Mounted on)and line which conatin size Network path only.


Filesystem Size Used Avail Use% Mounted on
/test/sda3 35G 1.8G 32G 6% /
/test/sda10 7.8G 1.1G 6.3G 15% /usr
/test/sda12 3.9G 73M 3.7G 2% /usr/local
/test/sda9 7.8G 329M 7.1G 5% /var
/test/sda8 7.8G 3.6G 3.9G 49% /opt
/test/sda7 16G 1.4G 14G 10% /tmp
4.0T 523G 3.5T 13% /Network/Test


…read more
Source: FULL ARTICLE at The UNIX and Linux Forums

LVM Memory Usage

By ikn3

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?

# 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

Source: FULL ARTICLE at The UNIX and Linux Forums

Check disk space

By karthikeayan

I am trying a script which will alert if disk space crosses some threshold, i googled it and got some scripts already, but they are not working with my server.

The problem is, my filesystem names are big, so the sizes are moving to the second line. just like below

any ideas? thanks in advance

user@host:/ta/folder/folder/tmp> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/folder/folder/folder
18G 3.1G 14G 19% /
devtmpfs 32G 136K 32G 1% /dev
tmpfs 32G 0 32G 0% /dev/shm
/dev/folder/folder 99M 50M 45M 53% /boot
/dev/folder/folder
4.0G 2.1G 1.7G 56% /tk

Source: FULL ARTICLE at The UNIX and Linux Forums

Help with new disk but don't know how to add

By samnyc

Hi,

This Linux server is a VM, on the VMware, I added new disk for this system. I was not able to see the new disk. I did try the scan command but didn’t work. I then rebooted the system. Now when I do

Code:


fdisk -l
Disk /dev/sda: 161.0 GB, 161061273600 bytes
255 heads, 63 sectors/track, 19581 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 268 2048287+ 82 Linux swap / Solaris
/dev/sda3 269 19581 155131672+ 83 Linux


On the Vmware, I added another disk for 150 Gig.

Here is the output from df -h

Code:


df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda3 144G 135G 1.9G 99% /
/dev/sda1 99M 26M 68M 28% /boot
tmpfs 942M 0 942M 0% /dev/shm


where is my new disk? how do I add that.

Source: FULL ARTICLE at The UNIX and Linux Forums