SoftNAS Virtual Storage Solutions
×
Menu
Index

How to Migrate Data Disks to a New SoftNAS VM

You may need to migrate data disks, along with their associated storage pools and volumes, from one SoftNAS instance to another. Examples of such cases may be:
 
  • Copy or move data from one SoftNAS VM to a different site or location.
  • Copy or move data from one SoftNAS instance on Amazon EC2 to a different region (different data center).
  • Restore a data image from backup (not common, but one of the valid use cases one should always be prepared to handle). For example, you may have EBS volume images snapshots saved on Amazon EC2, and want to migrate a backup copy into a new SoftNAS instance.

     
SoftNAS contains a feature known as Storage Pool Import. The Import feature scans the attached data disks to identify any pools that are currently offline that are eligible to be imported and made active again. This feature is also handy should you ever accidentally delete a pool.
To move one or more storage pools (with its associated volumes) from one SoftNAS instance to another, follow the steps given below.
 
  • Make sure that there are no active workloads on NFS shares, CIFS shares or iSCSI targets making use of the storage pool and volumes.
     
    Note: Do not attempt to move a volume that's active or data loss could occur.
     
2. Detach the inactive disk devices from the SoftNAS VM or EC2 instance.
  • On Amazon EC2, use the Detach option for each EBS volume that you want to move. Refer to the Attaching and Detaching Volumes section for more information.
  • On VMware, remove each virtual hard disk from the VM using the Settings dialog.
     
3. Copy or move the disks (as appropriate) to the destination (if required).
 
4. Attach the disk devices to the new SoftNAS VM or EC2 instance.
  • On Amazon EC2, use the Attach option for each EBS volume.Refer to the Attaching and Detaching Volumes section for more information.
  • On VMware, add each virtual hard disk to the VM using the Settings dialog
     
5. Log into the destination SoftNAS StorageCenter user-interface.
 
6. In the Left Navigation Pane, select the Storage Pools option under the Storage section.
 
7. Click the Import option in the toolbar.
 
The Import Pools dialog will be displayed.
 
It has two sections labeled Deleted Pools Available for Import and Foreign Pools Available for Import.
 
The Foreign Pools listed (if any are present)are storage pools created on a different SoftNAS system.
 
8. If the pools are ready to import, there will be a button labeled Import <poolname>, where poolname will be the pool that's available to import. Click that button.
 
9. You will need to select the Force Import checkbox, to force the system to import foreign pools from another system.
 
10. For each volume, configure the volume's Snapshots to use the desired schedule.
 
Note: They are not imported automatically, but can be manually copied from the old system by copying the snapshots.ini and schedules.ini files in the /var/www/softnas/snserver folder.
 
11. For each NFS and CIFS share you want, create the appropriate NFS exports and CIFS shares (they are not imported automatically.)
 
12. For each iSCSI target (if any), define the appropriate iSCSI devices and targets.
 
Note: They are not imported automatically, but can be manually copied from the old system by copying the file /etc/tgt/targets.conf to the new system, then restart the iSCSI Server.
 
The data disks will now be ready for use.
 
13. Click the Refresh button on the Storage Pools panel.
 
14. Similarly, navigate to the Volumes and LUNs panel and view the volumes.
Copyright © 2017 SoftNAS, INC - All Rights Reserved