logo

Developing Simple Scripts for File and User System Management with ZFS Volume

   

Added on  2023-06-07

18 Pages2359 Words76 Views
 | 
 | 
 | 
LINUX
Developing Simple Scripts for File and User System Management with ZFS Volume_1

Table of Contents
Introduction................................................................................................................................2
Automated Account Management..............................................................................................2
Designing File Systems..............................................................................................................6
File system Implementation.......................................................................................................9
Making the File System accessible and robust........................................................................11
File System Management with Scripts.....................................................................................13
Conclusion................................................................................................................................15
References................................................................................................................................17
1
Developing Simple Scripts for File and User System Management with ZFS Volume_2

Introduction
Main scope of this project is to developing the simple scripts to accomplish the file
and user system whilst and developing the some expertise in handling a composite file
system. This project is classified into five task like automated account management,
designing a file systems, implementing the file system, making the file system accessible and
robust and file system management with scripts. The first task is automated account
management, this task is used to prepare the two shell scripts and it is used to manage the
user information. The Main shell script is used for reads the text file called users.txt that
contains the following information and another scripts is used to remove the user account.
The second task is Designing File Systems, we will prerequisites to create the server to store
the customer data by using the ZFS volume. The volumes are turned into the unbounded and
it was felt that the ZFS system and this structure should be used for each volume. The OS
itself needs not be on a ZFS volume. The third task is implementing the file system, this task
is used to implement the storage system. The fourth task is making the file system accessible,
this task is used to create another virtual machine to do mount a NFS exported volume from
the server and backup all the data on the ZFS volumes by using the ZFS. The final task is file
system management with scripts, this task is used to create the two scripts for file system
management. The First scripts is to make the user home directories are owned and only
accessible by the owner and second script is to looks the file system to find the objects like
mp3. These are will be executed and explained in detail.
Automated Account Management
In automated account management task, we will makes the two shell scripts and it is
used to maintain the user information. The first scripts is used to reads the user text file that
contains the below information. This is established as below,
2
Developing Simple Scripts for File and User System Management with ZFS Volume_3

First Shell Script is displayed below.
#!/bin/bash
FILE="/home/ubuntu/Documents"
echo "*** File - $FILE contents ***"
cat $FILE
Steps for compile and run the shell scripts.
First, user needs to open the terminal.
After, goo to script location by enter the below command on terminal
Cd file locations
Then, provide the file permission by enter the below command on terminal.
chmod +x user.sh
Finally, run the shell scripts by typing the below command.
./user.sh
This development is demonstrated as underneath.
3
Developing Simple Scripts for File and User System Management with ZFS Volume_4

End of preview

Want to access all the pages? Upload your documents or become a member.

Related Documents
Linux File System Management with Scripts
|16
|1536
|421

Automated Account Management, Designing and Implementing File Systems in Linux
|11
|647
|305

Linux File System: Automated Account Management, Designing File Systems, File System Management with Scripts
|12
|721
|455

Linux File System: Design, Implementation, and Management with Scripts
|19
|2943
|403

Linux Server Administration: Automatic Management of Account, File System Designing, Implementation, Making the File System accessible and robust, Management of File System using the Scripts
|11
|695
|90

LINUX Server Administration: Automated Account Management, Designing File Systems, File System Management with Scripts
|11
|530
|287