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

Re: ofpath vs ofpathname vs grub-ofpathname



Hi Stan!

On 4/16/20 7:38 PM, userm57@yahoo.com wrote:
> The following information is from a PPC G5, 2.2 GHz, 2 processors.
> Disk /dev/sda: 931.53 GiB - internal SATA disk
> Disk /dev/sdb: 465.78 GiB - internal SATA disk
> Disk /dev/sdc: 298.9 GiB - firewire disk (front built-in firewire)
> Disk /dev/sdd: 698.65 GiB - USB disk (back built-in USB)
> Disk /dev/sde: 16.98 GiB - SCSI disk (ATTO UL3D PCI-X)
> 
> The ofpathname results in Debian SID and Debian 7.8 were slightly
> different.

Thanks. That's helpful!

> I don't have ofpath in Debian SID, only Debian 7.8.

You can just download the package and extract the script:

$ wget http://snapshot.debian.org/archive/debian-ports/20160607T123219Z/pool-ppc64/main/y/yaboot/yaboot_1.3.17-4_ppc64.deb
$ dpkg-deb -x yaboot_1.3.17-4_ppc64.deb tmp
$ ./tmp/usr/sbin/ofpath /dev/sda1

> ***** Debian 7.8 *****
> 
> root@ppc-g5:~# uname -a
> Linux ppc-g5 4.20.0-g5-00021-g46dd6fc1e3dc #1 SMP Sun Jan 13 18:40:33
> AEDT 2019 ppc64 GNU/Linux
> root@ppc-g5:~# cat /proc/cpuinfo
> processor	: 0
> cpu		: PPC970FX, altivec supported
> clock		: 2300.000000MHz
> revision	: 3.0 (pvr 003c 0300)
> 
> processor	: 1
> cpu		: PPC970FX, altivec supported
> clock		: 2300.000000MHz
> revision	: 3.0 (pvr 003c 0300)
> 
> timebase	: 33333333
> platform	: PowerMac
> model		: PowerMac7,3
> machine		: PowerMac7,3
> motherboard	: PowerMac7,3 MacRISC4 Power Macintosh
> detected as	: 336 (PowerMac G5)
> pmac flags	: 00000000
> L2 cache	: 512K unified
> pmac-generation	: NewWorld
> 
> root@ppc-g5:~# ofpathname -V
> ofpathname: Version 0.5
> Written by: Nathan Fontenot <nfont@austin.ibm.com>
> 
> root@ppc-g5:~# ofpath -V
> ofpath 1.0.7+debian3
> Written by Ethan Benson, portions rewritten by Milan Kupcevic
> Portions based on show_of_path.sh written by Olaf Hering
> 
> root@ppc-g5:~# ofpathname /dev/sda
> /ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0
> root@ppc-g5:~# ofpath /dev/sda
> /ht@0,f2000000/pci@7/k2-sata-root@c/@ffffffffffffffff/@0

This is most likely before Yaboot was fixed in unstable:

> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=784387

> root@ppc-g5:~# ofpathname /dev/sdb
> /ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0
> root@ppc-g5:~# ofpath /dev/sdb
> /ht@0,f2000000/pci@7/k2-sata-root@c/@ffffffffffffffff/@0
> 
> root@ppc-g5:~# ofpathname /dev/sdc
> /ht@0,f2000000/pci@5/firewire@e/scsi@0/sd@0,0
> root@ppc-g5:~# ofpath /dev/sdc
> /ht@0,f2000000/pci@5/firewire@e/node@0010b92100f4b5e4/sbp-2/@0
> 
> root@ppc-g5:~# ofpathname /dev/sdd
> (null)/scsi@0/sd@0,0
> root@ppc-g5:~# ofpath /dev/sdd
> ofpath:  (usb-storage) is not supported
> 
> root@ppc-g5:~# ofpathname /dev/sde
> /ht@0,f2000000/pci@1/ATTO,ExpressPCIProUL3D@3,1/scsi@0/sd@1,0
> root@ppc-g5:~# ofpath /dev/sde
> /ht@0,f2000000/pci@1/ATTO,ExpressPCIProUL3D@3,1/@1

Otherwise, the output is as I expected.

Thanks,
Adrian

> ***** Debian SID *****
> 
> root@ppc-g5:~# uname -a
> Linux ppc-g5 5.2.9-g5 #1 SMP Mon Aug 26 13:34:31 MDT 2019 ppc64 GNU/Linux
> root@ppc-g5:~# cat /proc/cpuinfo
> processor	: 0
> cpu		: PPC970FX, altivec supported
> clock		: 2300.000000MHz
> revision	: 3.0 (pvr 003c 0300)
> 
> processor	: 1
> cpu		: PPC970FX, altivec supported
> clock		: 2300.000000MHz
> revision	: 3.0 (pvr 003c 0300)
> 
> timebase	: 33333333
> platform	: PowerMac
> model		: PowerMac7,3
> machine		: PowerMac7,3
> motherboard	: PowerMac7,3 MacRISC4 Power Macintosh
> detected as	: 336 (PowerMac G5)
> pmac flags	: 00000000
> L2 cache	: 512K unified
> pmac-generation	: NewWorld
> 
> root@ppc-g5:~# ofpathname -V
> ofpathname: Version 0.5
> Written by: Nathan Fontenot <nfont@linux.vnet.ibm.com>
> 
> root@ppc-g5:~# ofpathname /dev/sda
> /usr/sbin/ofpathname: line 812: warning: command substitution: ignored
> null byte in input
> /ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0
> 
> root@ppc-g5:~# ofpathname /dev/sdb
> /usr/sbin/ofpathname: line 812: warning: command substitution: ignored
> null byte in input
> /ht@0,f2000000/pci@7/k2-sata-root@c/scsi@0/sd@0,0
> 
> root@ppc-g5:~# ofpathname /dev/sdc
> /usr/sbin/ofpathname: line 812: warning: command substitution: ignored
> null byte in input
> /ht@0,f2000000/pci@5/firewire@e/scsi@0/sd@0,0
> 
> root@ppc-g5:~# ofpathname /dev/sdd
> (null)/scsi@0/sd@0,0
> 
> root@ppc-g5:~# ofpathname /dev/sde
> /usr/sbin/ofpathname: line 812: warning: command substitution: ignored
> null byte in input
> /ht@0,f2000000/pci@1/ATTO,ExpressPCIProUL3D@3,1/scsi@0/sd@1,0
> 

-- 
 .''`.  John Paul Adrian Glaubitz
: :' :  Debian Developer - glaubitz@debian.org
`. `'   Freie Universitaet Berlin - glaubitz@physik.fu-berlin.de
  `-    GPG: 62FF 8A75 84E0 2956 9546  0006 7426 3B37 F5B5 F913


Reply to: