Assessment item 1
File Systems and Advanced Scripting
Value: 15%
Due Date: 26-Aug-2018
Return Date: 31-Aug-2018
Length: 15 - 20 pages including screenshots
Submission method options: Alternative submission method
Task
back to top
In this assignment you will develop simple scripts to manage the user and file system whilst
developing some expertise in managing a complex file system.
Part 1: Automated Account Management (4 marks)
You have been asked by your boss to prepare two shell scripts which manage user information.
You are to prepare a simple shell script which reads a text file called users.txt. The file is in the
form
dfs /home/dfs Daniel Saffioti
and creates these users on the system without any interactive input. To do this you will need to
use the adduser(1) and passwd(1) commands. You will need to randomly produce the password
and report this to the administrator.
You can assume the fields being username, home directory and GCOS string are separate by a
single white space.
You can assume all users are in the same group.
The program should output the username and generated password once created.
Part 2: Design of a File System (3 marks)
https://outlines.csu.edu.au/delivery/published/ITC333/201860/SM/I/outline.html#contentPanel
You work for the Information Technology Department in your University and you have been
asked to build a server to store user data (home directories).
The volumes can grow without bounds, so it was felt that the ZFS file system should be used for
each volume. The operating system itself need not be on a ZFS volume.
All volumes including the operating system should be engineered in such a way to ensure the
best data protection is afforded in the event of local disk failure. It is expected that no more than
1 hours worth of data will be lost.
The volumes required are as follows:
1. uni0 with mount point /users/ug& quota of 200G.
2. uni1 with mount point /users/pg& quota of 200G.
3. uni2 with mount point /users/deleted& reservation of 100G.
4. uni3 with mount point /users/staff& reservation of 100G.
5. uni4 with mount point /users/guest & reservation of 250G.
Given the above your task is as follows define a strategy for how you will ensure the volumes
outlined above are provisioned whilst ensuring there data protection. Document this accordingly
along with a suitable rationale for your design.
Part 3: Implementing the Filesystem (4 marks)
Given the strategy defined in part two, your job is to implement the storage system.
1. To do this install the latest version of Ubuntu Server on a virtual machine. You will need to
ensure the networking is bridged and the root portioning is managed appropriately. You will
need to add additional virtual disks to meet the storage needs above.
2. Install the ZFS package and configure it such that pools of storage are created to meet the above
requirements including redundan.
Assessment item 1 File Systems and Advanced Scripting .docx
1. Assessment item 1
File Systems and Advanced Scripting
Value: 15%
Due Date: 26-Aug-2018
Return Date: 31-Aug-2018
Length: 15 - 20 pages including screenshots
Submission method options: Alternative submission method
Task
back to top
In this assignment you will develop simple scripts to manage
the user and file system whilst
developing some expertise in managing a complex file system.
Part 1: Automated Account Management (4 marks)
You have been asked by your boss to prepare two shell scripts
which manage user information.
2. You are to prepare a simple shell script which reads a text file
called users.txt. The file is in the
form
dfs /home/dfs Daniel Saffioti
and creates these users on the system without any interactive
input. To do this you will need to
use the adduser(1) and passwd(1) commands. You will need to
randomly produce the password
and report this to the administrator.
You can assume the fields being username, home directory and
GCOS string are separate by a
single white space.
You can assume all users are in the same group.
The program should output the username and generated
password once created.
Part 2: Design of a File System (3 marks)
https://outlines.csu.edu.au/delivery/published/ITC333/201860/S
M/I/outline.html#contentPanel
3. You work for the Information Technology Department in your
University and you have been
asked to build a server to store user data (home directories).
The volumes can grow without bounds, so it was felt that the
ZFS file system should be used for
each volume. The operating system itself need not be on a ZFS
volume.
All volumes including the operating system should be
engineered in such a way to ensure the
best data protection is afforded in the event of local disk
failure. It is expected that no more than
1 hours worth of data will be lost.
The volumes required are as follows:
1. uni0 with mount point /users/ug& quota of 200G.
2. uni1 with mount point /users/pg& quota of 200G.
3. uni2 with mount point /users/deleted& reservation of 100G.
4. uni3 with mount point /users/staff& reservation of 100G.
5. uni4 with mount point /users/guest & reservation of 250G.
Given the above your task is as follows define a strategy for
how you will ensure the volumes
outlined above are provisioned whilst ensuring there data
protection. Document this accordingly
4. along with a suitable rationale for your design.
Part 3: Implementing the Filesystem (4 marks)
Given the strategy defined in part two, your job is to implement
the storage system.
1. To do this install the latest version of Ubuntu Server on a
virtual machine. You will need to
ensure the networking is bridged and the root portioning is
managed appropriately. You will
need to add additional virtual disks to meet the storage needs
above.
2. Install the ZFS package and configure it such that pools of
storage are created to meet the above
requirements including redundancy and backups. To achieve
this use the mirroring and
snapshot features of ZFS.
Demonstrates your filesystem working and provide any insights
gained along the way.
Part 4: File System Management with Scripts (4 marks)
Now that you have a plan for the storage there are a few house
keeping matters to take care of
because users tend to be somewhat liberal with their storage.
1. Write a script to make sure that user home directories are
owned and only accessible by the
5. owner. The script can assume home directories are descendants
of /users.
2. Finally write a script which takes as an argument the
filesystem name e.g. /home and looks for
objects which do not belong i.e. end with the extension
a.mp3
b.aac
c.mp4
d..mov
e..avi
f..vid
When these files are found a summary should be produced
including where they are and
the size. The script should also remove the files.
Demonstrate each script working in your submission and
document the source code and any
insights gained along the way.
Rationale
back to top
6. This assessment task will assess the following learning
outcome/s:
management tasks.
rotecting data and services
accessed via the internet.
In this assignment you will develop simple scripts to manage
the user and file system whilst
developing some expertise in managing a complex file system.
Marking criteria and standards
back to top
Question Criteria HD DI CR PS FL
Part 1: Automated
Account
Management
Ability to learn
and use systems
administration
techniques.
8. Demonstrated working
automated account
management script
which meets all
functional requirements.
Reflect on your own
learning experience
providing evidence of
insight, drawing on
multiple sources to
develop understanding.
Demonstrated working
automated account
management script
which partially meets
functional
requirements.
Consider and reflect on
9. your own experience,
drawing on multiple
sources to develop
understanding.
Demonstrated
working automated
account management
script which meets
basic functional
requirements.
Consider and reflect
on your own
experience.
Major errors and
omissions.
Limited detail and
understanding
demonstrated.
10. Part 2: Design of
File System
Ability to learn
and use systems
administration
Documented file system
design which exceeds all
functional requirements.
Documented file system
design which meets all
functional requirements.
Documented file system
design which partially
meets all functional
Documented file system
design which meets
basic functional
12. knowledge drawing from
multiple sources.
Reflect on your own
learning experience
providing evidence of
insight, drawing on
multiple sources to
develop understanding.
requirements.
Consider and reflect on
your own experience,
drawing on multiple
sources to develop
understanding.
requirements.
Consider and reflect on
13. your own experience.
Limited detail and
understanding
demonstrated.
Part 3:
Implementation of
File System
Ability to learn
and use systems
administration
techniques.
Application of
technical
knowledge.
Explanation,
Evidence and
Referencing.
Implemented file system
14. which exceeds all functional
requirements.
Reflecting on your learning
experience, providing
evidence of insight and
commenting on the
acquisitions of new
knowledge drawing from
multiple sources.
Implemented file system
which meets all functional
requirements.
Reflect on your own
learning experience
providing evidence of
insight, drawing on
multiple sources to
15. develop understanding.
Implemented file system
which partially meets all
functional requirements.
Consider and reflect on
your own experience,
drawing on multiple
sources to develop
understanding.
Implemented file
system which meets
basic functional
requirements.
Consider and reflect on
your own experience.
Major errors and
omissions.
16. Limited detail and
understanding
demonstrated.
Part 4: File System
Management and
Scripts
Ability to learn
and use systems
administration
techniques.
Application of
technical
knowledge.
Explanation,
Evidence and
Referencing.
Demonstrated working file
17. system management scripts
which exceeds all functional
requirements.
Reflecting on your learning
experience, providing
evidence of insight and
commenting on the
acquisitions of new
knowledge drawing from
multiple sources.
Demonstrated working file
system management
scripts which meets all
functional requirements.
Reflect on your own
learning experience
providing evidence of
18. insight, drawing on
multiple sources to
develop understanding.
Demonstrated working
file system management
scripts which partially
meets all functional
requirements.
Consider and reflect on
your own experience,
drawing on multiple
sources to develop
understanding.
Demonstrated working
file systems
management scripts
which meets basic
functional
19. requirements.
Consider and reflect on
your own experience,
drawing on multiple
sources to develop
understanding.
Major errors and
omissions.
Limited detail and
understanding
demonstrated.
Limited detail and
understanding
demonstrated.
20. Presentation
back to top
You should submit your assessment in a single word document
which contains all components of
your assignment. Use screenshots to provide evidence and
details of the work you have done to
compliment your written answers. You should reference where
appropriate using an approve
referencing style to support your work.
https://outlines.csu.edu.au/delivery/published/ITC333/201860/S
M/I/outline.html#contentPanel