Presentation is loading. Please wait.

Presentation is loading. Please wait.

Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University.

Similar presentations


Presentation on theme: "Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University."— Presentation transcript:

1 Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University

2 Section Overview Devices and Files Drives and Partitions Filesystem Management Network Filesystems

3 References CQU 85321 System Administration Course Textbook   Chapter 11 Chapter 11 Lectures   2002 #10 2002 #10

4 Kinds of Devices Physical Devices Actual hardware Examples  Hard Drives, CDROMs, Floppy  Network cards and modems Logical Devices Pseudo devices Examples  Virtual Terminals  Network Ports

5 Interrupt Handling User Supervisor SystemCall Interrupt Vector 0 Interrupt Vector n-1 Interrupt Vector n Interrupt Handler n Interrupt vector table Memory Trap n

6 Device Drivers and Files Device drivers Software to control hardware Compiled into the kernel Dynamically loaded module Device files Located in /dev Provide application access to device Driver must also be present to use

7 Making Device Files mknod filename type major minor filename: Name of the device file Type “c” – Character Device “b” – Block Device Major Number: Type of device driver Minor Number: Instance (which one) /dev/MAKEDEV : Creation program

8 Disk Geometry Tracks Sectors Read/write Heads Cylinders Partitions Platters

9 Common Disk Types SCSI Many cable types SATA (IDE Family) SAS Fibre Channel High Bandwidth Solid State Devices (SSD) Universal Serial Bus (USB) Removable Media

10 UNIX Filesystems Defines how data is stored on drives Multiple types of filesystems supported Boot Block (1 st block) Stores the bootstrap loader program Superblock (2 nd block) Copies scattered throughout the partition Stores information about the partition  Partition Size  Type of File system  Block Size  Size & Location of inode tables  Free Block list

11 Filesystems and Partitions / (root) binvarusretchomescottbobalicebinsbinlocallibmanlibsrcsharebin

12 SuperBlockGroupDescriptors Ext2/3/4 File Systems BootBlock Block Group DataBitmapInodeBitmapInodeTablesDataBlocks

13 NTFS File System BootBlock Master File Table (MFT) SystemFiles File Area StandardInformationFile/DirNameSecurityDescriptor Data or Index Source: http://technet.microsoft.com/en-us/library/cc750198.aspx

14 Why Partition? Not enough space on one disk Separation of data Read-only areas Spool areas and free space OS upgrades Backups Performance

15 Virtual File System User Process Device Driver NTFSISO9660Ext3 System call Interface VFS Buffer Cache Kernel

16 Managing Filesystems Creating a new filesystem Similar to DOS format mkfs – creates a filesystem (many aliases) mount – mount a partition Mount point must exist (directory) /etc/fstab umount – Unmount a partition fsck Check/fix filesystem errors Journaling filesystems Quotas?

17 RAID Storage Redundant Array of Independent (Inexpensive) Drives Level 0 – Data Blocks spread across 2 or more drives (striping). No fault tolerance Level 1 – Each disk copied (mirrored) to another disk Level 0+1 – Each drive with striped data is mirrored Level 5 – Data and fault tolerance (parity) striped across disks Level 6 – Same as level 5 but with 2 parity disks

18 RAID 0 Usable Storage? All Performance? Read and Write Improvement No Fault Tolerance Source: http://www.prepressure.com/library/technology/raid

19 RAID 1 Usable Storage? ½ available Performance Improvement Read Fault Tolerant Source: http://www.prepressure.com/library/technology/raid

20 Raid 10 Storage Usage? ½ Available Performance Read and Write Fault Tolerant RAID 0+1 Source: http://www.prepressure.com/library/technology/raid

21 RAID 5 Need at least 3 Disks Usable Storage N – 1 (Disks) Performance Improvement Read Hot Spare(s) Source: http://www.prepressure.com/library/technology/raid

22 RAID 6 Need 4+ Disks Usable Storage: N -2 (Disks) Performance Improvement: Read Fault Tolerant Hot spare(s) Source: http://en.wikipedia.org/wiki/Standard_RAID_levels

23 Logical Volume Management Physical Volume 20GB 36GB 34GB/boot2GBext3 Logical Volume Group 90GB Logical Volume /home50GB /25GB Free Space 15GB

24 Network Filesystems Filesystems shared via NFS Client-side: similar to local mount Server – exports shared filesystems mountd and nfsd /etc/exports and exportfs Access permissions should be selective showmount –e CIFS – Microsoft filesystem sharing Samba – CIFS support for Linux/MAC

25 Printer Connections Local Parallel USB Remote/Shared Network

26 Printing Languages PCL (Hewlett Packard) Postscript (Adobe) PDF (Adobe) XHTML

27 CUPS Client/Server Application cupsd – CUPS Server cupsd.conf printers.conf classes.conf Web Administration – Port 631

28 Printer Configuration Printer Name Connection info Local (LPT, Serial, etc.) Network (lpd, JetDirect/Socket, HTTP) Shared (SMB) Device Driver or PPDs

29 Print Commands Printing lpr –P mpage –P Queue Status : lpq –P Status: lpstat –t Configuratation: lpadmin cupsenable/cupsdisable accept/reject

30 Windows Printer Management “Devices and Printers” Add Printer Wizard Name Connection (Local or Address/Port) Device Make and Model Printer Sharing


Download ppt "Device and Filesystem Management CSCI N321 – System and Network Administration Copyright © 2000, 2012 by Scott Orr and the Trustees of Indiana University."

Similar presentations


Ads by Google