Hello Folks,
Continuing with the previous discussion on Openfiler volume management, here we would see how to create snapshots and access it. Now snapshots is nothing but backup of the existing exported volume which would be available in case the mounted volume gets deleted, corrupted or unavailable due to other reasons.
1. First we would fill up the existing exported volume with some junk binaries or data
After some data is written over the disk we can proceed with the snapshot creation.
2. Next we navigate to the Volume which needs to be backed up or snapshot to be taken.
3. Click on Create under Snapshots section which would bring us to snapshot management. Currently since its a new volume and no snapshots are been created, list of existing snapshot volume would be empty.
Also you could schedule a automatic creation of snapshots depending on hours and latest how many to keep.
We would navigate to the last section which deals which the manual snapshot creation.
Kindly make sure, there must be free space in the volume group prior to creation of snapshot.
Here we would create a snapshot
Name : First_snapshot
Size : 300MB [We have created a partition of 500 MB on exported volume]
Share Contents : Yes [Should the snapshot be readily available for mounting after creation]
4. After creation of new snapshot the volume utilization changes and this can be verified by checking the Manage Volume again
Navigate to Volumes-->Manage Volumes
Click Manage and under List of existing snapshot volume, you can see the newly created snapshot. Click Save
5. After creation of snapshot we need to make either a existing LUN for create a new LUN
We would create a new LUN to differentiate the existing volume disks
Navigate to Volumes-->iSCSI Targets
Add a new iSCSI target value as : iqn.2006-01.snapshot
Next select the new target from drop-down list of Select a iSCSI Target
and click Change
Next go to LUN Mapping and map the new volume : /dev/iscsi/of.snapshot.iscsi_volume.first_snapshot [In my case, your might differ] to this new target
Next under Network ACL, select the appropriate share
In my case we would provide the share to ACL: Anirudha. Select Allow and Click Update
6. Now to access the new LUN, follow the similar procedure as show in previous article using Microsoft iSCSI initiator.
Navigate to Start==>Control Panel
Under Administrative Tools, you can find the iSCSI initiator
Click on it
7. Now to access the new LUN, go to Start==>Run==>diskmgmt.msc
This would launch the Disk Management MMC. Here you could see a new disk [Disk2] in offline mode.
Right click Disk2 and bring it Online
This was mounted a H: drive on my machine. When checked the contents of this drive, following were the contents
Which are same contents as that of the existing exported volume [F: drive]
This concludes the post on snapshot creation and access it. You can try creating an additional new snapshot after altering the existing exported volume [F: drive here] and mount it.
I tried it with an additional one package been added to F: drive, Please find the drive contents for all 3 of them
1. Existing exported volume - F: drive
2. First snapshot volume - H: drive
3. Second snapshot volume - I: drive
Next article preferably would be to create volumes, snapshots and access it on Linux server.
Thanks
Anirudha

No comments:
Post a Comment