Popular Posts

Showing posts with label mount. Show all posts
Showing posts with label mount. Show all posts

Mar 3, 2017

ISO file mounts and loopback Files Systems

ISO file mounts and loopback Files Systems

How to mount an ISO file :

1.    Add the ISO file as a normal loopback device
            lofiadm -a /export/home/judi/ISO/sol-10-u11-ga-sparc-dvd.iso /dev/lofi/1

2.    List the loopback device
            lofiadm

3.    Mount the loopback device now
            mount -F hsfs -o ro /dev/lofi/1 /mnt

4.    unmount the loopback device
            umount /mnt

5.    Delete / remove the loopback device
            lofiadm -d /dev/lofi/1

Oct 6, 2016

nfs share using zfs and mounts options

nfs share using zfs and mounts options




1. Create a zfs volume and mount as /data_stuff
zfs create -o mountpoint=/data_stuff rpool/data_stuff

2. set quota for 20GB - This volume has restricted to 20GB not more than that
zfs set quota=20G rpool/data_stuff

3. Reserved dedicated 20GB space in rpool for the zfs data_stuff, other volumes cannot use this space
zfs set refquota=20G rpool/data_stuff

3. Share the zfs as nfs
zfs set sharenfs=on rpool/data_stuff

4. Set nfs permisssion for the zfs
zfs set share=name=some_description,path=/data_stuff,prot=nfs,anon=0,sec=sys, \
rw=@192.168.0.1:@192.168.0.2,root=@192.168.0.2:@192.168.0.2 rpool/data_stuff

5. View the config updated automatically in /etc/dfs/sharetab
/data_stuff  some_description   nfs     anon=0,sec=sys,rw=@192.168.0.1:@192.168.0.2,root=@192.168.0.2:@192.168.0.2

6. Entry in vfstab to mount a nfs share
judi-test-01:/vol/Oracle_migration/Oracle      -             /Oracle_migration          nfs       -        yes       -


~Judi~

~
nfs in zfs
nfs share in zfs
nfs - Sharing and Unsharing ZFS File Systems
How to share ZFS as NFS in solaris 11
Creating a ZFS network share over NFS
zfs performance
zpool
zfs share
zfs set sharenfs
zfs share nfs
~

Popular Posts