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
Initiators
1063  – migrated to 1121

1064  – check if migrated

1065  – migrated to 1121

1066  – migrated to 1121

 

 

Definitions:

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/m4kr/host-xxxx m4kr@<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

https://www.m4kr.net

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.