LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-09-2015, 07:33 AM   #1
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Rep: Reputation: Disabled
please help with adding scsi hard disks to debian wheezy


Hello,

Please assist me with installing two scsi hard disks on a debian system.

It is a physical old HP machine (netserver lc2000) with a fresh debian wheezy 7.0.8 installed.

It has two scsi hdds (73GBs) that I don't know how to add to the system so I can partition, format, mount, etc.

This is what I have tried so far:

1. dmesg output
Code:
# dmesg | grep scsi
[    2.173909] scsi0 : pata_serverworks
[    2.174377] scsi1 : pata_serverworks
[    2.417276] scsi 0:0:0:0: CD-ROM            LITEON   CD-ROM LTN485S   JKF1 PQ: 0 ANSI: 5
[    2.622195] sr0: scsi3-mmc drive: 48x/48x cd/rw xa/form2 cdda tray
[    2.623194] sr 0:0:0:0: Attached scsi CD-ROM sr0
[    2.630319] sr 0:0:0:0: Attached scsi generic sg0 type 5
[    2.776733] scsi2 : hpnraid
[    2.780965] scsi 2:0:0:0: Direct-Access     HP       Net Mirror       V1.0 PQ: 0 ANSI: 2
[    2.940961] scsi3 : sym-2.2.3
[    3.106685] scsi4 : sym-2.2.3
[    6.049405] scsi: waiting for bus probes to complete ...
[    6.645717] scsi 2:2:0:0: Direct-Access     HP       9.10GB C 80-P94N P94N PQ: 0 ANSI: 2
[    6.647494] scsi 2:2:1:0: Direct-Access     HP       9.10GB C 80-P94N P94N PQ: 0 ANSI: 2
[    7.429104] scsi 2:2:5:0: Processor         HP       SAFTE; U160/M BP 1021 PQ: 0 ANSI: 2
[    7.943864] scsi 2:2:8:0: Direct-Access     HP 73.4G ATLAS10K3_73_SCA HP05 PQ: 0 ANSI: 2
[    7.945269] scsi 2:2:9:0: Direct-Access     HP 73.4G ATLAS10K3_73_SCA HP05 PQ: 0 ANSI: 2
[   16.936371] scsi 2:0:0:0: Attached scsi generic sg1 type 0
[   16.939819] scsi 2:2:0:0: Attached scsi generic sg2 type 0
[   16.942065] scsi 2:2:1:0: Attached scsi generic sg3 type 0
[   16.945404] scsi 2:2:5:0: Attached scsi generic sg4 type 3
[   16.947611] scsi 2:2:8:0: Attached scsi generic sg5 type 0
[   16.952269] scsi 2:2:9:0: Attached scsi generic sg6 type 0
2. lsscsi output
-I installed lsscsi and here is the output:
Code:
# lsscsi --device
[0:0:0:0]    cd/dvd  LITEON   CD-ROM LTN485S   JKF1  /dev/sr0 
[2:0:0:0]    disk    HP       Net Mirror       V1.0  /dev/sda 
[2:2:0:0]    disk    HP       9.10GB C 80-P94N P94N  -        
[2:2:1:0]    disk    HP       9.10GB C 80-P94N P94N  -        
[2:2:5:0]    process HP       SAFTE; U160/M BP 1021  -        
[2:2:8:0]    disk    HP 73.4G ATLAS10K3_73_SCA HP05  -        
[2:2:9:0]    disk    HP 73.4G ATLAS10K3_73_SCA HP05  -
and
Code:
# lsscsi -H
[0]    pata_serverworks  
[1]    pata_serverworks  
[2]    aacraid       
[3]    sym53c8xx     
[4]    sym53c8xx
3. force scsi scan
-I tried to use this command to force a rescan for the hdds, but nothing happened:
Code:
echo "- - -" > /sys/class/scsi_host/host3/scan
-no errors, but log says nothing
-tried the above with host0 - 4, same result

4. fdisk -l
Code:
# fdisk -l

Disk /dev/sda: 9098 MB, 9098887168 bytes
255 heads, 63 sectors/track, 1106 cylinders, total 17771264 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000a5674

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048    17770495     8884224   83  Linux
5. tried to specifically add one device but it didn't work:
Code:
# echo "scsi add-single-device 2 2 8 0" > /proc/scsi/scsi
-bash: /proc/scsi/scsi: No such file or directory
So, please assist if you have some spare time with adding those devices.

Thank you in advance.
 
Old 02-09-2015, 02:39 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Did you run the above commands as root? because you will get different results when run as a normal user ( usually )
 
Old 02-09-2015, 02:43 PM   #3
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
yes I was root all the time.
 
Old 02-09-2015, 02:52 PM   #4
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Void, Linux From Scratch, Slackware64
Posts: 3,150

Rep: Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856Reputation: 856
Oh well worth a try!
Can't help I'm afraid haven't used scsi in ages, all usb now!
Good luck.
 
Old 02-09-2015, 03:47 PM   #5
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
I suggest that you log in as root and then start a GUI, either gnome or KDE then run partitionmanager. Partitionmanager will give you graphic displays of all of your hard drives and allow you to partition them and format the partitions. Also while you are at it I suggest that you tell partitionmanager to label the partitions so that in addition to the long, unmemorable UUIDs you will also have sane, memorable labels.

----------------------
Steve Stites
 
Old 02-10-2015, 01:22 AM   #6
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Thank you for your answers guys.

As I mentioned earlier, I do everything as root.

On a sidenote, this server is text only, no gui, and I don't have physical access to it, only ssh, so can't really start it with live isos or anything like that. Surely there must be some way of adding a scsi device with low-level tools...
 
Old 02-16-2015, 05:45 AM   #7
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
bump?
 
Old 02-17-2015, 09:09 AM   #8
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
I also tried this command:

Code:
# sfdisk -l

Disk /dev/sda: 1106 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

   Device Boot Start     End   #cyls    #blocks   Id  System
/dev/sda1   *      0+   1106-   1107-   8884224   83  Linux
/dev/sda2          0       -       0          0    0  Empty
/dev/sda3          0       -       0          0    0  Empty
/dev/sda4          0       -       0          0    0  Empty
 
Old 02-17-2015, 07:06 PM   #9
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,982

Rep: Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625Reputation: 3625
Parted and gparted as well as many other apps can be run from a command line.

All modern linux accesses drives as scsi now anyway so don't get confused here.

I think before you get too far, you might mention if the server has a raid card.

Added drives shouldn't be /sda
 
Old 02-24-2015, 02:07 AM   #10
Iancul1981
LQ Newbie
 
Registered: Feb 2015
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hi jefro, thank you for your answer. The server does have a raid controller, I used it to configure the raid1 array where I installed the system. For the other drives I made no changes (I just left them as they were).
 
Old 02-24-2015, 07:16 AM   #11
Guttorm
Senior Member
 
Registered: Dec 2003
Location: Trondheim, Norway
Distribution: Debian and Ubuntu
Posts: 1,453

Rep: Reputation: 447Reputation: 447Reputation: 447Reputation: 447Reputation: 447
Hi

I think the problem is that you're using hardware raid and you don't have the drivers. So I think you have two options. One is to install the driver, it could be in non-free? Make sure you have non-free firmware installed. Other is two go in the BIOS setup and set it up to not use Raid. I would do the latter- If you set it up with mdadm, you can replace hardware later - you won't need the exact raid controller.
 
Old 02-24-2015, 08:28 AM   #12
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
It is possible that the raid controller doesn't know what to do with the new disks so it isn't passing them on (a passthrough option).

You might check the raid controller to see if there are options for that.

(I could be all wet - the fact that the disks appear to be connected as sg1,2,3,5 and 6, but it seems the controller on sg4 might not be passing the identity of 5/6 devices as disks.)

side note: I believe /proc/scsi/scsi is a read only file, you can't update it directly.
Something else to look at is /sys/block. This will show everything known to be a block device even if it doesn't show up in /dev.

Last edited by jpollard; 02-24-2015 at 08:43 AM.
 
  


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
No scsi scanner with debian wheezy gnome2.30.2 chiendarret Linux - Software 4 07-15-2011 02:48 AM
Adding new SCSI Hard disk Saravana Pandi Linux - Server 1 01-24-2007 04:26 PM
Adding new SCSI Hard disk Saravana Pandi Linux - Hardware 2 01-24-2007 01:01 PM
LVM - adding a new scsi hard disk ddaas Red Hat 1 07-28-2005 02:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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