QNAP, iSCSI and Ubuntu 12.04 server
From MyWiki
(Difference between revisions)
(First draft of the article.) |
m (HighlyAvailableiSCSITarget added to the reference material) |
||
(One intermediate revision not shown) | |||
Line 2: | Line 2: | ||
1) [http://monzell.com/post/10060910580/configuring-iscsi-with-rhel-scientific-linux-or-centos Configuring ISCSI with RHEL, Scientific Linux or CentOS 6]<br> | 1) [http://monzell.com/post/10060910580/configuring-iscsi-with-rhel-scientific-linux-or-centos Configuring ISCSI with RHEL, Scientific Linux or CentOS 6]<br> | ||
2) [http://www.server-world.info/en/note?os=Ubuntu_12.04&p=iscsi&f=2 Ubuntu 12.04 LTS. Configuring iSCSI initiator]<br> | 2) [http://www.server-world.info/en/note?os=Ubuntu_12.04&p=iscsi&f=2 Ubuntu 12.04 LTS. Configuring iSCSI initiator]<br> | ||
+ | 3) [https://help.ubuntu.com/community/HighlyAvailableiSCSITarget Highly Available iSCSI Target]<br> | ||
+ | |||
Install iSCSI initiator first: | Install iSCSI initiator first: |
Current revision as of 22:42, 8 November 2013
Reference:
1) Configuring ISCSI with RHEL, Scientific Linux or CentOS 6
2) Ubuntu 12.04 LTS. Configuring iSCSI initiator
3) Highly Available iSCSI Target
Install iSCSI initiator first:
apt-get install open-iscsi
Make the following changes to /etc/iscsi/iscsid.conf
node.startup = automatic node.session.auth.authmethod = CHAP node.session.auth.username = user_name_on_QNAP_for_iSCSI_target node.session.auth.password = user_password_on_QNAP_for_iSCSI_target
Run discovery of available targets, show target's status and login:
iscsiadm -m discovery -t st -p qnap_hostname_here iscsiadm -m node -o show iscsiadm -m node --login
Check that you can see the newly attached SCSI device and check it out with frisk:
cat /proc/partitions fdisk /dev/sdb
When I did the discovery for the first time I forgot to set authmethod, username and password in /etc/iscsi/iscsid.conf
Discovery went through without a problem, but --login failed with:
iscsiadm: initiator reported error (19 - encountered non-retryable iSCSI login failure)
So, I cleaned things up first with:
iscsiadm -m discovery -t st -p qnap_hostname_here -o delete
And run discovery again.