Linux Storage Info: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
 
(6 intermediate revisions by the same user not shown)
Line 42: Line 42:


<pre>
<pre>
cat proc/partitions
cat /proc/partitions
</pre>
 
<pre>
major minor  #blocks  name
 
  11        0      57990 sr0
  8        0    8388608 sda
  8        1    1048576 sda1
  8        2    7339008 sda2
  8      16    524288 sdb
253        0    7335936 dm-0
</pre>
</pre>


Line 83: Line 94:
tmpfs /run/user/0 tmpfs rw,seclabel,nosuid,nodev,relatime,size=101648k,mode=700 0 0
tmpfs /run/user/0 tmpfs rw,seclabel,nosuid,nodev,relatime,size=101648k,mode=700 0 0
</pre>
</pre>
=blockdev=
{{Internal|Blockdev|blockdev}}
=lsblk=
Lists information about all available block devices, by reading sysfs file system. It prints information in a tree format:
{{Internal|lsblk|lsblk}}
=XFS Info=
{{Internal|XFS#Info|XFS Info}}
=blkid=
{{Internal|blkid|blkid}}

Latest revision as of 03:04, 7 September 2020

Internal

hdparm

If not installed, install with:

yum install hdparm

Disk information:

hdparm -I /dev/sda

lshw

Execute lshw to get disk information:

lshw -short -C disk

smartctl

If not installed, install with:

yum install smartmontools

Disk information

smartctl -a -i /dev/sda

Disk Partitions Available on the System

cat /proc/partitions
major minor  #blocks  name

  11        0      57990 sr0
   8        0    8388608 sda
   8        1    1048576 sda1
   8        2    7339008 sda2
   8       16     524288 sdb
 253        0    7335936 dm-0

Mounted Filesystem Info

cat /proc/mounts
rootfs / rootfs rw 0 0
sysfs /sys sysfs rw,seclabel,nosuid,nodev,noexec,relatime 0 0
proc /proc proc rw,nosuid,nodev,noexec,relatime 0 0
devtmpfs /dev devtmpfs rw,seclabel,nosuid,size=497496k,nr_inodes=124374,mode=755 0 0
securityfs /sys/kernel/security securityfs rw,nosuid,nodev,noexec,relatime 0 0
tmpfs /dev/shm tmpfs rw,seclabel,nosuid,nodev 0 0
devpts /dev/pts devpts rw,seclabel,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000 0 0
tmpfs /run tmpfs rw,seclabel,nosuid,nodev,mode=755 0 0
tmpfs /sys/fs/cgroup tmpfs ro,seclabel,nosuid,nodev,noexec,mode=755 0 0
cgroup /sys/fs/cgroup/systemd cgroup rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd 0 0
pstore /sys/fs/pstore pstore rw,nosuid,nodev,noexec,relatime 0 0
cgroup /sys/fs/cgroup/perf_event cgroup rw,nosuid,nodev,noexec,relatime,perf_event 0 0
cgroup /sys/fs/cgroup/memory cgroup rw,nosuid,nodev,noexec,relatime,memory 0 0
cgroup /sys/fs/cgroup/cpuset cgroup rw,nosuid,nodev,noexec,relatime,cpuset 0 0
cgroup /sys/fs/cgroup/cpu,cpuacct cgroup rw,nosuid,nodev,noexec,relatime,cpuacct,cpu 0 0
cgroup /sys/fs/cgroup/net_cls,net_prio cgroup rw,nosuid,nodev,noexec,relatime,net_prio,net_cls 0 0
cgroup /sys/fs/cgroup/pids cgroup rw,nosuid,nodev,noexec,relatime,pids 0 0
cgroup /sys/fs/cgroup/devices cgroup rw,nosuid,nodev,noexec,relatime,devices 0 0
cgroup /sys/fs/cgroup/hugetlb cgroup rw,nosuid,nodev,noexec,relatime,hugetlb 0 0
cgroup /sys/fs/cgroup/freezer cgroup rw,nosuid,nodev,noexec,relatime,freezer 0 0
cgroup /sys/fs/cgroup/blkio cgroup rw,nosuid,nodev,noexec,relatime,blkio 0 0
configfs /sys/kernel/config configfs rw,relatime 0 0
/dev/mapper/main_vg-root / xfs rw,seclabel,relatime,attr2,inode64,noquota 0 0
selinuxfs /sys/fs/selinux selinuxfs rw,relatime 0 0
systemd-1 /proc/sys/fs/binfmt_misc autofs rw,relatime,fd=32,pgrp=1,timeout=300,minproto=5,maxproto=5,direct 0 0
debugfs /sys/kernel/debug debugfs rw,relatime 0 0
mqueue /dev/mqueue mqueue rw,seclabel,relatime 0 0
hugetlbfs /dev/hugepages hugetlbfs rw,seclabel,relatime 0 0
/dev/sda1 /boot xfs rw,seclabel,relatime,attr2,inode64,noquota 0 0
tmpfs /run/user/0 tmpfs rw,seclabel,nosuid,nodev,relatime,size=101648k,mode=700 0 0

blockdev

blockdev

lsblk

Lists information about all available block devices, by reading sysfs file system. It prints information in a tree format:

lsblk

XFS Info

XFS Info

blkid

blkid