ZFS for Linux Demo
Demo -- alpha
Installing ZFS for Linux on the Solaris system
#./solaris_setup
copying zconfigrc to /etc
creating ZFS filesystem to hold remote users data
configuring parent filesystem /pool2/homies as defined in configrc
NAME USED AVAIL REFER MOUNTPOINT
pool2/homies 24.5K 1024M 24.5K /pool2/homies
setting up misc. user accounts
creating user zfsadmin with ZFS Management and User Management profiles
Setting up an administrative account password
Please enter in your desired passwd for zfsadmin, do not forget it
New Password:
Re-enter new Password:
passwd: password successfully changed for zfsadmin
zfsadmin:x:150026:10:ZFS File System manager:/pool2/homies/zfsadmin:/usr/bin/bash
setting up parent filesystem ownership
creating homedir for zfsadmin
setting permissions for zfsadmin directory
total 1
-rwx------ 1 zfsadmin root 1677 Jul 1 12:19 zuseradd
total 1
lrwxrwxrwx 1 root root 14 Jul 1 12:19 zconfigrc -> /etc/zconfigrc
creating skel directory
copying standard files
setting owner and group info, and permissions
taking snapshot of skel directory.
if you would like to make changes to skel directory content do so by
changing files in /pool2/homies/skel then run zskelsnap to create new clone snapshot
setup finished.
#
On the Linux System
debian:/home/jamesd/zfs_linux# ./zuseradd user2
config file is in /etc allready good
adduser: Warning: The home dir you specified does not exist.
Adding user `user2'...
Adding new group `user2' (5100).
Adding new user `user2' (5100) with group `user2'.
Not creating /home/user2.
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully
Changing the user information for user2
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [y/N] y
Local user account created
ID = 5100 MINUID==5100
Creating user account on remote system Administrative previledges
needed, please enter zfsadmin\'s passwd at the prompt
Password:
config file is in /etc allready good
creating user
user2:x:5100:10000::/home/user2:/bin/sh
creating filesystem
files being cloned into users home directory
-rwx------ 1 zfsadmin remote 11 Jul 1 12:19 .bash_login
-rwx------ 1 zfsadmin remote 900 Jul 1 12:19 README
NAME USED AVAIL REFER MOUNTPOINT
pool2/homies/user2 0 1024M 27K /pool2/homies/user2
chmod files in filesystem
chown files in filesystem
user and filesystem created.
debian:/home/jamesd/zfs_linux# su - user2
### ### ##
# # #
# ## #
# # #
Welcome to ### # ## for Linux
This directory is a filesystem that is part of ZFS storage pool that is
remotely mounted to this system. It should function as your home directory
always has with a few extra features. The ZFS filesystem has been configured to
take periodic snapshots of your data, so if something goes wrong there may
be an earlier version of the file availible for retrival without intervention
of the system administrator.
There are a few new commands to access data that is part of the zfs
snapshots. Provided to make your experience better with ZFS for linux.
are.
lsnap: List snapshots of your filesystem that are availible.
zfind: Find a file in your snapshots
zrestore: restore a file from a snapshot
zstatus: reports the status of your filesystem, not real time.
user2@debian:~$ id
uid=5100(user2) gid=5100(user2) groups=5100(user2)
user2@debian:~$ df -h /home/user2
Filesystem Size Used Avail Use% Mounted on
192.168.1.230:/pool2/homies/user2
1.0G 32K 1.0G 1% /home/user2
user2@debian:~$ exit
logout
debian:/home/jamesd/zfs_linux# exit