Showing posts with label freebsd. Show all posts
Showing posts with label freebsd. Show all posts

Friday, March 28, 2014

FreeNAS basic guide

Basic guide to enable NFS sharing in FreeNAS

1. Create New Storage Volumes - ZFS Volume Manager

2.Create ZFS Dateset

3.Sharing - create NFS sharing

4.Enable NFS service

5.NFS server ready for sharing.

6. Check NFS server information from client (linux)
# showmount -e
# showmount -d
# showmount -a server.ip

7.Mount NFS directory from client (linux)
# mount -t nfs <IP NFS Server>:/<directory to mount> /<directory in client>
e.g. #mount -t nfs 10.1.0.248:/mnt/Data/Backup /mnt/nfs/

8.Check the mount directory, # df -h
.......
#/dev/mapper/turnkey-root 6.0G 1.6G 4.1G 28% /
#tmpfs 5.0M 0 5.0M 0% /run/lock
#tmpfs 196M 0 196M 0% /run/shm
#/dev/sda1 228M 17M 199M 8% /boot
#10.1.0.248:/mnt/Data/Backup 96G 115M 96G 1% /mnt/nfs
.......

9. Now can used the mount directory

Source:

Saturday, March 31, 2012

Install and configure Jail - FreeBSD



  • Once FreeBSD is installed start making the needed directories.


#mkdir /jail/master
#mkdir /jail/master/usr/
#cp -R /bin/ /jail/master/bin
#cp -R /etc/ /jail/master/etc
#cp -R /lib/ /jail/master/lib
#cp -R /libexec/ /jail/master/libexec
#cp -R /sbin/ /jail/master/sbin
#cp -R /usr/share /jail/master/usr/share
#cp -R /usr/bin /jail/master/usr/bin
#cp -R /usr/sbin /jail/master/usr/sbin
#cp -R /usr/lib /jail/master/usr/lib


  • Once you have all the need directories chroot - into /jail/master and run sysinstall


#chroot /jail/master /bin/csh
#/usr/sbin/sysinstall


  • Once you are in choose


->Configure
->Distributions
->base
->(use ftp for media source)
exit sysinstall