Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1357451

Summary: pmem0 device node disappeared after reconfigure with 510 sector-size
Product: Red Hat Enterprise Linux 7 Reporter: Zhang Yi <yizhan>
Component: ndctlAssignee: Jeff Moyer <jmoyer>
Status: CLOSED ERRATA QA Contact: Zhang Yi <yizhan>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 7.3   
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-08-01 23:14:27 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Comment 2 Jeff Moyer 2016-07-18 14:26:18 UTC
510 isn't a supported sector size.  What did you expect to happen?  Did you expect the existing device to remain intact?

Comment 3 Zhang Yi 2016-07-19 01:48:54 UTC
(In reply to Jeffrey Moyer from comment #2)
> 510 isn't a supported sector size.  What did you expect to happen?  Did you
> expect the existing device to remain intact?

Yes, I think the existing device pmem0 should still exist although reconfigured with unsupported sector size

Comment 4 Zhang Yi 2016-08-05 03:46:45 UTC
Reported this issue to upstream and Dan have submitted below patch:
https://lists.01.org/pipermail/linux-nvdimm/2016-August/006526.html

Comment 5 Jeff Moyer 2017-03-27 17:35:55 UTC
Rebased to ndctl-56, package ndctl-56-1.el7.

Comment 7 Zhang Yi 2017-04-23 07:52:30 UTC
Verified with ndctl-56-1.el7.x86_64, change to VERIFIED.

# lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 279.4G  0 disk 
├─sda1   8:1    0    10G  0 part /boot/efi
├─sda2   8:2    0 229.4G  0 part /boot
├─sda3   8:3    0    15G  0 part 
├─sda4   8:4    0    15G  0 part 
└─sda5   8:5    0    10G  0 part [SWAP]
sdb      8:16   0 279.4G  0 disk 
└─sdb1   8:17   0 279.4G  0 part /
sr0     11:0    1  1024M  0 rom  
pmem0  259:0    0     8G  0 disk 
pmem1s 259:1    0     8G  0 disk 
pmem2s 259:2    0     8G  0 disk 
pmem3s 259:3    0     8G  0 disk 
[root@hp-dl380gen9-01 ~]# ndctl create-namespace -f -e namespace0.0 --mode=sector -l 510
failed to reconfigure namespace: invalid argument
[root@hp-dl380gen9-01 ~]# lsblk 
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 279.4G  0 disk 
├─sda1   8:1    0    10G  0 part /boot/efi
├─sda2   8:2    0 229.4G  0 part /boot
├─sda3   8:3    0    15G  0 part 
├─sda4   8:4    0    15G  0 part 
└─sda5   8:5    0    10G  0 part [SWAP]
sdb      8:16   0 279.4G  0 disk 
└─sdb1   8:17   0 279.4G  0 part /
sr0     11:0    1  1024M  0 rom  
pmem0  259:0    0     8G  0 disk 
pmem1s 259:1    0     8G  0 disk 
pmem2s 259:2    0     8G  0 disk 
pmem3s 259:3    0     8G  0 disk

Comment 8 errata-xmlrpc 2017-08-01 23:14:27 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:2208