Difference between revisions of "Fedora Arm Secondary Architecture/Storage performance"
(→Initiator config) |
Chris Tyler (talk | contribs) (→Initiator config) |
||
Line 7: | Line 7: | ||
Host is OpenRD | Host is OpenRD | ||
− | Install the iscsi-initiator-utils package. | + | # Install the iscsi-initiator-utils package. |
− | Placed "InitiatorName=iqn.2000-10.ca.on.senecac.hongkong" in /etc/iscsi/initiatorname.iscsi | + | # Placed "InitiatorName=iqn.2000-10.ca.on.senecac.hongkong" in /etc/iscsi/initiatorname.iscsi |
− | Start the iscsi and iscsid services. | + | # Start the iscsi and iscsid services. |
− | Create an SSH tunnel to the remote host (running the target/portal software): ssh user@host -L 3260:localhost:3260 | + | # Create an SSH tunnel to the remote host (running the target/portal software): ssh user@host -L 3260:localhost:3260 |
− | Discover the remote targets: iscsiadm -m discovery -t sendtargets -p localhost:3260 | + | # Discover the remote targets: iscsiadm -m discovery -t sendtargets -p localhost:3260 |
− | List the targets: iscsiadm -m node -- the remote target(s) should be shown. | + | # List the targets: iscsiadm -m node -- the remote target(s) should be shown. |
− | Login to the targets: iscsiadm -m node -l | + | # Login to the targets: iscsiadm -m node -l |
− | You will now have an additional scsi disk device. Use this as one element of a RAID-1 array, using local storage (an LV or a looped-back file) as the other element. | + | # You will now have an additional scsi disk device. Use this as one element of a RAID-1 array, using local storage (an LV or a looped-back file) as the other element. |
− | Mount the new RAID-1 array and create a filesystem on it. Place some files there. | + | # Mount the new RAID-1 array and create a filesystem on it. Place some files there. |
− | Unmount the filesystem, stop the array, log out of the iSCSI disk (iscsiadm -m node -u). | + | # Unmount the filesystem, stop the array, log out of the iSCSI disk (iscsiadm -m node -u). |
− | Verify that the filesystem can be locally read on the machine hosting the target. | + | # Verify that the filesystem can be locally read on the machine hosting the target. |
== Target Config == | == Target Config == |
Revision as of 16:02, 24 March 2010
iSCSI
Initiator config
Host is OpenRD
- Install the iscsi-initiator-utils package.
- Placed "InitiatorName=iqn.2000-10.ca.on.senecac.hongkong" in /etc/iscsi/initiatorname.iscsi
- Start the iscsi and iscsid services.
- Create an SSH tunnel to the remote host (running the target/portal software): ssh user@host -L 3260:localhost:3260
- Discover the remote targets: iscsiadm -m discovery -t sendtargets -p localhost:3260
- List the targets: iscsiadm -m node -- the remote target(s) should be shown.
- Login to the targets: iscsiadm -m node -l
- You will now have an additional scsi disk device. Use this as one element of a RAID-1 array, using local storage (an LV or a looped-back file) as the other element.
- Mount the new RAID-1 array and create a filesystem on it. Place some files there.
- Unmount the filesystem, stop the array, log out of the iSCSI disk (iscsiadm -m node -u).
- Verify that the filesystem can be locally read on the machine hosting the target.
Target Config
- Host is HongKong
- IQN is "InitiatorName=iqn.2000-10.ca.on.senecac.hongkong"
- Target is "arm1iscsi" which is connected to the LV HongKong/arm1iscsi, size 2GB