Hi Peter,
I've not had a machine with 2 sata disks yet, so I'm not sure what the magic numbers would be... BUT, for normal scsi hotplug disks, you use the following to tell the kernel about new ones:
echo 'scsi add-single-device 0 0 0 0' > /proc/scsi/scsi
The magic numbers are the host, channel, id and lun (so 0 0 0 0 is your existing disk). At a guess, your new disk would be either 0 0 1 0, or
1 0 0 0 (but hey, why not 0 1 0 0).
Disclaimer: of course, just like plugging the drive in, you're risking it freezing up in a confused manner. If it does, try unplugging the drive to unfreeze it. If that doesn't work, then here's your chance to reboot with it plugged in :)
Maybe give that a shot and see if it finds anything.
Usually, if the numbers are wrong (or if it simply won't work), then it puts a 'add singledevice' into dmesg, but otherwise does nothing.
Cheers,
- Simon
On Tue, 22 Feb 2005, Peter Rundle wrote:
Sluggers,
I've just "hot plugged" a second serial ata disk into my FC2 Dell 750 server. Whether this was a "good idea" (tm) is debatable but I can't outage the server right now and want more disk space. The server is still up btw :-)
FC2 discovered the first disk during the original install and it is visible as /dev/sda , however I can't see the second disk using fdisk, for example
# fdisk /dev/sdb
Unable to open /dev/sdb
sdc, sdd, sde etc makes no difference, though all these entries exist in /dev.
I ran kudzu from the command line but it didn't detect it, (though it did detect that the console keyboard was unplugged)
Also:
# cat /proc/scsi/scsi Attached devices: Host: scsi0 Channel: 00 Id: 00 Lun: 00 Vendor: ATA Model: ST340014AS Rev: 1.02 Type: Direct-Access ANSI SCSI revision: 05
Ok so the kernel doesn't see the second disk right?
So, have I
a) done a "bad thing" (tm)
b) have to wait till I can reboot
c) not learnt about a command that will force detection of the disk (pick this one!, pick this one!)
TIA's
Pete
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/ Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html