File system, files, and *tabFile systemfilesdirectoriesvolumes, file systemsmounting pointslocal versus networked file systems1/etc/fstabSpecifies what is to be mounted where and howfs_spec: describes block special device for remote filesystem to be mountedfs_file: describes the mount pointfs_vfstype: describes the type of file systemfs_mntops: describes the mount options associated with the filesystem2/etc/fstabcont.fs_freq: used by the dump commandfs_passno: used by fsck to determine the order in which checks are done at boot time. Root file systems should be specified as 1, others should be 2. Value 0 means that file system does not need to be checked3/etc/fstab4from blocks to mounting pointsmetadatainodesdirectoriessuperblocks5mounting file systemsmountinge.g., mount -aunmounting manually or during shutdownumount 6/etc/mtab7see what is mountedNetwork File SystemAccess file system (FS) over a networklooks like a local file system to usere.g. mount user FS rather than duplicating it (which would be a disaster)Developed by Sun Microsystems (mid 80s)history for NFS: NFS, NFSv2, NFSv3, NFSv4RFC 3530 (from 2003) take a look to see what these RFCs are like!)8Network File SystemHow does this actually work?server needs to export the systemclient needs to mount the systemserver: /etc/exports fileclient: /etc/fstab file 9Network File SystemSecurity concernsUIDGIDWhat problems could arise? 10Network File Systemexample from our raid system (what is a RAID again?) Example of exports file from the back-end disk array:/raid/classes!! 129.101.153.0/26(rw,root_squash) 129.101.153.64/26(rw,root_squash) 129.101.153.128/26(rw,root_squash) 129.101.178.64/26(rw,root_squash)/raid/scratch!! 129.101.153.0/26(rw,root_squash) 129.101.153.64/26(rw,root_squash) 129.101.153.128/26(rw,root_squash) 129.101.178.64/26(rw,root_squash)/raid/special!! 129.101.153.0/26(rw,root_squash) 129.101.153.64/26(rw,root_squash) 129.101.153.128/26(rw,root_squash) 129.101.178.64/26(rw,root_squash)/raid/web!!!!!! 129.101.153.0/26(rw,root_squash) 129.101.153.64/26(rw,root_squash) 129.101.153.128/26(rw,root_squash)
View Full Document