Rescan hard drives

cronfy cronfy at gmail.com
Tue Nov 23 23:26:31 UTC 2010


Hello,

I am using Adaptec 3405 with FreeBSD 7.3. After hot-swapping some hard
drives and deleting/creating RAID1 mirror I stuck with situation when I can
not work with newly created device.

It is aacd1. Previously it was 1000G drive without RAID. Now it is 300G
RAID1 mirror. But `geom disk list` reports:

Geom name: aacd1
Providers:
1. Name: aacd1
   Mediasize: 999642103808 (931G)
   Sectorsize: 512
   Mode: r0w0e0

Geom name: aacd1
Providers:
1. Name: aacd1
   Mediasize: 299563483136 (279G)
   Sectorsize: 512
   Mode: r0w0e0
   fwsectors: 63
   fwheads: 255

If I delete this RAID1 with arcconf, geom disk list still reports about 931G
drive at aacd1, though it was swapped out from server.

`dmesg | tail` says kernel detected new drive:

aacd1: <RAID 1 (Mirror)> on aac0
aacd1: 285686MB (585084928 sectors)


But fdisk, bsdlabel, dd and others do not work with aacd1 because of error
message: 'Device not configured'. Also there is old partition table of
previous disk seen in `ls /dev/aacd1*`, tough new disk was not partitioned.

Is there a way to reread connected drives information in FreeBSD? I tried:

# atacontrol list
ATA channel 2:
    Master:      no device present
    Slave:       no device present
ATA channel 3:
    Master:      no device present
    Slave:       no device present
ATA channel 4:
    Master:      no device present
    Slave:       no device present
ATA channel 5:
    Master:      no device present
    Slave:       no device present

And

# camcontrol devlist
camcontrol: couldn't open /dev/xpt0: No such file or directory

They do not work :(

Would be appreciated for any hint.

-- 
// cronfy


More information about the freebsd-questions mailing list