ch5.1 Storage - Partitions, Logical Volumes, and Mounting Systems Flashcards

(82 cards)

1
Q

/proc/mdstat file

A

file that stores RAID info and /md state (I believe md stands for multiple device)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

block devices

A

devices like storage devices and can only be read or written to in blocks of data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

FAT (file system)

A

File Allocation Table is an older file system that’s most often used to maintain compatibility between many different operating systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Ext2 (file system)

A

a native Linux file system, generally regarded as ‘legacy’ but is still supported by current Linux releases

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Ext3 (file system)

A

Linux native and much faster data recovery and better at ensuring data integrity in the event of a sudden system shutdown than Ext2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Ext4 (file system)

A

Linux native and supports very large file systems

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

XFS (file system)

A

a high-performance journaling file system, provides fast recovery, and can also handle large files efficiently

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

BTRFS (file system)

A

Linux native, modern, copy-on-write, fault tolerance, repair, and easy file administration

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

SMB protocol

A

Server Message Block allows users to share access to files and other resources over a LAN, and can also be used as a local file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

CIFS

A

Common Internet File System, a specific implementation of SMB rarely used today

but some Linux distros still use the name CIFS in some tools when referring to SMB

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

NFS

A

Network File System offers similar functionality to SMB, but are not compatible, and in an all Linux environment, NFS provides more functionality, but Windows does not support it by default

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

NTFS

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

inode (index node)

A

object that stores metadat about a file or directory on a given file system like when the file was created/modified and permission/ownership information

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

journaling (in file systems)

A

journaling records changes to files that have not yet been committed to the actual file and allows for fast file system recovery

generally recorded inside the inode

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

VFS

A

Virtual File System is a common software interface that sits between the kernel and the real file system, translating the real file system to the kernel and changes from the kernel back to the real file system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

File System Labels

A

assigned to different file systems by a VFS for identification

ext based file system labels can be modified by the e2label Bash command and XFS based file system labels can be modified by the xfs_admin Bash command

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Primary Partition

A

partition type that contains one file system or logical drive and is sometimes referred to as a volume

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Swap File System

A

partition type that is used as logical RAM to free up physical RAM (but is located on the primary partition)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Extended Partition

A

partition type that contains several file systems, which are referred to as logical drives

does not actually store any files or data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Logical Partition

A

partition type that is allocated as an independent unit and functions as a separate drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

fdisk

A

utility and Bash command used to create, modify, or delete partitions on a storage drive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

fdisk options
-b
-H
-S
-s
-l (lowercase L)

A

-b specify number of drive sectors
-H specify number of drive heads
-S specify number of sectors per track
-s print the partition size in blocks
-l (lowercase L) list partition tables for devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

fdisk internal options
n
d
p
w
q

A

n create new partitions
d remove (delete) partition
p list existing partitions
w write drive changes and exit
q cancel changes and exit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

partprobe

A

Bash command to update the kernel with changes that now exist within the partition table

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
mkfs -v -V
Bash command to build a Linux file system on a device -v verbose output & ongoing -V verbose output but includes all file specific commands as executed
26
mkfs (more options) -t -fs -c -l (lowercase L)
-t specify type of file system to build -fs pass file system specific options to the file system builder -c check the device for bad blocks before building the file system -l print the list of bad blocks from a specified file
27
mkfs syntax options
mkfs [options] [device name] mkfs [file system type] [options] [device name]
28
/etc/fstab file
stores file information about storage devices and partitions and where/how they should be mounted
29
fstab file fields
device or partition name default mount point file system type mount options dump options (used for ) fsck options
30
/etc/crypttab file
stores information on encrypted devices and partitions that need to be unlocked at boot stores similar fields to the /etc/fstab file with the addition of an optional password field
31
Storage Setup Process
1. partition the storage device 2. format the partition with a file system 3. add formatted partition to fstab file
32
/dev
a special file that contains details about all the files and subdirectories housed within it
33
/dev/sda1 name breakdown
sd -> type of device controller a -> first whole drive 1 -> first partition on the a drive
34
/dev/null
a special type of virtual device that discards anything you send or redirect to it.
35
/dev/zero
a special type of virtual device that only returns a null when read from.
36
/dev/urandom
a special type of virtual device that when read, returns a series of psudorandom numbers.
37
DM-multipath
a feature of the kernel that if one path to a device fails, switches to another path that remains, keeping the device available
38
/etc/multipath.conf
configuration file for the DM-multipath
39
mdadm
Bash command used to create and manage software-based RAID arrays
40
/dev/mapper
contains all logical volumes on a given system that are being managed by the logical volume manager
41
RAID 0 (zero)
multiple disks, each storing individual parts of a file, leading to theoretically faster speeds, but no additional fault tolerance.
42
RAID 1
the secondary disk in a RAID 1 array is configured as a mirror, enabling full redundancy. Only makes sense in a two disk system
43
RAID 5
can only be used in 3 or more disks, but combines striping with a parity drive implements more redundancy than RAID 0, but more optimized storage space than RAID 1 the parity bit is also striped across the drives
44
RAID 6
RAID 5 + 1, so everything good about 5, but each file gets double parity bits, so up to any two drives in the system can fail, while keeping access to all files implementation only makes sense with 4 or more disks
45
RAID 10
RAID 1 + 0, or really just a mirrored RAID 0 offers the same speed advantages of a RAID 0 but also the redundancy of a mirrored array theoretically can lose 2 drives with no data loss, but only if they're the correct two also lose 50% of disk space
46
pvscan
physical volume tool that scans for all physical devices being used as physical volumes (Bash command?)
47
pvcreate
physical volume tool that initializes a drive or partition to use as a physical volume
48
pvdisplay
physical volume tool that lists attributes of physical drives
49
pvchange
physical volume tool that changes attributes of a physical volume
50
pvs
physical volume tool that displays information about physical volumes
51
pvck
physical volume tool that checks the metadata of physical volumes
52
pvremove
physical volume tool that removes physical volumes
53
vgscan
volume group tool that scans all physical devices for volume groups
54
vgcreate
volume group tool that creates volume groups
55
vgdisplay
volume group tool that lists attributes of volume groups
56
vgchange
volume group tool that changes the attributes of volume groups
57
vgs
volume group tool that displays information about volume groups
58
vgck
volume group tool that checks the metadata of volume groups
59
vgrename
volume group tool that renames a volume group
60
vgreduce
volume group tool that removes physical volumes from a group to reduce its size
61
vgextend
volume group tool that adds physical volumes to volume groups
62
vgmerge
volume group tool that merges two volume groups
63
vgsplit
volume group tool that splits a volume group into two
64
vgremove
volume group tool that removes volume groups
65
lvscan
logical volume tool that scans all physical devices for logical volumes
66
lvcreate
logical volume tool that creates logical volumes in a volume group
67
lvdisplay
logical volume tool that lists attributes of the volumes
68
lvchange
logical volume tool that changes attributes of the volumes
69
lvs
logical volume tool that displays information about logical volumes
70
lvrename
logical volume tool that renames logical volumes
71
lvreduce
logical volume tool that reduces the size of logical volumes
72
lvextend
logical volume tool that extends the size of logical volumes
73
lvresize
logical volume tool that resizes logical volumes
74
lvremove
logical volume tool that removes logical volumes
75
Mount Point
an access point that is typically an empty directory where a file system is loaded or mounted, to make it accessible to users
76
mount
Bash command to load a file system to a specified directory to make it accessible to users and applications syntax: mount [options] [device name] [mount point]
77
mount command options
help?
78
Binary
a source code that is compiled into an executable program
79
unmount
Bash command to disassociate a mounted file system from the directory syntax: unmount [options] [mount point]
80
unmount options -f -l -R -t -O (capital letter) -fake
-f force unmount a file system -l perform a lazy unmount -R recursively unmount specified directory mount points -t [file system type] unmount only the file system types specified -O unmount only the file systems with specified options in /etc/fstab file -fake test the unmounting procedure
81
systemd.mount
secondary way to mount a file system checks text files in the /etc/systemd/system directory for text config files for additional mount points
82
Filesystem in USErspace (FUSE)
Lets non-privileged users create own file systems without editing the underlying kernel code