Posted on

Migrate SAN Array on OmniOS to a new Host

Migrate SAN Array vDev/luns to another SAN

San Array

Here we show the commands to assist in migrating a SAN Array from one OMNI-OS cluster to another. This will also show how to initialize the new San Array Host.

Target SAN Array Host Old Target SAN Array Host
1121 – OmniOS 1154 – OmniOS
1063  – migrated to 1121

1064  – check if migrated

1065  – migrated to 1121

1066  – migrated to 1121




SAN – A storage area network (SAN) is a network which provides access to consolidated, block level data storage. SAN Array Hosts are primarily used to enhance storage devices, such as disk arrays, tape libraries, and optical jukeboxes, accessible to servers so that the devices appear to the operating system as locally attached devices.

svcadm – SCSI Block Disk command line interface

stmfadm – SCSI target mode framework command line interface

– manipulate service instances

Source SAN host:
pfexec sbdadm list-lu
zpool status
zfs list -rt snapshot
zpool list
zfs list
pfexec zfs snapshot Array-0/hosts/host-xxxx@
pfexec zfs send Array-0/hosts/host-xxxx@
ls -lh host-xxxx
pfexec scp /home/prominic/host-xxxx prominic@<hostIP>:/home/
pfexec stmfadm list-hg -v host-xxxx
pfexec sbdadm list-lu
pfexec sbdadm delete-lu GUIDxxxxxxxxxxxxxxxxxxxxxxx
ls -la
pfexec sbdadm list-lu

Target SAN host:
Fresh SAN host:
pfexec stmfadm create-tg FC-0
pfexec stmfadm add-tg-member -g FC-0 wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx
pfexec stmfadm list-tg
pfexec stmfadm list-tg -v
pfexec svcadm enable stmf

For Each Target SAN host VM:
zfs list
pfexec zfs recv -d Array-0 < host-xxxx
pfexec sbdadm create-lu /Array\-0/hosts/host\-xxxx/
pfexec stmfadm create-hg host-xxxx
pfexec stmfadm add-view -h host-xxxx -t FC-0 -n 0 GUIDxxxxxxxxxxxxxxxxxxxxxxx
pfexec stmfadm add-hg-member -g host-xxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx wwn.xxxxxxxxxxxxx

This goes in Conjunction with: Set up a Home ESXi mini Lab

Posted on

Wildcard Subdomains and DNS

How to Create a WildCard Subdomain

    1. Log into cPanel.
    2. Click the Subdomains link in the Domains section.
    3. In the Subdomain field, place an asterisk * symbol there signifying that you are creating a wildcard subdomain.
    4. Choose the domain you want to create a wildcard subdomain for in the Domain section.
    5. The Document Root field will automatically generate a path for your wildcard subdomain. You can change the path as needed.
    6. Click the Create button.

      You will then see a success message to confirm the subdomain was setup.

Congratulations! You have now successfully set up your account for wildcard domains. You still may need to modify your .htaccess file. If you have set up wildcard subdomains for WordPress Multisite, it will automatically configure the .htaccess file for you.