LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-02-2011, 01:48 PM   #1
sam42
LQ Newbie
 
Registered: Mar 2004
Posts: 20

Rep: Reputation: 3
iscsiadm problems with /dev devices


Hi,

I am studying for the RHCE, and there is this question:

"Configure a system as an iSCSI initiator that persistently mounts an iSCSI target."

Using CentOS 6.

Discover the iscsi targets:

iscsiadm -m discoverydb -t st -p 192.168.122.157 -D

This works.

Then:

service iscsi start

The result:

The iscsi drive will appear as /dev/sg2 . It shows up as a sg device. However, to be usable and be mountable, it needs to be a regular scsi device such as /dev/sdb or /dev/sdc or something.

Why is it appearing as sg device, and not as sd device?

Any ideas what to try next?

Thanks.
 
Old 11-08-2011, 01:56 AM   #2
abohmeed
LQ Newbie
 
Registered: Mar 2011
Posts: 21

Rep: Reputation: 3
Hi there
The Linux sg driver is a upper level SCSI subsystem device driver that is used primarily to handle devices _not_ covered by the other upper level drivers: sd (disks), st (tapes) and sr (CDROMs and DVDs). The sg driver is used for enclosure management, cd writers, applications that read cd audio digitally and scanners. Sg can also be used for less usual tasks performed on disks, tapes and cdroms. Sg is a character device driver which, in some contexts, gives it advantages over block device drivers such as sd and sr. The interface of sg is at the level of SCSI command requests and their associated responses. (copied)
Hope this clears things out...
Regards
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
openSUSE Multimedia Optical Devices /dev/dvd & /dev/cdrom Configuration jdmcdaniel3 SUSE / openSUSE 2 10-31-2010 01:06 PM
/dev/sda (SATA) devices detected as /dev/hda Please help ayvazyan Linux - Newbie 2 01-23-2010 02:17 AM
Problems in /dev: not enough md devices Dii Slackware 2 08-23-2004 06:43 AM
mounting 2 ide-scsi devices /dev/cdrom and /dev/cdrom1 issue penguin123 Linux - Hardware 3 09-26-2003 08:36 PM
Two Video Devices - /dev/video0 & /dev/video1 liguorir Linux - Software 1 07-21-2003 08:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:34 PM.

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