* btt device node disappeared after configure with non support sector_size
[not found] ` <1128592617.11251323.1470302026839.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-08-04 9:15 ` Yi Zhang
[not found] ` <865881147.11251583.1470302147073.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Yi Zhang @ 2016-08-04 9:15 UTC (permalink / raw)
To: linux-nvdimm-y27Ovi1pjclAfugRpC6u6w
Hi folks,
Seems I hit one issue that btt device node disappeared after configure with non support sector_size, could you help confirm it?
4.7.0
# ndctl create-namespace -f -e namespace0.0 --mode=sector -l 512
{
"dev":"namespace0.0",
"mode":"sector",
"uuid":"45b4900d-da76-47c8-956f-a70e4ea33fe3",
"sector_size":512,
"blockdev":"pmem0s"
}
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
pmem0s 259:0 0 8G 0 disk
pmem1s 259:2 0 7.1G 0 disk
pmem2s 259:1 0 7.1G 0 disk
pmem3s 259:3 0 7.1G 0 disk
# ndctl create-namespace -f -e namespace0.0 --mode=sector -l 513
failed to reconfigure namespace
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
pmem1s 259:2 0 7.1G 0 disk
pmem2s 259:1 0 7.1G 0 disk
pmem3s 259:3 0 7.1G 0 disk
Best Regards,
Yi Zhang
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btt device node disappeared after configure with non support sector_size
[not found] ` <865881147.11251583.1470302147073.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2016-08-04 14:37 ` Dan Williams
[not found] ` <CAPcyv4i7o80YuYqpF07YQz4P3RAEYr-NZTLgi53=jMsYEPvOVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 3+ messages in thread
From: Dan Williams @ 2016-08-04 14:37 UTC (permalink / raw)
To: Yi Zhang; +Cc: linux-nvdimm
On Thu, Aug 4, 2016 at 2:15 AM, Yi Zhang <yizhan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
> Hi folks,
>
> Seems I hit one issue that btt device node disappeared after configure with non support sector_size, could you help confirm it?
>
> 4.7.0
> # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 512
> {
> "dev":"namespace0.0",
> "mode":"sector",
> "uuid":"45b4900d-da76-47c8-956f-a70e4ea33fe3",
> "sector_size":512,
> "blockdev":"pmem0s"
> }
> # lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> pmem0s 259:0 0 8G 0 disk
> pmem1s 259:2 0 7.1G 0 disk
> pmem2s 259:1 0 7.1G 0 disk
> pmem3s 259:3 0 7.1G 0 disk
> # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 513
> failed to reconfigure namespace
>
> # lsblk
> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
> pmem1s 259:2 0 7.1G 0 disk
> pmem2s 259:1 0 7.1G 0 disk
> pmem3s 259:3 0 7.1G 0 disk
This is expected if you specify invalid namespace values, but we
should be trapping this case and reporting a more useful error message
from ndctl rather than letting the kernel fail the namespace setup.
For now, you can fix this by re-configuring the namespace with valid values.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: btt device node disappeared after configure with non support sector_size
[not found] ` <CAPcyv4i7o80YuYqpF07YQz4P3RAEYr-NZTLgi53=jMsYEPvOVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2016-08-04 15:32 ` yizhan
0 siblings, 0 replies; 3+ messages in thread
From: yizhan @ 2016-08-04 15:32 UTC (permalink / raw)
To: Dan Williams; +Cc: linux-nvdimm
On 08/04/2016 10:37 PM, Dan Williams wrote:
> On Thu, Aug 4, 2016 at 2:15 AM, Yi Zhang <yizhan-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org> wrote:
>> Hi folks,
>>
>> Seems I hit one issue that btt device node disappeared after configure with non support sector_size, could you help confirm it?
>>
>> 4.7.0
>> # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 512
>> {
>> "dev":"namespace0.0",
>> "mode":"sector",
>> "uuid":"45b4900d-da76-47c8-956f-a70e4ea33fe3",
>> "sector_size":512,
>> "blockdev":"pmem0s"
>> }
>> # lsblk
>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>> pmem0s 259:0 0 8G 0 disk
>> pmem1s 259:2 0 7.1G 0 disk
>> pmem2s 259:1 0 7.1G 0 disk
>> pmem3s 259:3 0 7.1G 0 disk
>> # ndctl create-namespace -f -e namespace0.0 --mode=sector -l 513
>> failed to reconfigure namespace
>>
>> # lsblk
>> NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
>> pmem1s 259:2 0 7.1G 0 disk
>> pmem2s 259:1 0 7.1G 0 disk
>> pmem3s 259:3 0 7.1G 0 disk
> This is expected if you specify invalid namespace values, but we
> should be trapping this case and reporting a more useful error message
> from ndctl rather than letting the kernel fail the namespace setup.
>
> For now, you can fix this by re-configuring the namespace with valid values.
yes, I have re-configured with valid sector size and the pmem0s
reconfigured.
I think it's better to let the pmem0s device node still exist and can be
used rather than fail the kernel setup. :)
Thanks
Yi
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-08-04 15:32 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1128592617.11251323.1470302026839.JavaMail.zimbra@redhat.com>
[not found] ` <1128592617.11251323.1470302026839.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-04 9:15 ` btt device node disappeared after configure with non support sector_size Yi Zhang
[not found] ` <865881147.11251583.1470302147073.JavaMail.zimbra-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-08-04 14:37 ` Dan Williams
[not found] ` <CAPcyv4i7o80YuYqpF07YQz4P3RAEYr-NZTLgi53=jMsYEPvOVw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-08-04 15:32 ` yizhan
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.