disk Flashcards

1
Q

what commands are used to see who is using files?

A

lsof

fuser

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

what are the fields in /etc/fstab

A

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)

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

what does fsck actually do?

A

finds out what file system type is being checked and then runs that diagnostic program.

for ext2 type it runs fsck.ext2 tool

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

what if fsck fails to fix things?

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

how do you show all the disk partitions?

A

fdisk -l

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

how do you bring up the interactive interface for fdisk?

A

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.

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

what is the overall outline for setting up a new volume with disk drives and partitions?

A

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

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

what gui tool can be used to manage disk volumes?

A

system-config-lvm

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