Help answer threads with 0 replies.
Go Back > Blogs > Felicia1326
User Name


Rate this Entry

ISCSI no new device in /dev

Posted 09-21-2010 at 12:46 PM by Felicia1326

Well, here it is kiddies, the answer to the no device in /dev. One hasn't been created and presented to the server yet. I know it sounds crazy, but this was my answer and I honestly hope it is yours as well.
If you're using a NetApp device my my my are you in luck. The description that follows will outline setting up iSCSI in RHEL 5.5 and then hooking up with NetApp all the way through to adding the entry to /etc/fstab...yay.
So buckle up and remember, without sunshine, all is?

Configuring NetApp iSCSI Device In RHEL5 for Virtualization

1) Go to and login with your user name and ID.
2) Click on the download software link.
3) In the search box at the top look for iscsi-initiator
4) Click on the iscsi-initiator-utils link and find the package for your distro of linux.
a. In this case it was iscsi-initiator-utils-
5) Move the file to the server you need to install on and run the following command
a. rpm -ivh - -test iscsi-initiator-utils-
b. you may receive the following error message: warning: iscsi-initiator-utils- Header V3 DSA signature: NOKEY, key ID 37017186
***This just means that the Key is not registered and is just a warning, you can still install.
c. Run:
rpm ivh iscsi-initiator-utils-
d. You will receive the same warning but the package installs.
e. Verify package installation by running:
rpm qa | grep iscsi
This will return: iscsi-initiator-utils-
6) cd /etc/iscsi
vi initiatorname.iscsi (Default Initiator String)
Comment this out and add the appropriate string for your system.
7) You will also have to run the iscsiadm target discovery command syntax below.
a. iscsiadm -m discovery -t sendtargets -p <IP address of target>
b. You may also need to add the port number at the end if the IP alone does not work. For example iscsiadm -m discovery -t sendtargets -p 192.XX.XX.XX:3260
8) Go to the browser for your netapp device. Such as, http://netappdevice/na_admin/
a. Supply username and password for your device
b. In the Filer View select LUN and under LUN select iSCSI.
c. Under manage initiator security you should see you initiator name listed with no group name associated.
d. Just above iSCSI is Initiator Groups click on this and then select Add. Here you can create a group and link it to your initiator. You may name the group whatever you like
e. Next you want to create a volume.
i. Select flexible
ii. Name your volume leave POSIX and do not select UTF-8
iii. Chose the appropriate aggregate and set space guarantee to none.
iv. Select total size, enter the size in Mb/Gb then set the snapshot reserve to 0%.
v. Select Commit to create the volume.
f. Now create your lun.
i. Enter the path you will use the name from above and then /<filesystem name> so mine was /vol/okctstb02/vm
ii. Select the LUN protocol type. (Solaris, Linux, Windows etc)
iii. Enter the size of the volume above for your lun
iv. Unselect the Space Reserved check box.
v. Click Add.
9) You will now need to change the snap shot settings on your netapp device.
a. Telnet to your netapp device
b. Run vol status
c. vol options <someserver> nosnapdir on0
d. vol options <someserver> nosnap on
e. vol statuw make sure it shows nosnap=on and nosnapdir=on
10) Login to the server that will be utilizing the iSCSI device (LUN)
a. The server will need to be assigned an IP on the same network as the iSCSI target address.
b. You will then need to create a partition table
i. fdisk /dev/sda
ii. n <enter> (add a new partition)
iii. p <enter> (primary partition)
iv. 1 (partition number 1-4)
v. <enter> (beginning cylinder 1)
vi. <enter> (ending block last cylinder)
vii. w (write table to disk and exit)
c. Make a newfs
i. A new device will be created in /dev /dev/sda1
ii. mkfs t ext3 /dev/sda1
iii. tune2fs -c 0 -m 0 -i 0 /dev/sda1 (keeps auto fsck from running)
d. Make a new directory for the lun and mount to it
i. mkdir /vm
ii. mount t ext3 /dev/sda1 /vm
11) Add entry to /etc/fstab so volume will mount on boot.
a. vi /etc/fstab
b. LABEL=vm /vm ext3 defaults 0 0
Posted in Uncategorized
Views 2880 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 02:42 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration