[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debian-users:51814] Re: デバイス名の固定方法



原田さん、内藤さん
返答ありがとうございます。

> おそらく以下の記事が参考になるのではないでしょうか。
> http://d.hatena.ne.jp/kakurasan/20080421

/etc/initramfs-tools/conf.d/resumeの中身が
RESUME=/dev/sda5
となっており、/dev/sdaと認識されたUSB-HDDにはsda5という
パーティションがないために
> resume: Could not stat the resume device file:
>         Please type in the file name to try again  or press ENTER to
となるわけですね。
uswsuspが関係しているとは全く気付きませんでした。

原田さん、内藤さんがご指摘のようにUUID指定で
起動時に止まることはなくなりそうですが、
そもそも、USB-HDDが/dev/sdcで認識されれば全て解決しそうなので
いろいろ調べたところ、/etc/initramfs-tools/modulesで
モジュールの読込順が指定できるようなので
USBよりSCSI,SAS関係のモジュールを先に読み込ませることで、
希望するデバイス名になると思い以下の手順で設定・検証を行いました。
※今回はUSB-HDDを接続していない状態での検証です。

# lsmod
  :
sd_mod                 19040  8
ata_piix               13896  0
libata                 89396  1 ata_piix
mptsas                 24360  6
mptscsih               21664  1 mptsas
mptbase                46176  2 mptsas,mptscsih
scsi_transport_sas     25280  1 mptsas
scsi_mod              124168  8
usb_storage,sg,sr_mod,sd_mod,libata,mptsas,mptscsih,scsi_transport_sas
uhci_hcd               21164  0
ehci_hcd               28136  0
usbcore               112644  7 usb_storage,usbhid,uhci_hcd,ehci_hcd
generic                 4868  0 [permanent]
tg3                    94948  0
ide_core              110504  3 usb_storage,ide_generic,generic
thermal                13608  0
processor              28840  1 thermal
fan                     4804  0

# vi /etc/initramfs-tools/modules
scsi_mod
scsi_transport_sas
mptbase
mptscsih
mptsas

# update-initramfs -u
# reboot

# lsmod
  :
usbhid                 37248  2
ata_piix               13896  0
libata                 89396  1 ata_piix
ehci_hcd               28136  0
tg3                    94948  0
generic                 4868  0 [permanent]
ide_core              110504  2 ide_generic,generic
uhci_hcd               21164  0
usbcore               112644  6 usbhid,ehci_hcd,uhci_hcd
sd_mod                 19040  8
thermal                13608  0
processor              28840  1 thermal
fan                     4804  0
mptsas                 24360  6
mptscsih               21664  1 mptsas
mptbase                46176  2 mptsas,mptscsih
scsi_transport_sas     25280  1 mptsas
scsi_mod              124168  7
sg,sr_mod,libata,sd_mod,mptsas,mptscsih,scsi_transport_sas

# dmesg
  :
SCSI subsystem initialized
Fusion MPT base driver 3.04.01
Copyright (c) 1999-2005 LSI Logic Corporation
Fusion MPT SAS Host driver 3.04.01
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 169
mptbase: Initiating ioc0 bringup
ioc0: SAS1064E: Capabilities={Initiator}
PCI: Setting latency timer of device 0000:02:00.0 to 64
scsi0 : ioc0: LSISAS1064E, FwRev=01120000h, Ports=1, MaxQ=511, IRQ=169
  Vendor: FUJITSU   Model: MBA3073RC         Rev: 3502
  Type:   Direct-Access                      ANSI SCSI revision: 05
  Vendor: FUJITSU   Model: MBA3073RC         Rev: 3502
  Type:   Direct-Access                      ANSI SCSI revision: 05
ACPI (exconfig-0455): Dynamic SSDT Load - OemId [ PmRef] OemTableId [
Cpu0Ist] [20060707]
ACPI (exconfig-0455): Dynamic SSDT Load - OemId [ PmRef] OemTableId [
Cpu1Ist] [20060707]
ACPI Exception (acpi_processor-0681): AE_NOT_FOUND, Processor Device
is not present [20060707]
ACPI: Getting cpuindex for acpiid 0x2
ACPI Exception (acpi_processor-0681): AE_NOT_FOUND, Processor Device
is not present [20060707]
ACPI: Getting cpuindex for acpiid 0x3
SCSI device sda: 143374744 512-byte hdwr sectors (73408 MB)
sda: Write Protect is off
sda: Mode Sense: bf 00 00 08
SCSI device sda: drive cache: write back
SCSI device sda: 143374744 512-byte hdwr sectors (73408 MB)
sda: Write Protect is off
sda: Mode Sense: bf 00 00 08
SCSI device sda: drive cache: write back
 sda: sda1 sda2 sda3 < sda5 >
sd 0:0:0:0: Attached scsi disk sda
SCSI device sdb: 143374744 512-byte hdwr sectors (73408 MB)
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v3.0
ACPI: PCI Interrupt 0000:00:1d.0[A] -> GSI 23 (level, low) -> IRQ 217
PCI: Setting latency timer of device 0000:00:1d.0 to 64
uhci_hcd 0000:00:1d.0: UHCI Host Controller
uhci_hcd 0000:00:1d.0: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:1d.0: irq 217, io base 0x0000ff00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
sdb: Write Protect is off
sdb: Mode Sense: bf 00 00 08
SCSI device sdb: drive cache: write back
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
SCSI device sdb: 143374744 512-byte hdwr sectors (73408 MB)
sdb: Write Protect is off
sdb: Mode Sense: bf 00 00 08
SCSI device sdb: drive cache: write back
 sdb: sdb1 sdb2 sdb3 < sdb5 >
sd 0:0:1:0: Attached scsi disk sdb
ACPI: PCI Interrupt 0000:00:1d.1[B] -> GSI 19 (level, low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:1d.1 to 64
uhci_hcd 0000:00:1d.1: UHCI Host Controller
uhci_hcd 0000:00:1d.1: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:1d.1: irq 225, io base 0x0000fe00
usb usb2: configuration #1 chosen from 1 choice
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
ACPI: PCI Interrupt 0000:00:1d.7[A] -> <7>libata version 2.00 loaded.
GSI 23 (level, low) -> IRQ 217
PCI: Setting latency timer of device 0000:00:1d.7 to 64
ehci_hcd 0000:00:1d.7: EHCI Host Controller
ehci_hcd 0000:00:1d.7: new USB bus registered, assigned bus number 3
ehci_hcd 0000:00:1d.7: debug port 1
PCI: cache line size of 32 is not supported by device 0000:00:1d.7
ehci_hcd 0000:00:1d.7: irq 217, io mem 0xfdfff000
ehci_hcd 0000:00:1d.7: USB 2.0 started, EHCI 1.00, driver 10 Dec 2004
usb usb3: configuration #1 chosen from 1 choice
hub 3-0:1.0: USB hub found
hub 3-0:1.0: 6 ports detected
ata_piix 0000:00:1f.2: version 2.00
ata_piix 0000:00:1f.2: MAP [ P0 P2 P1 P3 ]
ACPI: PCI Interrupt 0000:00:1f.2[A] -> GSI 19 (level, low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:1f.2 to 64
ata1: SATA max UDMA/133 cmd 0x1F0 ctl 0x3F6 bmdma 0xFD00 irq 14
scsi1 : ata_piix
ATA: abnormal status 0x7F on port 0x1F7
ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xFD08 irq 15
scsi2 : ata_piix
ata2.00: ATAPI, max UDMA/100
usb 1-1: new low speed USB device using uhci_hcd and address 2
ata2.00: configured for UDMA/100
  Vendor: HL-DT-ST  Model: DVDRAM_GH10N      Rev: EF07
  Type:   CD-ROM                             ANSI SCSI revision: 05
ata_piix 0000:00:1f.5: MAP [ P0 P2 P1 P3 ]


dmesgを見る限り、USB-HDDより先にSASを認識しているので
/dev/sda:SAS
/dev/sdb:SAS
/dev/sdc:USB-HDD
となりそうです。

後日USB-HDDを接続して再度検証して報告致します。
ありがとうございました。