Network Servers Lecture 2 Notes
Network Servers Lecture 2 Notes
HARDWARE CONFIGURATION
— PC hardware: PCI bus, RS-232 serial ports, USB, sound cards, video cards, IDE/ATA and SCSI disks
— PCI (PCI-e, Express) = Peripheral Component Interconnect
o Modern way of connecting peripherals to PCs
o PnP built-in
o lspci — lists PCI devices
— USB = Universal Serial Bus (1.0, 1.1, 2.0, 3.0, 3.1, 3.2, 4)
o USB 1.1 = 12Mbps, USB 2.0 = 480Mbps , USB 4 = 40Gbps
o udev (config in /etc/udev; man udev)
o #a device manager for Linux kernel. It runs as a daemon on a Linux system and listens (via
netlink socket) to uevents the kernel sends out if a new device is initialised or a device is removed
from the system
IDE/ATA/ATAPI disks
LEARNING ABOUT THE KERNEL & MODULES
— Can dedicate an entire computer to one role or install multiple server roles on a single computer
— Each role has 1 or more services associated with it
— Server Manager is the tool used to install, configure, and remove Server Roles
— Features provide auxiliary or supporting functions to servers
— Typically, administrators add features to add functionality of installed roles
TYPICAL ROLES
— Why partition?
o Different filesystem types for different partitions
o Better disk space management
o Multi-OS support
— Auto partition
o Typically 3 partitions - /boot, / , swap
o Root partition managed by LVM (Logical Volume Manager)
— Logical Volume Manager (LVM)
o Traditional way cannot support extension, copy, and delete
o Aggregate multiple physical drive/partitions into virtual volumes
o Easy to add, remove, expand, and shrink partitions
WHAT NOT TO DO
— Some directories should never be placed on separate partitions (if ramfs not used at boot times)
o /etc – config files needed during booting, including (/etc/fstab)
o /bin – commands needed during boot, e.g., mount
o /sbin – superuser commands during boot, e.g. modprobe
o /lib – shared library files and kernel modules
o /dev – device files for hardware devices
— With recent Linux distributions
o All files require boot time provided by ramfs, so above caveat does not apply
o If in doubt, it can be best not to create separate partitions unless you are sure why you are doing it
FILESYSTEMS
MAINTAINING FILESYSTEM
MOUNTING FILESYSTEMS
MANAGING SOFTWARE USING PACKAGES
PROCESS PRIORITIES
— Priorities
o Numeric value associated with a process
o Used by OS (scheduler) to apportion CPU time to processes
o High priority processes likely to get more CPU time
o Different Unixes differ in numeric ranges and algorithms used to implement priorities
o Common to all Unixes and Linux is the ‘nice’ value
— Nice value
o In early Unix, nice users running long jobs would be nice to other interactive users
o A ‘nice’ process lets other processes go first, and has a high nice value
o High nice value = low priority (lets others go first)
NICE VALUES
WINDOWS