Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Jan 2021 00:15:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 252425] ctladm creshed when we removed LUNs in CTLD
Message-ID:  <bug-252425-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D252425

            Bug ID: 252425
           Summary: ctladm creshed when we removed LUNs in CTLD
           Product: Base System
           Version: 12.2-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs@FreeBSD.org
          Reporter: pacanrulit@gmail.com

Hello! Last time when I going to removing and creating lun on CTLD, I have =
this
problem on some concrete targets:

ctladm: LUN removal error: LUN 41 is not managed by the block backend
ctladm: LUN creation error: ctl_add_lun() returned error 28, see dmesg for
details
LUN 91 removed successfully
LUN created successfully
backend:       block
device type:   0
LUN size:      966367641600 bytes
blocksize      512 bytes
LUN ID:        91
Serial Number: SER91
Device ID:     DEV91
LUN 141 removed successfully
LUN created successfully
backend:       block
device type:   0
LUN size:      966367641600 bytes
blocksize      512 bytes
LUN ID:        141
Serial Number: SER141
Device ID:     DEV141

This code remove and create LUNs:=20

ctladm remove -b block -l $name
zfs destroy -R ssd/orig/original$c@win$name
zfs snap ssd/orig/original$c@win$name
zfs clone ssd/orig/original$c@win$name ssd/snap/win$name
ctladm create -b block -l $name -o file=3D/dev/zvol/ssd/snap/win$name -o
uuid=3D1d48547e-0d9d-492f-8878-9054d1be7$a -S SER$name -d DEV$name -o
vendor=3DMICRON

ctladm remove -b block -l $a
zfs destroy -R online/orig/online@win$name
zfs snap online/orig/online@win$name
zfs clone online/orig/online@win$name online/snap/win$name
ctladm create -b block -l $a -o file=3D/dev/zvol/online/snap/win$name -o
uuid=3D2d48547e-0d9d-492f-8878-9054d1be7$a -S SER$a -d DEV$a -o vendor=3DSA=
MSUNG

ctladm remove -b block -l $b=20
zfs destroy -R hdd/orig/games@win$name
zfs snap hdd/orig/games@win$name
zfs clone hdd/orig/games@win$name hdd/snap/win$name
ctladm create -b block -l $b -o file=3D/dev/zvol/hdd/snap/win$name -o
uuid=3D3d48547e-0d9d-492f-8878-9054d1be7$b -S SER$b -d DEV$b -o vendor=3DHY=
NIX

It's ctl.conf:

target iqn.pc1 {=20
auth-group no-authentication=20
portal-group xxx=20
lun 0 {=20
path /dev/zvol/ssd/snap/win1=20
ctl-lun 1}
lun 1 {=20
path /dev/zvol/online/snap/win1=20
ctl-lun 51}
lun 2 {=20
path /dev/zvol/hdd/snap/win1=20
ctl-lun 101}}
target iqn.pc2 {=20
auth-group no-authentication=20
portal-group xxx=20
lun 0 {=20
path /dev/zvol/ssd/snap/win2=20
ctl-lun 2}
lun 1 {=20
path /dev/zvol/online/snap/win2=20
ctl-lun 52}
lun 2 {=20
path /dev/zvol/hdd/snap/win2=20
ctl-lun 102}}

config ZFS:
dedup=3Doff
compress=3Dlz4
atime=3Doff
sync=3Ddisabled
secondarycache=3Dnone
primarycache=3Dall

Server hardware:
xeon E5-2670
128Gb DDR3 ECC REG
10Gb NIC
SSD for system
2 nvme SSDs for zpools

Maybe you have some answers for my questions, thanks!

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-252425-227>