1.3 Configure and manage storage using appropriate tools Flashcards
fdisk command
Used to create, modify, or delete partitions on a storage device.
-b{sector size} # of drive sectors
-H{heads} # of heads
-S{sectors} # of sectors per track
-s{partition} partition size in blocks
parted command
Used to create, destroy, and resize partitions and runs the GNU Parted utility.
-select
-mkpart
-print
resizepart
partprobe command
Used to update the kernel with changes that now exist within the partition table
systemd.mount
Can be used to create a new mount unit to mount the file system.
/etc/fstab
A system config file that contains info about various file systems and how the system should mount them during boot.
mount
Loads a file system to a specified directory to make it accessible to users and applications.
-exec - allow binaries in file system to be executed
-ro mount fs as read only
Linux Unified Key Setup (LUKS)
Used to encrypt storage devices in a Linux and can standardize the format of encrypted devices.
XFS tools
xfs_info - dislay info about XFS
xfs_admin - change parameters about XFS
xfs_metadump - copy metadata of XFS to a file
xfs_growfs - expand the xfs to fill drive size
xfs_copy - copy contents of XFS to another file location
xfs_repair - repair and recover a corrupt XFS file system
xfs_db - debug XFS file system
Ext4 tools
tune2fs
dumpe2fs
Btrfs tools
I have no clue. lol
df command
Displays info about the file system disk space usage n the mounted file system.
-h{human-readable}
-a{all}
-i{inode}
du command
reports the amount of disk space used by the specified fields and for each subdirectory.
-c{total}
-a{all}
-b{bytes}
-D{deference-args}
pvs command
Displays info about physical volumes.
vgs command
Displays info about volume groups.
lvs command
Displays info about logical volumes.
lvchange command
Changes attributes of the volumes.
lvcreate command
Creates logical volumes in a volume group.
vgcreate command
Creates volume groups.
lvresize command
Resizes logical volumes.
pvcreate command
Initializes a drive or partition to use as a physical volume.
vgextend command
Adds physical volumes to volume groups.
mdadm tool
A tool used to create and manage software-based RAID arrays
/proc/mdstat
Contains a snapshot of the kernel’s RAID/md state
multipathd
Provides redundancy and improved performance for block storage. Configuration file: /etc/multipath.conf
Network File system (NFS)
Used to provide access to directories stored on a server.
SMB/CIFS
File sharing protocol
lsscsi command
Used to list info about SCSI devices connected to a Linux system.
lsblk command
Displays info about block storage devices currently available on the system.
-a{list empty devices}
-r{list devices excluding output devices}
-f{displays additional info}
blkid command
Prints each block device in a flat format and includes some additional information.
fcstat command
Interacts with and displays statistics of Fibre Channel connected devices.