Eninam - Learning - Chapter 04 Storage
Eninam - Learning - Chapter 04 Storage
Disks
/dev/sda A hard disk that uses the SCSI driver. Used for SCSI and SATA disk
devices. Common on physical
servers but also in VMware virtual machines.
/dev/hda The (legacy) IDE disk device type. You will seldom see this device type on
modern computers.
/dev/vda A disk in a KVM virtual machine that uses the virtio disk driver. This is the
common disk device type
for KVM virtual machines.
/dev/xvda A disk in a Xen virtual machine that uses the Xen virtual disk driver. You
see this when installing
RHEL as a virtual machine in Xen. RHEL 7
cannot be used as a Xen hypervisor, but you might see RHEL 7
virtual
machines on top of the Xen hypervisor using these disk types.
/dev/nvme
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 1/8
28/07/2022 18:03 Eninam - Learning
As you can see, all disk device names end with the letter a. That is
because it is the first disk that was found in
your server. The second SCSI disk, for
instance, would have the name /dev/sdb. If many disks are installed in
a server, you
can have up to /dev/sdz and even beyond. After /dev/sdz, the kernel continues creating
devices
with names like /dev/sdaa and /dev/sdab.
Partitions
Partitions Creation
Example
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 2/8
28/07/2022 18:03 Eninam - Learning
Commands
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 3/8
28/07/2022 18:03 Eninam - Learning
[root@redhat ~]# blkid The blkid command gives an overview of existing partitions with a file system on them
and the UUID of the filesystem, as well as the file system used to format the partition.
/run/media/user/label
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 4/8
28/07/2022 18:03 Eninam - Learning
Clone Device
Volumes
Volume is a disk partition formated with a filesystem .
Before using a disk partition to store files, we must :
1. format it (filesystem)
2. mount it in a directory
Format Partition
Syntax
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 5/8
28/07/2022 18:03 Eninam - Learning
Mount a Volume
Volume Settings
UUID
LABEL
[root@redhat ~]# e2label partition label : Make label for an EXT Volume
[root@redhat ~]# xfs_admin -L label partition-file : Make label for an XFS Volume
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 6/8
28/07/2022 18:03 Eninam - Learning
Volumes Automounting
We need to configure /etc/fstab file to automount a Volume (Automatically mount when System boots)
Files
Disk Utilities
fdisk
gdisk
parted
patprobe
Files
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 7/8
28/07/2022 18:03 Eninam - Learning
www.learning.bg/DOC/REDHAT/index.php?chap=01/04 8/8