Bug #591
format/cfgadm not reporting correctly
0%
Description
Lots of strange characters reported through format.
root@openindiana:~# format Searching for disks... Failed to inquiry this logical diskdone AVAILABLE DISK SELECTIONS: 0. c2d0 <??$?$??pHoH#?Xq??$???$?$? cyl 11974 alt 2 hd 255 sec 63> /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0 Specify disk (enter its number):
Where's my disk?
root@openindiana:~# cfgadm -al Ap_Id Type Receptacle Occupant Condition pcic0.pccard0 unknown empty unconfigured unknown usb8/1 unknown empty unconfigured ok usb8/2 unknown empty unconfigured ok usb9/1 unknown empty unconfigured ok usb9/2 unknown empty unconfigured ok usb10/1 usb-device connected configured ok usb10/2 unknown empty unconfigured ok usb11/1 unknown empty unconfigured ok usb11/2 unknown empty unconfigured ok usb12/1 unknown empty unconfigured ok usb12/2 unknown empty unconfigured ok usb12/3 unknown empty unconfigured ok usb12/4 unknown empty unconfigured ok usb12/5 unknown empty unconfigured ok usb12/6 unknown empty unconfigured ok usb12/7 unknown empty unconfigured ok usb12/8 unknown empty unconfigured ok
Seen here.
root@openindiana:/dev/dsk# iostat -En c2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: TOSHIBA MK1032G Revision: Serial No: 266K Size: 98.52GB <98520662016 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c1t0d0 Soft Errors: 0 Hard Errors: 7 Transport Errors: 0 Vendor: MATSHITA Product: UJ-822Da Revision: 1.00 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 7 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0
ZFS is happy.
root@openindiana:/dev/dsk# zpool status pool: rpool state: ONLINE scan: none requested config: NAME STATE READ WRITE CKSUM rpool ONLINE 0 0 0 c2d0s0 ONLINE 0 0 0 errors: No known data errors
root@openindiana:~# uname -a SunOS openindiana 5.11 oi_148 i86pc i386 i86pc Solaris root@openindiana:~# cat /etc/release OpenIndiana Development oi_148 X86 Copyright 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Assembled 29 November 2010
root@openindiana:~# prtdiag -v System Configuration: Sony Corporation VGN-S3XP BIOS Configuration: Phoenix Technologies LTD R0092V0 05/23/2005 ==== Processor Sockets ==================================== Version Location Tag -------------------------------- -------------------------- Intel(R) Pentium(R) M processor 2.00GHz N/A ==== Memory Device Sockets ================================ Type Status Set Device Locator Bank Locator ----------- ------ --- ------------------- ---------------- DDR in use 0 SODIMM1 Bank 0 DDR in use 0 SODIMM2 Bank 1 ==== On-Board Devices ===================================== ==== Upgradeable Slots ==================================== ID Status Type Description --- --------- ---------------- ---------------------------- 256 available PCMCIA PCCARD1
Updated by G. Schwarz almost 10 years ago
I can confirm this bug on my system:
$ uname -a
SunOS opensolaris 5.11 oi_148 i86pc i386 i86pc Solaris
$ pfexec format
Searching for disks...
Failed to inquiry this logical diskdone
AVAILABLE DISK SELECTIONS:
0. c5d0 ???^P??nH^Y??^Xp?[??????^P???o(n?^W? ? 15140 ? 2 ?? 255 ? 63>
/?@0,0/???-???@1°,2/???@0/????@0,0
S????°? ?? (??? ? ????):
Format works correctly in an old boot environment on the same system:
$ uname -a
SunOS opensolaris 5.11 snv_134b i86pc i386 i86pc Solaris
~$ pfexec format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c5d0 <DEFAULT cyl 15140 alt 2 hd 255 sec 63>
/pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0
1. c8t0d0 <DEFAULT cyl 60799 alt 2 hd 255 sec 63>
/pci@0,0/pci1043,1347@1d,7/hub@1/storage@1/disk@0,0
Specify disk (enter its number):
System is x86 with an Atom CPU (Asus eeePC):
$ prtdiag -v
System Configuration: ASUSTeK Computer INC. B202
BIOS Configuration: American Megatrends Inc. 1004 11/05/2008
==== Processor Sockets ====================================
Version Location Tag
-------------------------------- --------------------------
Intel(R) Atom(TM) CPU N270 @ 1.60GHz Socket 478M
==== Memory Device Sockets ================================
Type Status Set Device Locator Bank Locator
----------- ------ --- ------------------- ----------------
SDRAM in use 0 DIMM0 BANK0
SDRAM in use 0 DIMM1 BANK1
==== On-Board Devices =====================================
To Be Filled By O.E.M.
==== Upgradeable Slots ====================================
ID Status Type Description
--- --------- ---------------- ----------------------------
Updated by Rich Lowe over 9 years ago
- Project changed from OpenIndiana Distribution to illumos gate
Updated by Jamie Maher over 9 years ago
- Difficulty set to Medium
- Tags set to needs-triage
Same issue with format showing garbage characters.
Testing out a new OpenIndiana 148 desktop hard disk install.
Format output here:
~# format Searching for disks... Failed to inquiry this logical diskFailed to inquiry this logical diskFailed to inquiry this logical diskFailed to inquiry this logical diskdone AVAILABLE DISK SELECTIONS: 0. c1d0 <������Pl�jH����l����������pl�j0"��� cyl 3952 alt 2 hd 255 sec 63> /pci@0,0/pci-ide@1f,2/ide@0/cmdk@0,0 1. c1d1 <������Pl�jH����l����������pl�j0"��� cyl 60797 alt 2 hd 255 sec 252> /pci@0,0/pci-ide@1f,2/ide@0/cmdk@1,0 2. c2d1 <������Pl�jH����l����������pl�j0"��� cyl 60797 alt 2 hd 255 sec 252> /pci@0,0/pci-ide@1f,2/ide@1/cmdk@1,0 3. c3d0 <������Pl�jH����l����������pl�j0"��� cyl 60798 alt 2 hd 255 sec 126> /pci@0,0/pci-ide@1f,5/ide@0/cmdk@0,0
~# uname -a SunOS NAS001 5.11 oi_148 i86pc i386 i86pc
Output from other tools mentioned above:
~# prtdiag -v System Configuration: Gigabyte Technology Co., Ltd. P35-DS3R BIOS Configuration: Award Software International, Inc. F13 06/19/2009 ==== Processor Sockets ==================================== Version Location Tag -------------------------------- -------------------------- Intel(R) Core(TM)2 Duo CPU Socket 775 ==== Memory Device Sockets ================================ Type Status Set Device Locator Bank Locator ----------- ------ --- ------------------- ---------------- unknown in use 0 A0 Bank0/1 unknown empty 0 A1 Bank2/3 unknown in use 0 A2 Bank4/5 unknown empty 0 A3 Bank6/7 ==== On-Board Devices ===================================== ==== Upgradeable Slots ==================================== ID Status Type Description --- --------- ---------------- ---------------------------- 0 available PCI PCI 1 available PCI PCI 2 available PCI PCI 0 available PCI PCI ~# iostat -En c1d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST380815AS Revision: Serial No: 5QZ Size: 80.02GB <80023781376 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c1d1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST2000DL003-9VT Revision: Serial No: 6YD Size: 2000.37GB <2000371580928 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c2d1 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST2000DL003-9VT Revision: Serial No: 5YD Size: 2000.37GB <2000371580928 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c3d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0 Model: ST31000524AS Revision: Serial No: 6VP Size: 1000.20GB <1000202305536 bytes> Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0 Illegal Request: 0 c2t0d0 Soft Errors: 0 Hard Errors: 27 Transport Errors: 0 Vendor: TSSTcorp Product: CDDVDW SH-S223L Revision: SB02 Serial No: Size: 0.00GB <0 bytes> Media Error: 0 Device Not Ready: 27 No Device: 0 Recoverable: 0 Illegal Request: 0 Predictive Failure Analysis: 0