NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: dk for z/lvm volumes?
On Sat, 29 Feb 2020 at 12:02, Michael van Elst <mlelstv%serpens.de@localhost> wrote:
>
> ci4ic4%gmail.com@localhost (Chavdar Ivanov) writes:
>
> >> gdb points to spec_read:
> >>
> >> (gdb) target kvm netbsd.12.core
> >> 0xffffffff80224225 in cpu_reboot ()
> >> (gdb) bt
> >> #0 0xffffffff80224225 in cpu_reboot ()
> >> #1 0xffffffff809fde2f in kern_reboot ()
> >> #2 0xffffffff80a40299 in vpanic ()
> >> #3 0xffffffff80a4035d in panic ()
> >> #4 0xffffffff8022669d in trap ()
> >> #5 0xffffffff8021ed43 in alltraps ()
> >> #6 0xffffffff80abd3bf in spec_read ()
>
> Got it. specfs relies on a sanitized pi_bsize value.
>
> I've updated the patch. Please try again.
It works fine, now I can both
...
[ 87.984501] ccd0: Concatenating 1 components
[ 87.984501] ccd0: /dev/zvol/dsk/tank/testu (4194304 blocks)
[ 87.984501] ccd0: total 4194304 blocks
/home/xci [ disklabel ccd0
] 1:59 pm
# /dev/rccd0:
type: ccd
disk: ccd
label: fictitious
flags:
bytes/sector: 512
sectors/track: 2048
tracks/cylinder: 1
sectors/cylinder: 2048
cylinders: 2048
total sectors: 4194304
rpm: 3600
interleave: 1
trackskew: 0
cylinderskew: 0
headswitch: 0 # microseconds
track-to-track seek: 0 # microseconds
drivedata: 0
4 partitions:
# size offset fstype [fsize bsize cpg/sgs]
a: 4194304 0 4.2BSD 0 0 0 # (Cyl. 0 - 2047)
d: 4194304 0 unused 0 0 # (Cyl. 0 - 2047)
disklabel: boot block size 0
disklabel: super block size 0
....
and working net/istgt on a zvol.
It is interesting it it will work as a swap device; while since
yesterday it was possible to add a zvol as a swap device, it didn't
actually work - it just resets or hangs the system; here I am able to
change the ccd0a type to swap and add it:
# swapctl -l
] 2:06 pm
Device 512-blocks Used Avail Capacity Priority
/dev/dk2 7221248 0 7221248 0% 0
/dev/ccd0a 4194304 0 4194304 0% 0
Total 11415552 0 11415552 0%
...
I'll see if it will work or hang when I put some load on the system.
presumably getting it to use it.
Thanks,
>
> --
> --
> Michael van Elst
> Internet: mlelstv%serpens.de@localhost
> "A potential Snark may lurk in every tree."
--
----
Home |
Main Index |
Thread Index |
Old Index