mirror of
https://github.com/kneutron/ansitest.git
synced 2025-01-16 04:42:55 +08:00
more descriptive
This commit is contained in:
parent
cd953dc1ac
commit
6971d66a08
@ -1,17 +1,20 @@
|
||||
#!/bin/bash
|
||||
|
||||
pname=zsgtera4compr
|
||||
# Example create 4-drive mirror pool, create and chown a samba shared dataset and associated userid for it
|
||||
# userid needs to exist (useradd/adduser) first
|
||||
|
||||
zpool create -f -o ashift=12 -o autoexpand=on -O atime=off -O compression=lz4 $pname \
|
||||
zp=zsgtera4compr
|
||||
|
||||
zpool create -f -o ashift=12 -o autoexpand=on -O atime=off -O compression=lz4 $zp \
|
||||
mirror ata-ST4000VN000-1H4168_Z3073Z29 ata-ST4000VN000-1H4168_Z306G0K3 \
|
||||
mirror ata-ST4000VN000-1H4168_Z3073ZAY ata-ST4000VN000-1H4168_Z306G7H8
|
||||
|
||||
pdir=tkita; zfs create -o atime=off -o sharesmb=on $pname/$pdir; chown tkita:dave /$pname/$pdir
|
||||
pdir=dave; zfs create -o atime=off -o sharesmb=on $zp/$pdir; chown $pdir:dave /$zp/$pdir
|
||||
ls -al /$pname/$pdir
|
||||
|
||||
zpool status
|
||||
|
||||
(set -r
|
||||
smbpasswd -a tkita
|
||||
smbpasswd -a $pdir
|
||||
)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user