Shared Flashcard Set

Details

rhel 5 training guide ch 13
Disk Partitioning
44
Computer Science
Professional
11/10/2010

Additional Computer Science Flashcards

 


 

Cards

Term
how many disks and the basic information about the disks
Definition
fdisk -l
Term
fdisk sda
Definition
fdisk /dev/sda
Term
force the kernel to re-read the updated partition table information
Definition
partprobe
Term
menu driven program to partition a disk
Definition
parted
Term
print the disk information on sdc, use parted
Definition
parted /dev/sdc print
Term
RAID 0 - name the two types of RAID 0
Definition
Concatenation, and Striping
Term
Advantage of RAID 0
Definition
When stripping is used the reads and writes alternate and the speed is increased.
Term
Disadvantage of RAID 0
Definition
More likely to fail, any single failure sinks the ship
Term
RAID 1
Definition
Mirroring, Twice the disks, but better read performance and protection from a single drive failure
Term
RAID 5, how much disk space stores the parity information
Definition
25%
Term
4 1TB disks in a RAID5 array, how much space is available on the volume
Definition
3TB
Term
Least number of disks for RAID5
Definition
3
Term
Least number of disks for RAID6
Definition
4
Term
command to create a software RAID1 array from sdb1 and sdc1. Call the array md0
Definition
mdadm -vC /dev/md0 -n=2 /dev/sdb1 /dev/sdc1 -l=1
Term
mdadm switch to create a new array and verbose
Definition
mdadm -vC
Term
mdadm -vC /dev/md0 -n=2 /dev/sdb1 /dev/sdc1 -l=1
Break that down
Definition
mdadm - softRAID admin
-vC - verbose create
/dev/md0 - new RAID device md0
-n=2 two block devices to use for this array
-l=1 - RAID level 1
Term
check the details of an array - two answers
Definition
mdadm -D md0
cat /proc/mdstat
Term
make a RAID5 array with 4 drives
Definition
mdadm -vC /dev/md1 -n=4 /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 -l=5
Term
mark a drive (sdb1) as bad in array md1
Definition
mdadm /dev/md1 -f /dev/sdb1
Term
remove sdb1 from array md1
Definition
mdadm /dev/md1 -r /dev/sdb1
Term
you just removed a drive from the array md1, confirm that the command worked
Definition
mdadm -D /dev/md1
Term
add a formatted drive sdb1 to array md1
Definition
mdadm /dev/md1 -a /dev/sdb1
Term
you have a running array, delete it
Definition
mdadm -vS /dev/md0
stop it
mdadm -vr /dev/md0
remove it
Term
view the physical volume
Definition
pvs
Term
view the volume group
Definition
vgs
Term
What is the physical extent
Definition
It is like block size, but since this is a volume group the physical extent is then mapped to a logical extent, it is the mappings that make one volume out of several partitions, default is 4MB
Term
view the logical volumes
Definition
vls
Term
what is the partition type that is used for a physical volume
Definition
Linux LVM
Term
initialize sdb to use it for a physical volume
Definition
pvcreate /dev/sdb
Term
create a volume group with the disk sdb and the partition sdc1, both have already been initialized
Definition
vgcreate VolGroup01 /dev/sdb /dev/sdc1
Term
show the volume VolGroup01
Definition
vgdisplay -v VolGroup01
Term
look at the physical volume sdb that is in VolGroup01
Definition
pvdisplay /dev/sdb
Term
create a logical volume in the volume group VolGroup01. Make it 20GB
Definition
lvcreate -L 20000 VolGroup01
Term
extend a volume VolGroup01 using a new disk sdd
Definition
Initialize disk:
pvcreate /dev/sdd
vgextend VolGroup01 /dev/sdd
Term
Make the logical volume lvol0 larger by 5GB
Definition
lvextend -L 5000 /dev/VolGroup01/lvol0
Term
make a logical volume in VolGroup01 named VideoVol that is 50GB
Definition
lvcreate -L 50000 -n VideoVol VolGroup01
Term
Where can you look at the files that have the volume information stored
Definition
/etc/lvm/backup
Term
the three commands that can change the size of a volume
Definition
lvresize
lvextend
lvreduce
Term
command to change a volume's name
Definition
lvrename
Term
change the name of lvol0 to posvol1
Definition
lvrename /dev/VolGroup01/lvolo /dev/VolGroup01/posvol1
Term
remove lvol0
Definition
lvremove /dev/VolGroup01/lvol0
Term
you want to remove a device from the volume group, what is the first step
Definition
move the data in the PEs to other available PEs
pvmove /dev/sdc1
Term
remove a physical volume sdc1 from a volume group
Definition
vgreduce VolGroup01 /dev/sdc1
Term
remove the volume group VolGroup01
Definition
vgremove -f VolGroup01
Supporting users have an ad free experience!