Redhat:Filesystems current

From Define Wiki
Revision as of 14:06, 6 September 2013 by Michael (talk | contribs) (→‎lsblk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Check the Current File Systems

An administrator must start file system management by knowing what the current state is. There are commands available to check this: lsblk, mount and df.

df

The df command lists the total space, free space and used space on the currently mounted file systems.

Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/md0              10320116   7218856   2577028  74% /
tmpfs                 18503536         0  18503536   0% /dev/shm
/dev/sdb1               495844     36701    433543   8% /boot
/dev/md1              32250784  18925352  11687188  62% /depot
/dev/md4             3660773536 2845391048 629425880  82% /home
/dev/md2             100788656  70242472  25426340  74% /var
10.0.0.220:/Software 786300928 780402224   5898704 100% /mnt/storage1
10.0.0.220:/jph      786300928 780402176   5898752 100% /mnt/jph

mount

The mount command lists all of the mounted file systems, the format type and their mount points.

/dev/md0 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw)
/dev/sdb1 on /boot type ext4 (rw)
/dev/md1 on /depot type ext4 (rw)
/dev/md4 on /home type ext4 (rw)
/dev/md2 on /var type ext4 (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)
nfsd on /proc/fs/nfsd type nfsd (rw)
10.0.0.220:/Software on /mnt/storage1 type cifs (rw)
10.0.0.220:/jph on /mnt/jph type nfs (rw,addr=10.0.0.220)

lsblk

List the block devices on the system

NAME    MAJ:MIN RM   SIZE RO TYPE  MOUNTPOINT
sr0      11:0    1   2.5G  0 rom
sdb       8:16   0   1.8T  0 disk
ââsdb1    8:17   0   500M  0 part  /boot
ââsdb2    8:18   0    10G  0 part
â ââmd0   9:0    0    10G  0 raid1 /
ââsdb3    8:19   0  15.6G  0 part
â ââmd1   9:1    0  31.3G  0 raid5 /depot
ââsdb4    8:20   0     1K  0 part
ââsdb5    8:21   0  48.8G  0 part
â ââmd2   9:2    0  97.7G  0 raid5 /var
ââsdb6    8:22   0  14.7G  0 part
â ââmd3   9:3    0  29.3G  0 raid5 [SWAP]
ââsdb7    8:23   0   1.7T  0 part
  ââmd4   9:4    0   3.5T  0 raid5 /home