2014-04-10 23:19:23 +02:00
|
|
|
[[Kategorie:Infrastruktur]]
|
|
|
|
|
|
|
|
== Hardware Info ==
|
2014-04-10 23:20:15 +02:00
|
|
|
Virtualisiert durch [[intern:Freebert]]
|
2014-04-10 23:19:23 +02:00
|
|
|
|
|
|
|
== Software Info ==
|
|
|
|
FreeBSD Jail Container
|
2014-04-10 23:20:50 +02:00
|
|
|
* minidlna
|
|
|
|
* nfs
|
|
|
|
* samba (in arbeit)
|
|
|
|
* ftp (in arbeit)
|
2014-04-10 23:19:23 +02:00
|
|
|
|
|
|
|
== Verwendungszweck ==
|
|
|
|
* DLNA Sharing
|
|
|
|
* File Sharing
|
|
|
|
|
|
|
|
== HOST: FreeBSD NFS Export / ZFS sharenfs ==
|
|
|
|
|
|
|
|
<source lang=bash>
|
|
|
|
vi /etc/rc.conf
|
|
|
|
|
|
|
|
rpcbind_enable="YES"
|
|
|
|
nfs_server_enable="YES"
|
|
|
|
mountd_flags="-r"
|
|
|
|
rpc_lockd_enable="YES"
|
|
|
|
rpc_statd_enable="YES"
|
|
|
|
</source>
|
|
|
|
|
2014-04-10 23:21:25 +02:00
|
|
|
dirkter ZFS Export
|
|
|
|
|
2014-04-10 23:19:23 +02:00
|
|
|
<source lang=bash>
|
|
|
|
zfs set sharenfs="-maproot=root -network=172.22.99.0 -mask=255.255.255.0" zroot/ezjail/storage.hq.c3d2.de/rpool
|
|
|
|
</source>
|
|
|
|
|
|
|
|
== NFS Import unter Linux ==
|
|
|
|
|
|
|
|
<source lang=bash>
|
|
|
|
apt-get install nfs-common portmap
|
|
|
|
</source>
|
|
|
|
|
2014-04-10 23:22:02 +02:00
|
|
|
mount:
|
|
|
|
|
2014-04-10 23:19:23 +02:00
|
|
|
<source lang=bash>
|
|
|
|
mkdir /freebert-nfs
|
|
|
|
|
|
|
|
showmount -e 172.22.99.10
|
|
|
|
|
|
|
|
mount 172.22.99.10:/usr/jails/storage.hq.c3d2.de/rpool /freebert-nfs
|
|
|
|
</source>
|
|
|
|
|
|
|
|
== NFS Import unter FreeBSD ==
|
|
|
|
|
|
|
|
<source lang=bash>
|
|
|
|
vi /etc/rc.conf
|
|
|
|
|
|
|
|
nfs_client_enable="YES"
|
|
|
|
</source>
|
|
|
|
|
|
|
|
<source lang=bash>
|
|
|
|
mount 172.22.99.10:/usr/jails/storage.hq.c3d2.de/rpool /freebert-nfs
|
|
|
|
</source>
|
|
|
|
|
|
|
|
== Log ==
|
|
|
|
* NFSv3 Export
|