Thursday, June 21, 2007

how to Mount iSCSI snapshot from openfiler

after create the snapshot from the openfiler console. Check the /dev/vol1/ dir. found the snapshot device file name is :

of.snapshot.crs.snap

edit /etc/iedt.conf file to share the volume.

Target iqn.2006-01.com.openfiler:vol1.crs
Lun 0 Path=/dev/vol1/crs,Type=fileio
Lun 1 Path=/dev/vol1/of.snapshot.crs.snap,Type=fileio

Write out your changes and run the following:
# service iscsi-target restart
Stopping iSCSI target service: [ OK ]
Starting iSCSI target service: [ OK ]

Refresh / rescan your iSCSI initiator so it sees the snapshot as another drive.

[root@RH4 /]# fdisk -l

Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1044 8281507+ 8e Linux LVM

Disk /dev/sdb: 1006 MB, 1006632960 bytes
31 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 1922 * 512 = 984064 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 1022 982111 83 Linux

Disk /dev/sdc: 1006 MB, 1006632960 bytes
31 heads, 62 sectors/track, 1022 cylinders
Units = cylinders of 1922 * 512 = 984064 bytes

Device Boot Start End Blocks Id System
/dev/sdc1 1 1022 982111 83 Linux


Then mount the partition with mount command.

Reference:
https://www.openfiler.com/community/forums/viewtopic.php?id=1124 by dtuneman

2 comments:

Patsy said...

This is great info to know.

Anonymous said...

Great and helpful tips...thanks