[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[debian-users:51800] デバイス名の固定方法
- From: mloolm <mloolm.ds@xxxxxxxxx>
- Subject: [debian-users:51800] デバイス名の固定方法
- Date: Wed, 28 Jan 2009 14:25:59 +0900
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type:content-transfer-encoding; bh=JZ3+OXOFiH2fiYO9kF/C+2ZO8SWu5/maelWCR0aWEGE=; b=ZSQl4ua3vAD2I05WXgUTDjG/ipOufYWcgYawBzV9RepFblxQGMnUOTSiSdM7ThvmXP SdVThHjT9bj7w+DkbgugdgBkumOGW2OaIVCdrUYZ5i6MPNVwbevkQhjleO48+WRStOru U3am0TiN0j5FXCKKaIPTQSwGgOC9UZHARWfcE=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type :content-transfer-encoding; b=DAZHULrELDuBpwAXPn8+g6gcIqjrR+yV4D4ocgjTinuIX4m2HYEc6W0wJzUOOEaqLm 4AufbX1ssnwp5RuzKCQe27eUO/hzWF1qjqIomxYqxifJGOUjw23cfLfZBDRy+wea94Nj 0Q6J7VryOdY17QWRoBFluplUSa1eebQmhBRB0=
- List-help: <mailto:debian-users-ctl@debian.or.jp?body=help>
- List-id: debian-users.debian.or.jp
- List-owner: <mailto:debian-users-admin@debian.or.jp>
- List-post: <mailto:debian-users@debian.or.jp>
- List-software: fml [fml 4.0.3 release (20011202/4.0.3)]
- List-unsubscribe: <mailto:debian-users-ctl@debian.or.jp?body=unsubscribe>
- X-ml-info: If you have a question, send e-mail with the body "help" (without quotes) to the address debian-users-ctl@debian.or.jp; help=<mailto:debian-users-ctl@debian.or.jp?body=help>
- X-ml-name: debian-users
- X-mlserver: fml [fml 4.0.3 release (20011202/4.0.3)]; post only (only members can post)
- X-spam-checker-version: SpamAssassin 3.1.7-deb3 (2006-10-05) on osdn.debian.or.jp
- X-spam-level:
- X-spam-status: No, score=-2.4 required=10.0 tests=KI autolearn=disabled version=3.1.7-deb3
- Message-id: <d3dfe56e0901272125v6569b7ccpc194e475cbb3336b@xxxxxxxxxxxxxx>
- X-mail-count: 51800
はじめまして。mloolmと申します。
デバイス名の固定方法についてご教示ください。
富士通CELSIUS N460にDebian etchをインストールし、
以下2本のディスクでmdadmを使ってRAID1に構築してます。
/dev/sda:SAS
/dev/sdb:SAS
このマシンに外付けHDD(バッファローHD-HS320SU2)を
USB接続したところUSB-HDDを/dev/sdaと認識することがあり
起動中に止まってしまいます。
ENTERを押せば起動が続行され、以下のデバイス名で起動します。
/dev/sda:USB-HDD
/dev/sdb:SAS
/dev/sdc:SAS
起動時のコンソールを見える範囲で書き写しました。
===========起動時のコンソール==============
Begin: Loading MD modules ...
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
md: raid1 personality registered for level 1
Success: loaded module raid1.
Done.
Begin: Assembling all MD arrays ...
md: md0 stopped.
md: bind<sdc1>
md: bind<sdb1>
raid1: raid set md0 active with 2 out of 2 mirrors
mdadm: /dev/md0 has been started with 2 drives.
md: md1 stopped.
md: bind<sdc2>
md: bind<sdb2>
raid1: raid set md1 active with 2 out of 2 mirrors
mdadm: /dev/md1 has been started with 2 drives.
Success: assembled all arrays.
Done.
Done.
Begin: Running /scripts/local-premount ...
resume: libgcrypt version: 1.2.3
resume: Could not stat the resume device file:
Please type in the file name to try again or press ENTER to
boot the system:
===========起動時のコンソール==============
※dmesgをメールの最後に抜粋してます。
RAIDの方はsdbとsdcで動いているようです。
===========/proc/mdstat==============
Personalities : [raid1]
md1 : active raid1 sdb2[0] sdc2[1]
497920 blocks [2/2] [UU]
md0 : active raid1 sdb1[0] sdc1[1]
69031168 blocks [2/2] [UU]
unused devices: <none>
===========/proc/mdstat==============
RAIDの方はデバイス名が変わっても動いているようなので
いいのですが、(気持ち悪いですが。。。)リモートで管理する
サーバになるので、起動中に止まるのをどうにかしたいのです。
そこでudevでUSB-HDDのデバイス名を/dev/sdcもしくは/dev/usbhdd等に
固定しようと思い、以下のサイトを参考に設定を行いました。
http://www.gentoo.gr.jp/transdocs/udevrules/udevrules.html
#USB-HDDが/dev/sdaで起動しているとき
udevinfo -a -p /sys/block/sda
===========抜粋==============
looking at parent device '/devices/pci0000:00/0000:00:1d.7/usb3/3-2':
KERNELS=="3-2"
SUBSYSTEMS=="usb"
DRIVERS=="usb"
ATTRS{configuration}==""
ATTRS{serial}=="00210115DF"
ATTRS{product}=="USB-SATA Bridge"
ATTRS{manufacturer}=="BUFFALO"
===========抜粋==============
/etc/udev/rules.d/10-local.rulesに以下を記述して再起動
SUBSYSTEMS=="usb", ATTRS{serial}=="00210115DF",
NAME{all_partitions}="usbhdd", GROUP="disk"
これで/dev/usbhddは作成されるのですが、
/dev/sdaとしても認識されているようで
起動が途中で止まってしまう現象は変わりませんでした。
どこか手順が間違っているのでしょうか?
よろしくお願いします。
===========dmesgから抜粋==============
usbcore: registered new driver usbfs
usbcore: registered new driver hub
tg3.c:v3.65 (August 07, 2006)
ACPI: PCI Interrupt 0000:03:00.0[A] -> GSI 17 (level, low) -> IRQ 177
PCI: Setting latency timer of device 0000:03:00.0 to 64
Uniform Multi-Platform E-IDE driver Revision: 7.00alpha2
ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
USB Universal Host Controller Interface driver v3.0
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
eth0: Tigon3 [partno(BCM95786) rev b002 PHY(5787)] (PCI Express)
10/100/1000BaseT Ethernet 00:1f:d0:b4:6e:5d
eth0: RXcsums[1] LinkChgREG[0] MIirq[0] ASF[0] Split[0] WireSpeed[1] TSOcap[1]
eth0: dma_rwctrl[76180000] dma_mask[64-bit]
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
libata version 2.00 loaded.
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] -> 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
ACPI: PCI Interrupt 0000:02:00.0[A] -> GSI 16 (level, low) -> IRQ 169
mptbase: Initiating ioc0 bringup
usb 3-2: new high speed USB device using ehci_hcd and address 2
usb 3-2: configuration #1 chosen from 1 choice
Initializing USB Mass Storage driver...
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usbcore: registered new driver usb-storage
USB Mass Storage support registered.
usb-storage: waiting for device to settle before scanning
ioc0: SAS1064E: Capabilities={Initiator}
PCI: Setting latency timer of device 0000:02:00.0 to 64
Vendor: SAMSUNG Model: HD322HJ Rev: 7.07
Type: Direct-Access ANSI SCSI revision: 00
usb-storage: device scan complete
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
SCSI device sda: 625142448 512-byte hdwr sectors (320073 MB)
sda: Write Protect is off
sda: Mode Sense: 23 00 00 00
sda: assuming drive cache: write through
sda: sda1
sd 0:0:0:0: Attached scsi disk sda
scsi1 : ioc0: LSISAS1064E, FwRev=01120000h, Ports=1, MaxQ=511, IRQ=169
Vendor: FUJITSU Model: MBA3073RC Rev: 3502
Type: Direct-Access ANSI SCSI revision: 05
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
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 1:0:0:0: Attached scsi disk sdb
Vendor: FUJITSU Model: MBA3073RC Rev: 3502
Type: Direct-Access ANSI SCSI revision: 05
SCSI device sdc: 143374744 512-byte hdwr sectors (73408 MB)
sdc: Write Protect is off
sdc: Mode Sense: bf 00 00 08
SCSI device sdc: drive cache: write back
SCSI device sdc: 143374744 512-byte hdwr sectors (73408 MB)
sdc: Write Protect is off
sdc: Mode Sense: bf 00 00 08
SCSI device sdc: drive cache: write back
sdc: sdc1 sdc2 sdc3 < sdc5 >
sd 1:0:1:0: Attached scsi disk sdc
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
scsi2 : ata_piix
ATA: abnormal status 0x7F on port 0x1F7
ata2: SATA max UDMA/133 cmd 0x170 ctl 0x376 bmdma 0xFD08 irq 15
scsi3 : ata_piix
ata2.00: ATAPI, max UDMA/100
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 ]
ACPI: PCI Interrupt 0000:00:1f.5[A] -> GSI 19 (level, low) -> IRQ 225
PCI: Setting latency timer of device 0000:00:1f.5 to 64
ata3: SATA max UDMA/133 cmd 0xFA00 ctl 0xF902 bmdma 0xF600 irq 225
ata4: SATA max UDMA/133 cmd 0xF800 ctl 0xF702 bmdma 0xF608 irq 225
scsi4 : ata_piix
ATA: abnormal status 0x7F on port 0xFA07
scsi5 : ata_piix
ATA: abnormal status 0x7F on port 0xF807
ide0: I/O resource 0x1F0-0x1F7 not free.
ide0: ports already in use, skipping probe
ide1: I/O resource 0x170-0x177 not free.
ide1: ports already in use, skipping probe
md: md driver 0.90.3 MAX_MD_DEVS=256, MD_SB_DISKS=27
md: bitmap version 4.39
md: raid1 personality registered for level 1
md: md0 stopped.
md: bind<sdc1>
md: bind<sdb1>
raid1: raid set md0 active with 2 out of 2 mirrors
md: md1 stopped.
md: bind<sdc2>
md: bind<sdb2>
raid1: raid set md1 active with 2 out of 2 mirrors
kjournald starting. Commit interval 5 seconds
EXT3-fs: mounted filesystem with ordered data mode.
sr0: scsi3-mmc drive: 40x/40x writer dvd-ram cd/rw xa/form2 cdda tray
Uniform CD-ROM driver Revision: 3.20
sr 3:0:0:0: Attached scsi CD-ROM sr0
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 1:0:1:0: Attached scsi generic sg2 type 0
sr 3:0:0:0: Attached scsi generic sg3 type 5
input: PC Speaker as /class/input/input1
Floppy drive(s): fd0 is 1.44M
parport: PnPBIOS parport detected.
parport0: PC-style at 0x378 (0x778), irq 7, dma 3
[PCSPP,TRISTATE,COMPAT,ECP,DMA]
FDC 0 is a post-1991 82077
Real Time Clock Driver v1.12ac
ACPI: PCI Interrupt 0000:00:1f.3[B] -> GSI 18 (level, low) -> IRQ 233
input: ImPS/2 Generic Wheel Mouse as /class/input/input2
ts: Compaq touchscreen protocol output
Adding 2152668k swap on /dev/sdb5. Priority:-1 extents:1 across:2152668k
EXT3 FS on md0, internal journal
loop: loaded (max 8 devices)
device-mapper: ioctl: 4.7.0-ioctl (2006-06-24) initialised: dm-devel@xxxxxxxxxx
kjournald starting. Commit interval 5 seconds
EXT3 FS on md1, internal journal
EXT3-fs: mounted filesystem with ordered data mode.
PM: Writing back config space on device 0000:03:00.0 at offset 1 (was
100546, writing 100146)