NetBSD-Bugs archive

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

kern/55697: ccd, gpt and, I suppose, kernel panic.



>Number:         55697
>Category:       kern
>Synopsis:       ccd, gpt and, I suppose, kernel panic.
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Oct 06 12:00:01 +0000 2020
>Originator:     Charlie Root
>Release:        NetBSD 9.0_STABLE
>Organization:
>Environment:
System: NetBSD legendre.systella.fr 9.0_STABLE NetBSD 9.0_STABLE (CUSTOM) #12: Thu Oct 1 08:59:33 CEST 2020 root%legendre.systella.fr@localhost:/usr/src/netbsd-9/obj/sys/arch/amd64/compile/CUSTOM amd64
Architecture: x86_64
Machine: amd64
>Description:

	I use for a long time a NetBSD system that acts as boot (tftpd), NFS
and iSCSI server for diskless workstations. This server runs 9.0_STABLE
(built from sources tree).

	This server contains six disks and a lot of partitions
(wedges and regulars) :
legendre:[~] > df -h
Filesystem         Size       Used      Avail %Cap Mounted on
/dev/raid0a         31G       1,1G        28G   3% /
/dev/raid0e         62G        24G        35G  41% /usr
/dev/raid0f         31G        11G        19G  36% /var
/dev/raid0g        252G        33G       206G  13% /usr/src
/dev/raid0h        523G       228G       269G  45% /srv
/dev/dk0           3,6T       2,4T       1,0T  70% /home
kernfs             1,0K       1,0K         0B 100% /kern
ptyfs              1,0K       1,0K         0B 100% /dev/pts
procfs             4,0K       4,0K         0B 100% /proc
tmpfs              4,0G        20K       4,0G   0% /var/shm
/dev/dk1            11T        64M        10T   0% /opt

	iSCSI is only used for diskless workstations swap's on an old disk.
When I have installed this iSCSI server, I have created wedges on GPT
labels without difficulties (if I remember) :

#dkctl wd0 listwedges :
/dev/rwd0d: 3 wedges:
dk0: swap_hilbert, 67108864 blocks at 34, type: swap
dk1: swap_abel, 2097152 blocks at 67108898, type: swap
dk2: swap_schwarz, 33554432 blocks at 69206050, type: swap

	Now, I have replaced this old disk (SATA 3Gbps, 160 Go, 4500rpms) by
two others disks (SATA 6Gbps, 1To, 7200rpms). In a first time, I have
configured ccd :

legendre# cat /etc/ccd.conf
ccd0    32      none    /dev/wd0a /dev/wd1a
legendre# dmesg
...
[   511.661981] ccd0: Interleaving 2 components (32 block interleave)
[   511.661981] ccd0: /dev/wd0a (1953524160 blocks)
[   511.661981] ccd0: /dev/wd1a (1953524160 blocks)
[   511.661981] ccd0: total 3907048320 blocks

	I have tried to create new wedge on ccd0 with following command :
legendre# gpt add -a 4k -l swap_hilbert -s 96g -t swap ccd0

	Server immediatly reboots. I'm not sure kernel panics (but I suppose)
as there is no crashdump and kernel doesn't enter in debugger.

	After reboot :
legendre# gpt show ccd0
       start        size  index  contents
           0           1         PMBR
           1           1         Pri GPT header
           2          32         Pri GPT table
          34           6         Unused
          40   201326592      1  GPT part - NetBSD swap
   201326632  3705721655         Unused
  3907048287          32         Sec GPT table
  3907048319           1         Sec GPT header

but no wedge is created and dk2 (in my case) remains unconfigured.

	Of course, if I replace ccd0 by another device (for example a
raidframe device), system runs as expected.

>How-To-Repeat:

	Create an interleaved  ccd device.
	Create a GTP partition on this device.

>Fix:

	No idea.



Home | Main Index | Thread Index | Old Index