32
Host Management

Host Management

Embed Size (px)

DESCRIPTION

Host Management. The Big Picture. Think of the Total Network Solution Think of ways to make management easier Go with the Vendor standard install? Or Customise to suit our situation? Make all machines the same? Make all machines unique?. The Server Room. - PowerPoint PPT Presentation

Citation preview

Page 1: Host Management

Host Management

Page 2: Host Management

The Big Picture

Think of the Total Network SolutionThink of ways to make management

easierGo with the Vendor standard install?Or Customise to suit our situation?Make all machines the same?Make all machines unique?

Page 3: Host Management

The Server Room

Critical hardware needs protection including:Power filter and UPSAir-conditioner, heater and fireproofingSecure access eg locked door, CCTV

monitorAnti-static fittings eg rack mount, carpetSecure cable conduits and patch panels

Page 4: Host Management

Start up and Shutdown

Know how to turn something off…. Before you turn it on!!

Complex systems need safe shutdown sequence to avoid damage

Quiescent state difficult to predict in multi-tasking systems

Page 5: Host Management

Shutdown

Complete all operations in progressPrevent new operations from startingClose filesTerminate processes and servicesSynchronise and Flush buffers/cachesDismount/park/eject disksPower off !

Page 6: Host Management

Shutdown Unix

Only performed by superuser halt – stops quickly and without waiting reboot – same as halt, restarts afterward shutdown – warns user first init n – where n is a run level numberBeware…. Run Level numbers are not all the same on different systems!!Eg. init5 is MultiUser mode in Redhat and PowerOff in SvR4/Solaris

Page 7: Host Management

PC Bootstrap SequenceAn Avalanche boot

BIOS IPL loads MBR bootMBR selects active partition

loads partition bootPartition boot can access files

loads OS loaderOS loader loads kernelKernel initialisation loads init process

Page 8: Host Management

Booting Unix

Machine and OS dependentUsually boots automaticallySome machine start in ROM monitor and

require a monitor command like b or bootinit

“run levels” allow several alternate configsRuns different scripts in /etc/rc.local

Page 9: Host Management

Booting Windows NT/2000/XP

BIOS MBR > PartitionBoot > C:\ntldr > C:\ntdetect > multiuser

C:\boot.ini allows multi-partition bootAny user can shutdown entire systemServices started according to registryNo single-user or run-levels

Page 10: Host Management

Workstation Personalisation

Personal workstations or NetStations?Some local storage essential

Operating systemSwap or PagefileLocal working temporary filesLocal system and user configuration

Some central shared storage needed

Page 11: Host Management

Disk Space Used for…

Operating system software and DataApplication software and DataShares visible to others on the NetLocal space for temporary use

Cache, print spool, transitory downloadsBackup copies

Page 12: Host Management

Disk partitioning

A convenient way to subdivide disk spaceReserve space for a particular function

eg swap space, user directories, softwareDisjoint storage - protection of dataEach partition given logical device name

eg C:, /dev/hda1, /dev/dsk/c0t0d0s0Meta-devices and logical volumes

seamlessly span multiple partitions

Page 13: Host Management

FormattingBuilding File Systems

“like painting car spaces in a carpark”Structures disk area for addressable accessUnique to OS – usually incompatible!

eg UFS not visible to Windows, NTFS not visible to UnixSectors often grouped into Allocation units

called blocks in Unix and clusters in windowsBuilding File System - mkfs or formatLabels, Directories, Free list, Data area

Page 14: Host Management

Unix File System

UFS disc formatiNodeDisc space allocation for each fileA Directory implementationAccess permission implementation

Page 15: Host Management

DOS File Allocation TableDisc formatFAT disk space management

Page 16: Host Management

Swap Space

Swapping – frees RAM used by an idle process by storing image on disc

Paging – virtual memory stored on discFew modern OSs actually do swappingThe swap file is now used for pagingIn Unix the swapfile is usually a partitionSwapFileSize = 2.5 * RAMsizeAny more will probably never be used!

Page 17: Host Management

File SystemA working system has:

Operating system files (as distributed)Other application software (packages)User filesUser Application dataTemporary working space

Page 18: Host Management

File SystemLogically separate because:

They have different functionsThey are owned/maintained differentlyThey change at different ratesBackup policy is different for each

Page 19: Host Management

File SystemA Typical Unix Layout

Operating System /boot or /kernel – boot image files /bin or /sbin – general or system executable files /dev – device files /lib – system development library files /etc – configs, params, scripts, etc… /share – common read-only files /var – non-transient workspace, logfiles /tmp or /spool – transient work and temporary files

Page 20: Host Management

File SystemA Typical Unix Layout

Application Software /usr /usr/local/bin /usr/local/lib /usr/local/include /usr/local/etc /usr/local/share

Page 21: Host Management

Unix Disk Device Names

Devices usually appear as files in /devDisks have names for each partitionPartitions may overlapBSD and SysV use different names

sd0a,sd0b,sd0c…dsk/c0t1d0s0

Contoller Target(disk) Device Segment(partition)Target or Device may be missing

Page 22: Host Management

System InstallationInstaller must specify…

Name, IP, subnet mask, domain, DNS IPDisc partition layout and formatSwap spaceTimezoneDirectory Service eg NIS, Windows PDCDrivers for unrecognised devices

eg Video, NIC, sound

Page 23: Host Management

Installing…

Solaris, Linux, Windows…Workstation, Developer and Server

versionsAll have easy installation programs

Jumpstart, Kickstart, SetupModern version auto-sense device (PnP)

and network configuration (DHCP)Installation may require license details

Page 24: Host Management

Configuring for use of Network Services

Host installation readies the machine for connection to the Net

Also need to have information about services provided by the Net, including:DNSNFSAuthentication (NIS, Kerberos, LDAP)

Page 25: Host Management

DNS configuration

Can be provided automatically by DHCPComplex setup needs more detail stored

in local files:/etc/resolv.conf

/etc/nsswitch.confUsual sequence of name search is

hosts, bind, NIS

Page 26: Host Management

NFS configuration

Usually requires editing of /etc/fstabAnd starting of automounter service

Page 27: Host Management

Multiple InstallationsBoot Managers

With multi-use machines and big disks it is possible to have several different OSs

Each OS has its own boot managerSome are generalised, some not

Eg Windows relies on files accessed from C: so install Windows first, then install Linux

Unix loaders: LILO, GRUB

Page 28: Host Management

Re-Installation,Multiple Installation

OS installation programs make it easy to install on a single system, but what about repeat installations or installing to large numbers of machines eg in a department of a company?

Here we need an automated process that can be given a “configuration file” and left to install in unattended mode

Page 29: Host Management

Multiple InstallationsImage vs Package vs Share

Image mode: writing a prepared partition image to the hard disk eg using Ghost Only possible for identical systems Difficult to change: must recreate entire image

Package: a set of dependent moduleseg compiler + libraries + templates

Package mode: installing a sequence of packages in several passes over the partition dpkg, rpm, Windows MSI, Wise, etc…

Share mode: where software is shared from server

Page 30: Host Management

Software Installation

Usually installed as packagesMay be distributed in limited source form

and require compilationOften installed by running a script command

configmake install

Beware of mixing versions!

Page 31: Host Management

Directory structure

All reliable systems separate system and application software

May also separate data from procedureUse a directory structure to achieve this

Page 32: Host Management

Shared Libraries (.so)Dynamic Link Libraries (.dll)

Often managed as “overlays” and loaded into RAM on demand

Managed by some kernel routines which use an “index” to locate a required module

When new versions are installed, the index must be updated (and any obsolete versions purged from RAM)

Special commands used to do this eg ldconfig