What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work?
#1
What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work?
Yo,
As I've been load/reloading a test system...I keep running into phantom devices (since removed) and of course when I add a device it's often not fully understood or seen correctly by the disk manager or mediad to just work.  No, I'm not talking duplicate SCSI IDs or termination...I literally mean the software interface in Irix 6.5 for desktop usage of SCSI storage peripherals - Drive icons, drive info, CDROM Eject, etc.  Currently using Irix 6.5.19 media.

Stuff at time of install works fine.  Stuff I add later, half works or doesn't get created automatically. Old stuff like floppy drives, still have entries during start even when they are gone.

I've tried some MAKEDEV stuff inside /dev, I've tried autoconfig...what's the skinny on when you're adding and removing devices very often on Irix.  I need to temporarily add peripherals (SCSI CF reader, Floptical drive, second hard drive, etc) then later on remove it from the system.

I know the devices work but after first-install I have a hard time installing and then removing new peripherals in software.

So what's the secret to this?
weblacky
I play an SGI Doctor, on daytime TV.

Trade Count: (10)
Posts: 1,716
Threads: 88
Joined: Jan 2019
Location: Seattle, WA
Find Reply
09-01-2021, 02:20 AM
#2
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work?
Autoconfig is for the kernel -- it has no effect otherwise.

Here's the manpage: https://nixdoc.net/man-pages/IRIX/man1/mediad.1.html

I've had plans to eventually reverse engineer this beast, but that's tabled until my backlog of shit is taken care of.

I'm the system admin of this site. Private security technician, licensed locksmith, hack of a c developer and vintage computer enthusiast. 

https://contrib.irixnet.org/raion/ -- contributions and pieces that I'm working on currently. 

https://codeberg.org/SolusRaion -- Code repos I control

Technical problems should be sent my way.
Raion
Chief IRIX Officer

Trade Count: (9)
Posts: 4,240
Threads: 533
Joined: Nov 2017
Location: Eastern Virginia
Website Find Reply
09-01-2021, 02:43 AM
#3
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work?
You can chkconfig mediad on to activate the removable media daemon. This is basically for optical drives, to automatically mount volumes when a disc is inserted.
When you turn off power, disconnect or reconnect drives, and restart, the system automatically detects that there is a device, but it doesn't know that you wish to have it mounted somewhere. That is what fstab is for. So you can edit /etc/fstab and choose where you want your new device to get mounted during startup.
If you only want to mount a device during the current session you use mount(1) and umount(1).

Personaliris O2 Indigo2 R10000/IMPACT Indigo2 R10000/IMPACT Indigo2 Indy   (past: 4D70GT)
robespierre
refector peritus

Trade Count: (0)
Posts: 640
Threads: 3
Joined: Nov 2020
Location: Massholium
Find Reply
09-01-2021, 08:43 AM
#4
RE: What's the proper way to add & remove SCSI devices in Irix 6.5 for mediad to work?
Hi Weblacky,

I suggest:

1. Stop mediad - /etc/init.d/mediad stop
2. Probe and/or reset scsi bus - scsiha -p <N> or <HW TREE NAME>
3. Restart mediad - /etc/init.d/mediad start

Please check man page on scsiha as I am not on machine to check command option details.

Cheers from Oz,

jwhat/John
jwhat
Octane/O350/Fuel User

Trade Count: (0)
Posts: 513
Threads: 29
Joined: Jul 2018
Location: Australia
Find Reply
09-02-2021, 08:25 PM


Forum Jump:


Users browsing this thread: 1 Guest(s)