Download de presentatie
De presentatie wordt gedownload. Even geduld aub
GepubliceerdNele Hendrickx Laatst gewijzigd meer dan 8 jaar geleden
1
LPI 2010 NLLGG Trainer: Jeroen van Pelt Bijeenkomst 5: Hardware en het opzetten van Filesystemen 17.4.2010
2
Terugblik bijeenkomst 4 101.1 Determine and configure hardware settings 104.1 Create partitions and filesystems 104.2 Maintain the integrity of filesystems Afronding en huiswerk Agenda
3
Candidates should be able to determine and configure fundamental system hardware. Key Knowledge Areas Enable and disable integrated peripherals. Configure systems with or without external peripherals such as keyboards. Differentiate between the various types of mass storage devices. Set the correct hardware ID for different devices, especially the boot device. Know the differences between coldplug and hotplug devices. Determine hardware resources for devices. Tools and utilities to list various hardware information (e.g. lsusb, lspci, etc.) Tools and utilities to manipulate USB devices Conceptual understanding of sysfs, udev, hald, dbus Boek: 13.1-13.2-13.3 LPI 101.1 Determine and configure hardware settings
4
Geheugenbeheer Procesbeheer Communicatie met device drivers Communicatie met bestandssystemen Communicatie met de shell Taken van de kernel
5
Fysiek + logisch (Swap) = virtueel geheugen Adresruimte Gebruik code door meerdere processen Geheugenbeheer
6
pstree System-calls Signals SIGSTOP SIGKILL Communicatie tussen processen: Message queues (named pipes) Semaphores Shared memory Procesbeheer
7
Communicatie met apparaten Apparaatbestanden (udev) Major/minor nummer (/dev; mknod) Drie typen Character (zonder buffer) Block (512/1024 bytes blocks) Network (netwerksubsysteem) Device drivers
8
lsmod modprobe (-v / -r) modinfo Configuratie opties: /etc/modprobe.conf /etc/modprobe.d Beheer van afhankelijkheden depmod modules.dep Kernel modules
9
http://en.wikipedia.org/wiki/Modprobe http://en.wikipedia.org/wiki/Modprobe alias Alternatieve naam install Voer shell script uit bij laden remove Voer shell script uit bij verwijderen include Neem aanvullende configbestanden mee blacklist Gebruik de interne aliasnamen niet Modprobe.conf
10
/proc/sys debug dev fs kernel net vm Aanpassen echo /proc/sys/ sysctl Aanpassen van kernel parameters
11
Oefenen
12
Candidates should be able to configure disk partitions and then create filesystems on media such as hard disks. This includes the handling of swap partitions. Key Knowledge Areas Use various mkfs commands to set up partitions and create various filesystems such as: ext2 ext3 xfs reiserfs v3 vfat Boek: 5.1-5.2 LPI 104.1 Create partitions and filesystems
13
Apparaatbestanden /dev/hda /dev/sda Filesystemlabel mkfs -t ext3 –L mijnlabel /dev/sda2 tune2fs –L mijnlabel /dev/sda2 LABEL=mijnlabel i.p.v. /dev/sda2 Udev apparaatnamen /dev/disk Adresseren van opslag
14
fdisk Oefenen op aparte schijf/USB stick Partities beheren
15
mkfs [options] -t [fstype] device [blocksize] Common options: -t: fstype:File system type. -c :Check the device for bad blocks before building the filesystem. Examples: mkfs -t msdos /dev/fd0 Bestandssystemen aanmaken
16
mke2fs [options] device [blocksize] Common options: -b: Specify the block sizefstype: File system type. -c : Check the device for bad blocks before building the filesystem. -j: Create the filesystem with an ext3 journal. -L: Set the volume label for the filesystem. Examples: mkefs -b 2048 /dev/fd0 -L floppy Extended bestandssystemen
17
du [options] [files...] Common options: -a: All files not just directories -b: Print size in bytes -c: Total -h: Human readable format. (1K, 20M,...) Examples: du -ch /home/jeroen du – disk usage
18
df [options] [files...] Common options: -a: All included filesystems with 0 blocks. -t: Limit listing to a filesystem type. -h: Human readable format. (1K, 20M,...) Examples df -t ext2 -h df – filesystem disk space
19
Candidates should be able to maintain a standard filesystem, as well as the extra data associated with a journaling filesystem. Key Knowledge Areas Verify the integrity of filesystems. Monitor free space and inodes. Repair simple filesystem problems. Boek: 5.4 LPI 104.2 Maintain the integrity of filesystems
20
fsck [options] -t [fstype] device [fsck-options] Common options: -A: Check all filesystems in fstab Common fsck-options: -a: Automatically repair. -r: Interactively repair. Example: fsck -t msdos /dev/fd0 -a fsck -t reiserfs /dev/hda2 -r Integriteit van bestandssysteem
21
e2fsck [options] device Common options: -b: Use an alternate super block filename. -c: Run badblocks program and mark allbad blocks. -f: Force checking even if the filesystem seems clean. -a or -p: Automatically repair. -y: Non-interactive mode Examples: e2fsck -ay /dev/fd0 e2fsck -f /dev/hda2 Extended bestandssystemen checken
22
debugfs device Common commands: Help:Give an help on all the command available. Stats: Give a statitstics of the media. Stat file:Give a statistic of the file on the media. logdump: Dump the journal's media into a file Filesystem debug
23
dumpe2fs [options] device Common options: -b: print the bad blocks of the filesystem. -h: Display only the superblock information. Examples: dumpe2fs -h /dev/fd0 Dump ext filesysteminfo
24
tune2fs [options] device Common options: -i#: Interval between filesystem checks [d|m|w]. -l: List the contents of the filesystem superblock. -L: Set the volume label of the filesystem. Examples: tune2fs -L floppy /dev/fd0 Tune extended filesystems
25
xfs_check xfs_repair XFS analyseren en beheren
26
“Gebruikers, permissies, procesbeheer” Lees in boek: 6.1: Aanmaken van gebruikersaccounts (p165-168) 6.6: Werken met quota (p180-185) 7.1: Eigenaars (p199-202) 7.2: Werken standaard permissies: read, write, execute (p202-204) 9.1: Linux-processen begrijpen (p235-237) 9.2: Procesmonitoring (p238-249) 9.3: Processen beheren (p249-252) Herhaal de opdrachten van bijeenkomst 5 Huiswerk: 1.5.2010
Verwante presentaties
© 2024 SlidePlayer.nl Inc.
All rights reserved.