napp-it ZFS server on OmniOS/Solaris: news, tips and tricks

gea

Well-Known Member
Dec 31, 2010
2,830
981
113
DE
File and share permissions, new option in current napp-it dev

You can use SAMBA on Solarish operating systems but mostly you prefer the Solaris integrated multithreaded kernelbased SMB server due easier setup, perfect integration of Windows ntfs alike permissions with inheritance, Windows SID as security reference (keep AD permissions on a backup intact), lokal Windows compatible SMB groups and out of the box working ZFS snaps as Windows previous versions.

You use file/folder based finegranular ACL permissions to restrict access or allow creation of new files and folders with the option to place settings to current folder only or inherit also to deeper ones.

acl.png


Additionally you can set share ACL. They can globally and additionally restrict access independent from file/folder based ACL. You use them to set global defaults like not allowing ACL modifications or restrict access temporarily to readonly for normal users (root has always full access). The share ACL are settings on the share control file /pool/filesystem/.zfs/shares/filesystem. This file is created when you enable a share and deleted when you disable a share. This is why settings are not persistent. When you re-enable a share you are always at the default setting everyone=full access.

Up from current november napp-it 22.dev share ACL are preserved as ZFS properties and can be restored when activating a share. You can also restrict access at this point to readonly or modify only.

shareacl.png
 
Last edited:
  • Like
Reactions: mrpasc

gea

Well-Known Member
Dec 31, 2010
2,830
981
113
DE
All in One System (ESXi incl. free version + virtualized OmniOS ZFS SAN appliance): autoboot of storage VM + other VMs on NFS

When I brought up the AiO idea more than 10 years ago, autoboot of VMs on a delayed NFS storage was trouble free. Just set a delay for VMs on NFS to allow OmniOS with a NFS share to boot up and provide NFS. With a current ESXi this simple setup no longer works as it seems that ESXi checks availability of a VM prior the bootup delay.

Workaround:
- Create a dummy, empty VM on local datastore
- Autostart this dummy VM after the OmniOS storage VM with a delay long enough to boot up OmniOS and auto reconnect NFS on Esxi, ex 300s
- Autostart other VMs from NFS on ZFS.

autostart.png

 
Last edited:
  • Like
Reactions: Freebsd1976

gea

Well-Known Member
Dec 31, 2010
2,830
981
113
DE
My must have tools for daily work with OmniOS storage servers

1. System Management

1.1 Winscp (free)


This is a filemanager and editor for Linux/Unix textfiles on Windows

winscp.png

1.2 Putty (free)

This is a remote console for Windows. You can copy/paste commands via a right mouseclick.
I often use it in combination with midnight commander. a console data browser to copy/move data locally

putty_mc.png


2. Disk Management

2.1 Partedmagic (13 USD to get newest versions for 3 months, use it then without time limit)


This is a small commercial Linux Distribution. Use Rufus to make a bootable USB stick from iso.
The most important feautures are "secure erase" of any SSD/Nvme and Partition management of disks

partedmagic.png



2.2 Hirens Boot CD (free)

This is a Windows 10 PE distribution with many tools for Windows and disk maintenance. What I use quite often on my OmniOS ZFS server is WD data lifeguard for intensive disk tests to repair disks with troubles or get the final info that a disk is bad. Use Rufus to create a bootable USB stick from iso.

hirens.png


2.3 Clonezilla (free)

This is a small Linux distribution to create/restore images ex from/to an NFS/SMB filer or to clone disks locally. Use Rufus to create a bootable USB stick from the iso.

clonezilla.png

2.4 Rufus (free)

This is a Windows tool to create bootable USB sticks from an iso image. You can also create a bootable Freedis USB stick ex to flash firmware for mainboards ot HBA or hdat2.


2.5 USB imager (free)

This is a Windows tool to backup/restore/clone USB images.

usb_image_tool.png


2.6 hdat2 (free)

This is a tool for MS Dos or Freedos for disk management. I use it mainly to create or manage host protected areas (HPA) on SSDs after a secure erase. A HPA reduces the usable size of SSDs (OS is reported a smaller disk). Such a HPA overprovisioning improves performance and reliability of SSDs. Create a freedos USB stick and copy hdat2.exe onto.


3. Development and scripting

3.1 ESXi (free edition).


This is the commercially leading virtualisation environment and in most cases the fastest one. The commercial version adds HA features and centralized management of several servers and storage management via vSAN. With ESXi free you can add a OmniOS storage VM to get sophisticated storage features and a Linux distribution if you want Docker etc. Register at VMware to download the free ESXi.

esxi8free.png


3.2 DZsoft Perl Editor (free)

This was a commercial and quite the best Perl scripting editor (Windows). It is now free to use, DzSoft's Order Page and gives you perfect control of sub routines and variables.

Perl is the "mother" of many scripting languages. Main advantage of Perl is that it is always there on Linux/Unix (no installation required), perfect for system maintenance and scripting due sophisticated string manipulation/ regex features and perfect locking features for text files when in multiuser use. I use Perl for system scripting (much easier and more comfort than shell scripting) and even for the web gui itself as a cgi application.


partedmagic.pngwinscp.pngputty_mc.pnghirens.pngclonezilla.pngusb_image_tool.pngesxi8free.pngperledit.png
 
Last edited: