From: Guoqing Jiang <guoqing.jiang@linux.dev>
To: Zdenek Kabelac <zkabelac@redhat.com>,
Heming Zhao <heming.zhao@suse.com>,
Mikulas Patocka <mpatocka@redhat.com>,
Song Liu <song@kernel.org>
Cc: linux-raid@vger.kernel.org, dm-devel@redhat.com
Subject: Re: [dm-devel] A crash caused by the commit 0dd84b319352bb8ba64752d4e45396d8b13e6018
Date: Mon, 7 Nov 2022 09:52:45 +0800 [thread overview]
Message-ID: <57672478-63f3-d214-a2fc-ef06c4200e90@linux.dev> (raw)
In-Reply-To: <2f0551c6-44f9-0969-cb8f-c12c4fb44eff@redhat.com>
On 11/4/22 7:10 PM, Zdenek Kabelac wrote:
> Dne 04. 11. 22 v 2:23 Guoqing Jiang napsal(a):
>>
>>
>> On 11/3/22 10:46 PM, Heming Zhao wrote:
>>> On 11/3/22 11:47 AM, Guoqing Jiang wrote:
>>>> Hi,
>>>>
>>>> On 11/3/22 12:27 AM, Mikulas Patocka wrote:
>>>>> Hi
>>>>>
>>>>> There's a crash in the test shell/lvchange-rebuild-raid.sh when
>>>>> running
>>>>> the lvm testsuite. It can be reproduced by running "make check_local
>>>>> T=shell/lvchange-rebuild-raid.sh" in a loop.
>>>>
>>>> I have problem to run the cmd (not sure what I missed), it would be
>>>> better if
>>>> the relevant cmds are extracted from the script then I can
>>>> reproduce it with
>>>> those cmds directly.
>>>>
>>>> [root@localhost lvm2]# git log | head -1
>>>> commit 36a923926c2c27c1a8a5ac262387d2a4d3e620f8
>>>> [root@localhost lvm2]# make check_local
>>>> T=shell/lvchange-rebuild-raid.sh
>>>> make -C libdm device-mapper
>>>> [...]
>>>> make -C daemons
>>>> make[1]: Nothing to be done for 'all'.
>>>> make -C test check_local
>>>> VERBOSE=0 ./lib/runner \
>>>> --testdir . --outdir results \
>>>> --flavours ndev-vanilla --only
>>>> shell/lvchange-rebuild-raid.sh --skip @
>>>> running 1 tests
>>>> ### running: [ndev-vanilla] shell/lvchange-rebuild-raid.sh 0
>>>> | [ 0:00] lib/inittest: line 133:
>>>> /tmp/LVMTEST317948.iCoLwmDhZW/dev/testnull: Permission denied
>>>> | [ 0:00] Filesystem does support devices in
>>>> /tmp/LVMTEST317948.iCoLwmDhZW/dev (mounted with nodev?)
>>>
>>> I didn't read other mails in this thread, only for above issue.
>>> If you use opensuse, systemd service tmp.mount uses nodev option to
>>> mount tmpfs on /tmp.
>>> From my experience, there are two methods to fix(work around):
>>> 1. systemctl disable tmp.mount && systemctl mask tmp.mount && reboot
>>> 2. mv /usr/lib/systemd/system/tmp.mount /root/ && reboot
>>
>> I am using centos similar system, I can try leap later. Appreciate
>> for the tips, Heming.
>
>
> You can always redirect default /tmp dir to some other
> place/filesystem that allows you to create /dev nodes. Eventually for
> 'brave men' you can let lvm2 test suite to play directly with your
> /dev dir. Normally nothing bad should happen, but we tend to prefer
> more controled '/dev' managed for a test.
>
> Here are two envvars to play with:
>
>
> make check_local T=shell/lvchange-rebuild-raid.sh
> LVM_TEST_DIR=/myhomefsdir LVM_TEST_DEVDIR=/dev
>
> LVM_TEST_DIR for setting of dir where test creates all its files
>
> LVM_TEST_DEVDIR you can explicitly tell to keep using system's /dev
> (instead of dir created within tmpdir)
Thank you! This works for me.
[root@localhost lvm2]# make check_local T=shell/lvchange-rebuild-raid.sh
LVM_TEST_DIR=/root/test LVM_TEST_DEVDIR=/dev
make -C libdm device-mapper
make[1]: Nothing to be done for 'device-mapper'.
[... ]
make -C test check_local
VERBOSE=0 ./lib/runner \
--testdir . --outdir results \
--flavours ndev-vanilla --only shell/lvchange-rebuild-raid.sh
--skip @
running 1 tests
### passed: [ndev-vanilla] shell/lvchange-rebuild-raid.sh 20
### 1 tests: 1 passed, 0 skipped, 0 timed out, 0 warned, 0 failed
Thanks,
Guoqing
--
dm-devel mailing list
dm-devel@redhat.com
https://listman.redhat.com/mailman/listinfo/dm-devel
WARNING: multiple messages have this Message-ID (diff)
From: Guoqing Jiang <guoqing.jiang@linux.dev>
To: Zdenek Kabelac <zkabelac@redhat.com>,
Heming Zhao <heming.zhao@suse.com>,
Mikulas Patocka <mpatocka@redhat.com>, Song Liu <song@kernel.org>
Cc: linux-raid@vger.kernel.org, dm-devel@redhat.com
Subject: Re: A crash caused by the commit 0dd84b319352bb8ba64752d4e45396d8b13e6018
Date: Mon, 7 Nov 2022 09:52:45 +0800 [thread overview]
Message-ID: <57672478-63f3-d214-a2fc-ef06c4200e90@linux.dev> (raw)
In-Reply-To: <2f0551c6-44f9-0969-cb8f-c12c4fb44eff@redhat.com>
On 11/4/22 7:10 PM, Zdenek Kabelac wrote:
> Dne 04. 11. 22 v 2:23 Guoqing Jiang napsal(a):
>>
>>
>> On 11/3/22 10:46 PM, Heming Zhao wrote:
>>> On 11/3/22 11:47 AM, Guoqing Jiang wrote:
>>>> Hi,
>>>>
>>>> On 11/3/22 12:27 AM, Mikulas Patocka wrote:
>>>>> Hi
>>>>>
>>>>> There's a crash in the test shell/lvchange-rebuild-raid.sh when
>>>>> running
>>>>> the lvm testsuite. It can be reproduced by running "make check_local
>>>>> T=shell/lvchange-rebuild-raid.sh" in a loop.
>>>>
>>>> I have problem to run the cmd (not sure what I missed), it would be
>>>> better if
>>>> the relevant cmds are extracted from the script then I can
>>>> reproduce it with
>>>> those cmds directly.
>>>>
>>>> [root@localhost lvm2]# git log | head -1
>>>> commit 36a923926c2c27c1a8a5ac262387d2a4d3e620f8
>>>> [root@localhost lvm2]# make check_local
>>>> T=shell/lvchange-rebuild-raid.sh
>>>> make -C libdm device-mapper
>>>> [...]
>>>> make -C daemons
>>>> make[1]: Nothing to be done for 'all'.
>>>> make -C test check_local
>>>> VERBOSE=0 ./lib/runner \
>>>> --testdir . --outdir results \
>>>> --flavours ndev-vanilla --only
>>>> shell/lvchange-rebuild-raid.sh --skip @
>>>> running 1 tests
>>>> ### running: [ndev-vanilla] shell/lvchange-rebuild-raid.sh 0
>>>> | [ 0:00] lib/inittest: line 133:
>>>> /tmp/LVMTEST317948.iCoLwmDhZW/dev/testnull: Permission denied
>>>> | [ 0:00] Filesystem does support devices in
>>>> /tmp/LVMTEST317948.iCoLwmDhZW/dev (mounted with nodev?)
>>>
>>> I didn't read other mails in this thread, only for above issue.
>>> If you use opensuse, systemd service tmp.mount uses nodev option to
>>> mount tmpfs on /tmp.
>>> From my experience, there are two methods to fix(work around):
>>> 1. systemctl disable tmp.mount && systemctl mask tmp.mount && reboot
>>> 2. mv /usr/lib/systemd/system/tmp.mount /root/ && reboot
>>
>> I am using centos similar system, I can try leap later. Appreciate
>> for the tips, Heming.
>
>
> You can always redirect default /tmp dir to some other
> place/filesystem that allows you to create /dev nodes. Eventually for
> 'brave men' you can let lvm2 test suite to play directly with your
> /dev dir. Normally nothing bad should happen, but we tend to prefer
> more controled '/dev' managed for a test.
>
> Here are two envvars to play with:
>
>
> make check_local T=shell/lvchange-rebuild-raid.sh
> LVM_TEST_DIR=/myhomefsdir LVM_TEST_DEVDIR=/dev
>
> LVM_TEST_DIR for setting of dir where test creates all its files
>
> LVM_TEST_DEVDIR you can explicitly tell to keep using system's /dev
> (instead of dir created within tmpdir)
Thank you! This works for me.
[root@localhost lvm2]# make check_local T=shell/lvchange-rebuild-raid.sh
LVM_TEST_DIR=/root/test LVM_TEST_DEVDIR=/dev
make -C libdm device-mapper
make[1]: Nothing to be done for 'device-mapper'.
[... ]
make -C test check_local
VERBOSE=0 ./lib/runner \
--testdir . --outdir results \
--flavours ndev-vanilla --only shell/lvchange-rebuild-raid.sh
--skip @
running 1 tests
### passed: [ndev-vanilla] shell/lvchange-rebuild-raid.sh 20
### 1 tests: 1 passed, 0 skipped, 0 timed out, 0 warned, 0 failed
Thanks,
Guoqing
next prev parent reply other threads:[~2022-11-07 1:53 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-02 16:27 [dm-devel] A crash caused by the commit 0dd84b319352bb8ba64752d4e45396d8b13e6018 Mikulas Patocka
2022-11-02 16:27 ` Mikulas Patocka
2022-11-03 3:47 ` [dm-devel] " Guoqing Jiang
2022-11-03 3:47 ` Guoqing Jiang
2022-11-03 7:28 ` [dm-devel] " Guoqing Jiang
2022-11-03 7:28 ` Guoqing Jiang
2022-11-03 13:00 ` [dm-devel] " Mikulas Patocka
2022-11-03 13:00 ` Mikulas Patocka
2022-11-03 15:20 ` [dm-devel] " Mikulas Patocka
2022-11-03 15:20 ` Mikulas Patocka
2022-11-04 2:41 ` [dm-devel] " Guoqing Jiang
2022-11-04 2:41 ` Guoqing Jiang
2022-11-04 13:40 ` [dm-devel] " Mikulas Patocka
2022-11-04 13:40 ` Mikulas Patocka
2022-11-07 9:32 ` [dm-devel] " Guoqing Jiang
2022-11-07 9:32 ` Guoqing Jiang
2022-11-03 14:46 ` [dm-devel] " Heming Zhao
2022-11-03 14:46 ` Heming Zhao
2022-11-04 1:23 ` [dm-devel] " Guoqing Jiang
2022-11-04 1:23 ` Guoqing Jiang
2022-11-04 11:10 ` [dm-devel] " Zdenek Kabelac
2022-11-04 11:10 ` Zdenek Kabelac
2022-11-04 15:18 ` [dm-devel] " Xiao Ni
2022-11-04 15:18 ` Xiao Ni
2022-11-07 1:52 ` Guoqing Jiang [this message]
2022-11-07 1:52 ` Guoqing Jiang
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=57672478-63f3-d214-a2fc-ef06c4200e90@linux.dev \
--to=guoqing.jiang@linux.dev \
--cc=dm-devel@redhat.com \
--cc=heming.zhao@suse.com \
--cc=linux-raid@vger.kernel.org \
--cc=mpatocka@redhat.com \
--cc=song@kernel.org \
--cc=zkabelac@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.