disk Flashcards
what commands are used to see who is using files?
lsof
fuser
what are the fields in /etc/fstab
device (/dev/VolGroup00/……)
mount point directory ( “ / “ )
file system type ( “ext3” )
options for mounting ( ro or rw [default] noatime )
dump flag for backups
used by fsck flag for checking (order for checks to be done)
what does fsck actually do?
finds out what file system type is being checked and then runs that diagnostic program.
for ext2 type it runs fsck.ext2 tool
what if fsck fails to fix things?
run it a second time and accept all the defaults.. It usually fixes everything on it’s own.
if it does turn up errors on the second run, it is usually a hardware failure.
how do you show all the disk partitions?
fdisk -l
how do you bring up the interactive interface for fdisk?
fdisk /dev/sda
(as in “a” the first disk drive in the machine )
this will list all the current partitions and show the start and end points of the block used for each partition.
what is the overall outline for setting up a new volume with disk drives and partitions?
create partitions on the drive with fdisk
create a physical volume using pvdisplay and pvcreate
use vgdisplay to show the current volumes
use vgextend to tack on the new volume to add the the existing volume group
use vgdisplay to show volumes
use lvcreate to create a new volume group
what gui tool can be used to manage disk volumes?
system-config-lvm