Re: problem mounting svnd-based disk

2011-04-23 Thread Otto Moerbeek
On Fri, Apr 22, 2011 at 04:14:11PM +0200, Tasmanian Devil wrote:

 Hello, misc!
 
 I use a svnd-based, encrypted disk with a few partitions on it since
 more than a year, which used to work just fine. But with the snapshot
 from April 14 and also with the latest snapshot from April 21 I can
 only mount one partition at a time now. Do I do something wrong, or is
 this a bug? Or is this an expected result of the recent vnd/svnd
 changes and I need to change the way I use vnd/svnd?
 
 Thank you for your help! Details below.

Please report to bugs. Not all developers read misc.

-Otto

 
 Tas.
 
 
 I use /dev/wd0l on the physical harddisk as storage space. To open the
 encrypted volume, I copy and paste all the commands from a text file.
 I open the volume with (with the correct /tmp/foo file in place):
 
 vnconfig -c -K 9 -S /tmp/foo svnd3 /dev/wd0l
 
 snvd3 looks like this:
 
 
 # fdisk svnd3
 Disk: svnd3 geometry: 1230051/1/100 [123005169 Sectors]
 Offset: 0   Signature: 0xAA55
 Starting Ending LBA Info:
  #: id  C   H   S -  C   H   S [   start:size ]
 ---
  0: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
  1: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
  2: 00  0   0   0 -  0   0   0 [   0:   0 ] unused
 *3: A6  1   0   1 - 1230050   0 100 [ 100:   123005000 ]
 OpenBSD
 # disklabel svnd3
 # /dev/rsvnd3c:
 type: vnd
 disk: vnd device
 label: fictitious
 duid: 79c8276b51852fc4
 flags:
 bytes/sector: 512
 sectors/track: 100
 tracks/cylinder: 1
 sectors/cylinder: 100
 cylinders: 335543
 total sectors: 123005169
 boundstart: 100
 boundend: 123005100
 drivedata: 0
 
 16 partitions:
 #size   offset  fstype [fsize bsize  cpg]
   a:  9586800  100  4.2BSD   2048 163841
   c:1230051690  unused
   d:  9586800  9586900  4.2BSD   2048 163841
   e:103831400 19173700  4.2BSD   2048 16384 38128
 
 
 Partitions are fine:
 
 # fsck /dev/svnd3{a,d,e}
 ** /dev/rsvnd3a
 ** File system is clean; not checking
 ** /dev/rsvnd3d
 ** File system is clean; not checking
 ** /dev/rsvnd3e
 ** File system is clean; not checking
 
 
 I used to mount all three partitions with:
 
 mount -o nodev,nosuid /dev/svnd3a /data/1
 mount -o nodev,nosuid /dev/svnd3d /data/2
 mount -o nodev,nosuid /dev/svnd3e /data/3
 
 That worked fine so far and all three partitions got mounted. But now
 I can still mount all partitions, but only one at a time. With the
 commands from above I get:
 
 # mount -o nodev,nosuid /dev/svnd3a /data/1
 # mount -o nodev,nosuid /dev/svnd3d /data/2
 mount_ffs: /dev/svnd3d on /data/2: Device busy
 # mount -o nodev,nosuid /dev/svnd3e /data/3
 mount_ffs: /dev/svnd3e on /data/3: Device busy
 
 Only /data/1 gets mounted. To mount the other ones, I first need to
 umount  /data/1 now.
 
 
 # dmesg
 OpenBSD 4.9-current (GENERIC.MP) #81: Thu Apr 21 00:10:03 MDT 2011
 dera...@i386.openbsd.org:/usr/src/sys/arch/i386/compile/GENERIC.MP
 cpu0: Genuine Intel(R) CPU 1400 @ 1.83GHz (GenuineIntel 686-class) 1.84 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  = 2114367488 (2016MB)
 avail mem = 2069610496 (1973MB)
 mainbus0 at root
 bios0 at mainbus0: AT/286+ BIOS, date 07/29/05, SMBIOS rev. 2.4 @
 0xe73f0 (39 entries)
 bios0: vendor Apple Computer, Inc. version
 MM11.88Z.0055.B08.0610121326 date 10/12/06
 bios0: Apple Computer, Inc. Macmini1,1
 acpi0 at bios0: rev 2
 acpi0: sleep states S0 S3 S4 S5
 acpi0: tables DSDT FACP HPET APIC MCFG ASF! SBST ECDT SSDT SSDT SSDT
 acpi0: wakeup devices PXS1(S4) PXS2(S4) USB1(S3) USB2(S3) USB3(S3)
 USB4(S3) USB7(S3)
 acpitimer0 at acpi0: 3579545 Hz, 24 bits
 acpihpet0 at acpi0: 14318179 Hz
 acpimadt0 at acpi0 addr 0xfee0: PC-AT compat
 cpu0 at mainbus0: apid 0 (boot processor)
 cpu0: apic clock running at 166MHz
 cpu1 at mainbus0: apid 1 (application processor)
 cpu1: Genuine Intel(R) CPU 1400 @ 1.83GHz (GenuineIntel 686-class) 1.84 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 0xfec0, version 20, 24 pins
 ioapic0: misconfigured as apic 0, remapped to apid 1
 acpimcfg0 at acpi0 addr 0xe000, bus 0-255
 acpiec0 at acpi0acpiec _REG failed, broken BIOS
 
 acpiprt0 at acpi0: bus 0 (PCI0)
 acpiprt1 at acpi0: bus 1 (RP01)
 acpiprt2 at acpi0: bus 2 (RP02)
 acpiprt3 at acpi0: bus 3 (PCIB)
 acpicpu0 at acpi0: C2, C1, PSS
 acpicpu1 at acpi0: C2, C1, PSS
 acpibtn0 at acpi0: PWRB
 acpivideo0 at acpi0: GFX0
 bios0: ROM list: 0xc/0xe600!
 cpu0: Enhanced SpeedStep 1834 MHz: speeds: 1833, 1667, 1500, 1333, 1000 MHz

Re: problem mounting svnd-based disk

2011-04-23 Thread Tasmanian Devil
2011/4/23 Otto Moerbeek o...@drijf.net:
 On Fri, Apr 22, 2011 at 04:14:11PM +0200, Tasmanian Devil wrote:

 Hello, misc!

 I use a svnd-based, encrypted disk with a few partitions on it since
 more than a year, which used to work just fine. But with the snapshot
 from April 14 and also with the latest snapshot from April 21 I can
 only mount one partition at a time now. Do I do something wrong, or is
 this a bug? Or is this an expected result of the recent vnd/svnd
 changes and I need to change the way I use vnd/svnd?

 Thank you for your help! Details below.

 Please report to bugs. Not all developers read misc.

-Otto

Done. Thank you!

Tas.