LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 10-20-2022, 05:21 AM   #1
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 125

Rep: Reputation: 14
RAID doesn't show up as /dev/sg1 and /dev/sg2


Hello,

we have multiple Debian servers with an adaptec RAID controller.
Two harddisks - RAID 1

Those harddisks usually show up as
/dev/sg1 and /dev/sg2 with the controller being /dev/sg0

lsscsi -g
[0:0:0:0] disk Adaptec Raid-1 V1.0 /dev/sda /dev/sg0
[0:1:0:0] disk SEAGATE ST300MP0006 N004 - /dev/sg1
[0:1:1:0] disk SEAGATE ST600MP0136 C004 - /dev/sg2

So I can use
smartctl -a /dev/sg1
and get the "Elements in grown defect list: 0"
And I would like to see that value.

On the latest server there is no /dev/sg1 or /dev/sg2 showing up.
I've compared the RAID settings but I can't find what might be different.

Does anybody have an idea what else could have gone wrong or which settings I could check?
 
Old 10-20-2022, 06:24 AM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 3,349

Rep: Reputation: Disabled
If the new server is running a different kernel configuration, then perhaps SCSI Generic support is compiled as a module.

Try sudo modprobe sg and see what happens.
 
Old 10-20-2022, 06:26 AM   #3
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 125

Original Poster
Rep: Reputation: 14
no change

# lsmod | grep sg
ipmi_msghandler 118784 1 ipmi_devintf
sg 36864 0
scsi_mod 270336 3 aacraid,sd_mod,sg
 
Old 11-02-2022, 02:25 AM   #4
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 125

Original Poster
Rep: Reputation: 14
I've found
https://www.thomas-krenn.com/de/wiki...AID_Controller

It says if the disks aren't visible set the option expose_physicals of the aacraid driver to -1.

How do I do that?

systool -v -m aacraid
shows expose_physicals as -1

also
/sys/module/aacraid/parameters/expose_physicals
-1

I've found a message somewhere saying that -1 doesn't work any more, and he had to set it to 1, but whatever I try it shows up as -1

Last edited by KatrinAlec; 11-02-2022 at 03:43 AM.
 
Old 11-02-2022, 03:47 AM   #5
KatrinAlec
Member
 
Registered: Feb 2012
Posts: 125

Original Poster
Rep: Reputation: 14
I think I've found what I've been looking for:

I edited
/etc/initramfs-tools/modules

and put
options aacraid expose_physicals=1
in there.

ran
update-intramfs -u
and
reboot

Now it shows up as 1 and now there are
/dev/sg1 and /dev/sg2
showing up.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
RAID Card Drive show but don't show data ghaznfar Ubuntu 1 09-09-2022 08:09 AM
gtkmm: show() doesn't show the window when adding windows from other places than main() Hvl Programming 0 06-21-2012 09:54 AM
pseudo terminals: /dev/ptmx <-> /dev/pts/ vs. /dev/ptyp <-> /dev/ttyp rtspitz Linux - Software 2 12-02-2011 02:07 PM
USB drive... /dev/sda1 doesn't show unless I try mounting /dev/sda as vfat finite Linux - Hardware 8 03-10-2009 12:52 AM
scanner hops over between sg0 and sg2 hetOrakel Linux - Hardware 0 01-21-2007 04:34 PM

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

All times are GMT -5. The time now is 02:27 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