Difference between revisions of "ISCSI"
Line 15: | Line 15: | ||
Export the LV: add it to /etc/tgt/targets.conf (note that there's a convention on how to export these!) | Export the LV: add it to /etc/tgt/targets.conf (note that there's a convention on how to export these!) | ||
− | {{Code| | + | {{Code|<target iqn.2010-08.local.bonabo:galileo.lun1> |
backing-store /dev/vg00/lvtime | backing-store /dev/vg00/lvtime | ||
− | </target | + | </target>}} |
Start the iSCSI target daemon and make sure it starts at boot time: | Start the iSCSI target daemon and make sure it starts at boot time: |
Revision as of 09:31, 23 March 2011
Preliminary (manual) suport for iSCSI in Amahi 6.
From this forums post.
Server side
Set up an iSCSI server on the Amahi box:
bash code |
---|
root@host# yum install scsi-target-utils
|
Set up 1 Logical Volume (LV) that will be exported as an iSCSI LUN. The below output shows my LV created for time machine (hence the name lvtime).
bash code |
---|
root@host# lvs | grep time lvtime vg00 -wi-ao 500.00g
|
Export the LV: add it to /etc/tgt/targets.conf (note that there's a convention on how to export these!)
bash code |
---|
<target iqn.2010-08.local.bonabo:galileo.lun1> backing-store /dev/vg00/lvtime </target>
|
Start the iSCSI target daemon and make sure it starts at boot time:
bash code |
---|
root@host# service tgtd start; chkconfig tgtd on
|
Check the exported LUN(s):
bash code |
---|
root@host# tgt-admin -s
|
Client side
I installed globalSAN iSCSI Initiator for OS X by Studio Network Solutions (free community supported) iSCSI client for OS X) on the Mac.
I configured it to "see" the iSCSI lun (just type in the iqn IIRC); since it's presented to the OS as a normal disk you need to partition the drive first (it's a blank disk as far as the Mac is concerned). Then configure Time Machine to use that disk and you're done!