On Wed, Oct 13, 2010 at 12:24:52PM +0200, Jiri B. wrote:
> Hi all,
> 
> I'm using UIDs instead of path to disk devices because sometimes I forget
> USB sticks plugged in and my softraid crypto commands are confused...
> 
> So during upgrade from Oct 6th snapshot (i386) I discovered that fsck doesn't
> accept UID for disks :(

If it is any comfort, "sysctl -n hw.disknames" can help you.

> 
> Little test bellow, I did this test on other (little older) machine but the
> case is
> still the same.
> 
> jirib
> ## test.img prepared in past for this test
> 
> # vnconfig svnd0 /data/test.img
> 
> # disklabel svnd0 | grep -i uid
> uid: 9f84b364fccc2ded
> 
> # bioctl -c C -l 9f84b364fccc2ded.a softraid0
> Passphrase:
> 
> # sysctl hw.disknames
> hw.disknames=cd0:,sd0:d04e89195e81f448,sd1:fc9d5c24dc40c3d6,vnd0:9f84b364fccc
> 2ded,sd2:9a9d04faac790b8a
> 
> # disklabel 9a9d04faac790b8a
> # /dev/rsd2c:
> type: SCSI
> disk: SCSI disk
> label: SR CRYPTO
> uid: 9a9d04faac790b8a
> flags:
> bytes/sector: 512
> sectors/track: 63
> tracks/cylinder: 255
> sectors/cylinder: 16065
> cylinders: 63
> total sectors: 1023473
> boundstart: 0
> boundend: 1023473
> drivedata: 0
> 
> 16 partitions:
> #                size           offset  fstype [fsize bsize  cpg]
>   a:          1023456                0  4.2BSD   2048 16384    1
>   c:          1023473                0  unused
> 
> 
> # fsck -f 9a9d04faac790b8a.a
> fsck: 9a9d04faac790b8a.a: unknown special file or file system.
> 
> # fsck -f /dev/sd2a
> ** /dev/rsd2a
> ** File system is already clean
> ** Last Mounted on
> ** Phase 1 - Check Blocks and Sizes
> ** Phase 2 - Check Pathnames
> ** Phase 3 - Check Connectivity
> ** Phase 4 - Check Reference Counts
> ** Phase 5 - Check Cyl groups
> 1 files, 1 used, 250774 free (14 frags, 31345 blocks, 0.0% fragmentation)
> 
> --
> 
> OpenBSD 4.8-current (GENERIC.MP) #402: Wed Sep 29 23:51:39 MDT 2010
>     dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
> cpu0: Intel(R) Core(TM) Duo CPU T2600 @ 2.16GHz ("GenuineIntel" 686-class)
> 2.17 GHz
> cpu0:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,
> MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
> real mem  = 2138468352 (2039MB)
> avail mem = 2093457408 (1996MB)
> User Kernel Config
> UKC> disable azpi\^H \^H\^H \^H\^H \^Hcpitz
> 481 acpitz* disabled
> UKC> exit
> Continuing...
> mainbus0 at root
> bios0 at mainbus0: AT/286+ BIOS, date 03/18/08, BIOS32 rev. 0 @ 0xf0000,
> SMBIOS rev. 2.4 @ 0xf3abf (23 entries)
> bios0: vendor Hewlett-Packard version "68MVU Ver. F.07" date 03/18/2008
> bios0: Hewlett-Packard HP 530 Notebook PC(KP477AA#AKB)
> acpi0 at bios0: rev 2
> acpi0: sleep states S0 S3 S4 S5
> acpi0: tables DSDT FACP SLIC HPET APIC MCFG TCPA SSDT SSDT SSDT SSDT SSDT
> acpi0: wakeup devices C098(S5) C204(S0) C100(S5) C207(S5)
> acpitimer0 at acpi0: 3579545 Hz, 24 bits
> acpihpet0 at acpi0: 14318179 Hz
> acpimadt0 at acpi0 addr 0xfee00000: PC-AT compat
> cpu0 at mainbus0: apid 0 (boot processor)
> cpu0: apic clock running at 166MHz
> cpu1 at mainbus0: apid 1 (application processor)
> cpu1: Intel(R) Core(TM) Duo CPU T2600 @ 2.16GHz ("GenuineIntel" 686-class)
> 2.17 GHz
> cpu1:
> FPU,V86,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,CFLUSH,DS,ACPI,
> MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,VMX,EST,TM2,xTPR,PDCM
> ioapic0 at mainbus0: apid 1 pa 0xfec00000, version 20, 24 pins
> ioapic0: misconfigured as apic 0, remapped to apid 1
> acpiprt0 at acpi0: bus 2 (C098)
> acpiprt1 at acpi0: bus 8 (C100)
> acpiprt2 at acpi0: bus 16 (C110)
> acpiprt3 at acpi0: bus 0 (C002)
> acpiec0 at acpi0
> acpicpu0 at acpi0: C2, C1, PSS
> acpicpu1 at acpi0: C2, C1, PSS
> acpipwrres0 at acpi0: C1E0
> acpipwrres1 at acpi0: C1FE
> acpipwrres2 at acpi0: C206
> acpipwrres3 at acpi0: C2EE
> acpipwrres4 at acpi0: C2EF
> acpipwrres5 at acpi0: C2F0
> acpipwrres6 at acpi0: C2F1
> acpitz at acpi0 not configured
> acpitz at acpi0 not configured
> acpitz at acpi0 not configured
> acpitz at acpi0 not configured
> acpitz at acpi0 not configured
> acpibat0 at acpi0: C1AC model "Primary" serial 40639 2008/01/20 type LIon oem
> "Hewlett-Packard"
> acpiac0 at acpi0: AC unit online
> acpibtn0 at acpi0: C20B
> acpibtn1 at acpi0: C20C
> acpivideo0 at acpi0: C085
> acpivout0 at acpivideo0: C133
> acpivout1 at acpivideo0: C134
> bios0: ROM list: 0xc0000/0x10000!
> cpu0: Enhanced SpeedStep 2162 MHz: speeds: 2167, 1667, 1333, 1000 MHz
> pci0 at mainbus0 bus 0: configuration mode 1 (bios)
> pchb0 at pci0 dev 0 function 0 "Intel 82945GME Host" rev 0x03
> vga1 at pci0 dev 2 function 0 "Intel 82945GME Video" rev 0x03
> wsdisplay0 at vga1 mux 1: console (80x25, vt100 emulation)
> wsdisplay0: screen 1-5 added (80x25, vt100 emulation)
> intagp0 at vga1
> agp0 at intagp0: aperture at 0xe0000000, size 0x10000000
> inteldrm0 at vga1: apic 1 int 16 (irq 10)
> drm0 at inteldrm0
> "Intel 82945GM Video" rev 0x03 at pci0 dev 2 function 1 not configured
> azalia0 at pci0 dev 27 function 0 "Intel 82801GB HD Audio" rev 0x01: apic 1
> int 16 (irq 10)
> azalia0: codecs: Conexant CX20549
> audio0 at azalia0
> ppb0 at pci0 dev 28 function 0 "Intel 82801GB PCIE" rev 0x01: apic 1 int 16
> (irq 10)
> pci1 at ppb0 bus 8
> ppb1 at pci0 dev 28 function 1 "Intel 82801GB PCIE" rev 0x01: apic 1 int 17
> (irq 10)
> pci2 at ppb1 bus 16
> wpi0 at pci2 dev 0 function 0 "Intel PRO/Wireless 3945ABG" rev 0x02: apic 1
> int 17 (irq 10), MoW2, address 00:1c:bf:b1:e0:bb
> uhci0 at pci0 dev 29 function 0 "Intel 82801GB USB" rev 0x01: apic 1 int 20
> (irq 5)
> ehci0 at pci0 dev 29 function 7 "Intel 82801GB USB" rev 0x01: apic 1 int 20
> (irq 5)
> usb0 at ehci0: USB revision 2.0
> uhub0 at usb0 "Intel EHCI root hub" rev 2.00/1.00 addr 1
> ppb2 at pci0 dev 30 function 0 "Intel 82801BAM Hub-to-PCI" rev 0xe1
> pci3 at ppb2 bus 2
> cbb0 at pci3 dev 6 function 0 "ENE CB-1410 CardBus" rev 0x01: apic 1 int 18
> (irq 11)
> fxp0 at pci3 dev 8 function 0 "Intel 82801FBM LAN" rev 0x01, i82562: apic 1
> int 20 (irq 5), address 00:1b:38:fa:3c:d2
> inphy0 at fxp0 phy 1: i82562ET 10/100 PHY, rev. 0
> cardslot0 at cbb0 slot 0 flags 0
> cardbus0 at cardslot0: bus 3 device 0 cacheline 0x10, lattimer 0x20
> pcmcia0 at cardslot0
> ichpcib0 at pci0 dev 31 function 0 "Intel 82801GBM LPC" rev 0x01: PM disabled
> pciide0 at pci0 dev 31 function 1 "Intel 82801GB IDE" rev 0x01: DMA, channel 0
> configured to compatibility, channel 1 configured to compatibility
> atapiscsi0 at pciide0 channel 0 drive 0
> scsibus0 at atapiscsi0: 2 targets
> cd0 at scsibus0 targ 0 lun 0: <Optiarc, DVD RW AD-7560A, DH10> ATAPI 5/cdrom
> removable
> cd0(pciide0:0:0): using PIO mode 4, DMA mode 2
> pciide0: channel 1 ignored (disabled)
> ahci0 at pci0 dev 31 function 2 "Intel 82801GBM AHCI" rev 0x01: apic 1 int 21
> (irq 10), AHCI 1.1
> scsibus1 at ahci0: 32 targets
> sd0 at scsibus1 targ 0 lun 0: <ATA, ST9120822AS, 3.BH> SCSI3 0/direct fixed
> sd0: 114473MB, 512 bytes/sec, 234441648 sec total
> usb1 at uhci0: USB revision 1.0
> uhub1 at usb1 "Intel UHCI root hub" rev 1.00/1.00 addr 1
> isa0 at ichpcib0
> isadma0 at isa0
> pckbc0 at isa0 port 0x60/5
> pckbd0 at pckbc0 (kbd slot)
> pckbc0: using irq 1 for kbd slot
> wskbd0 at pckbd0: console keyboard, using wsdisplay0
> pms0 at pckbc0 (aux slot)
> pckbc0: using irq 12 for aux slot
> wsmouse0 at pms0 mux 0
> pcppi0 at isa0 port 0x61
> spkr0 at pcppi0
> npx0 at isa0 port 0xf0/16: reported by CPUID; using exception 16
> mtrr: Pentium Pro MTRR support
> vscsi0 at root
> scsibus2 at vscsi0: 256 targets
> softraid0 at root
> root on sd0a swap on sd0b dump on sd0b
> scsibus3 at softraid0: 1 targets
> sd1 at scsibus3 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
> sd1: 110269MB, 512 bytes/sec, 225831793 sec total
> uid 1000 on /home: file system full
> uid 1000 on /home: file system full
> uid 1000 on /home: file system full
> umass0 at uhub0 port 1 configuration 1 interface 0 "USBest Technology USB Mass
> Storage Device" rev 2.00/1.00 addr 2
> umass0: using SCSI over Bulk-Only
> scsibus4 at umass0: 2 targets, initiator 0
> sd2 at scsibus4 targ 1 lun 0: <Verbatim, STORE N GO, 5.00> SCSI2 0/direct
> removable
> sd2: 3853MB, 512 bytes/sec, 7892040 sec total
> sd2 detached
> scsibus4 detached
> umass0 detached
> scsibus4 at softraid0: 1 targets
> sd2 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
> sd2: 499MB, 512 bytes/sec, 1023473 sec total
> sd2 detached
> scsibus4 detached
> scsibus4 at softraid0: 1 targets
> sd2 at scsibus4 targ 0 lun 0: <OPENBSD, SR CRYPTO, 004> SCSI2 0/direct fixed
> sd2: 499MB, 512 bytes/sec, 1023473 sec total

-- 

/ Raimo Niskanen, Erlang/OTP, Ericsson AB

Reply via email to