Part II. disk management

Table of Contents

5. disk devices
terminology
platter, head, track, cylinder, sector
ide or scsi
ata
scsi
block device
solid state drive
device naming
ata (ide) device naming
scsi device naming
discovering disk devices
fdisk
dmesg
/sbin/lshw
/sbin/lsscsi
/proc/scsi/scsi
erasing a hard disk
advanced hard disk settings
practice: hard disk devices
solution: hard disk devices
6. disk partitions
about partitions
primary, extended and logical
partition naming
discovering partitions
fdisk -l
/proc/partitions
parted and others
partitioning new disks
recognising the disk
opening the disk with fdisk
empty partition table
create a new partition
display the new partition
about the partition table
master boot record
partprobe
logical drives
GUID partition table
labeling with parted
partitioning with parted
practice: partitions
solution: partitions
7. file systems
about file systems
man fs
/proc/filesystems
/etc/filesystems
common file systems
ext2 and ext3
creating ext2 and ext3
ext4
xfs
vfat
iso 9660
udf
swap
gfs
and more...
/proc/filesystems
putting a file system on a partition
tuning a file system
checking a file system
practice: file systems
solution: file systems
8. mounting
mounting local file systems
mkdir
mount
/etc/filesystems
/proc/filesystems
umount
displaying mounted file systems
mount
/proc/mounts
/etc/mtab
df
df -h
du
from start to finish
permanent mounts
/etc/fstab
mount /mountpoint
securing mounts
ro
noexec
nosuid
noacl
mounting remote file systems
smb/cifs
nfs
nfs specific mount options
practice: mounting file systems
solution: mounting file systems
9. troubleshooting tools
lsof
fuser
chroot
iostat
iotop
vmstat
practice: troubleshooting tools
solution: troubleshooting tools
10. introduction to uuid's
about unique objects
tune2fs
uuid
uuid in /etc/fstab
uuid as a boot device
practice: uuid and filesystems
solution: uuid and filesystems
11. introduction to raid
hardware or software
raid levels
raid 0
jbod
raid 1
raid 2, 3 and 4 ?
raid 5
raid 6
raid 0+1
raid 1+0
raid 50
many others
building a software raid5 array
do we have three disks?
fd partition type
verify all three partitions
create the raid5
/proc/mdstat
mdadm --detail
removing a software raid
further reading
practice: raid
solution: raid
12. logical volume management
introduction to lvm
problems with standard partitions
solution with lvm
lvm terminology
physical volume (pv)
volume group (vg)
logical volume (lv)
example: using lvm
example: extend a logical volume
example: resize a physical Volume
example: mirror a logical volume
example: snapshot a logical volume
verifying existing physical volumes
lvmdiskscan
pvs
pvscan
pvdisplay
verifying existing volume groups
vgs
vgscan
vgdisplay
verifying existing logical volumes
lvs
lvscan
lvdisplay
manage physical volumes
pvcreate
pvremove
pvresize
pvchange
pvmove
manage volume groups
vgcreate
vgextend
vgremove
vgreduce
vgchange
vgmerge
manage logical volumes
lvcreate
lvremove
lvextend
lvrename
practice : lvm
solution : lvm
13. iSCSI devices
iSCSI terminology
iSCSI Target in RHEL/CentOS
iSCSI Initiator in RHEL/CentOS
iSCSI target on Debian
iSCSI target setup with dd files
ISCSI initiator on ubuntu
using iSCSI devices
iSCSI Target RHEL7/CentOS7
iSCSI Initiator RHEL7/CentOS7
practice: iSCSI devices
solution: iSCSI devices
14. introduction to multipathing
install multipath
configure multipath
network
start multipathd and iscsi
multipath list
using the device
practice: multipathing
solution: multipathing