I'm adding the actual errors I saw, just for the record.
What happens is that the root file system becomes read-only due to
errors on the drive. My root file system is a logical volume on an
encrypted partition (LVM with LUKS encryption), mounted and encrypted
with the following options:
$ mount | grep ubuntu
/dev/mapper/ubuntu--vg-root on / type ext4
(rw,relatime,errors=remount-ro,data=ordered)
$ sudo cryptsetup status nvme0n1p3_crypt
/dev/mapper/nvme0n1p3_crypt is active and is in use.
type: LUKS1
cipher: aes-xts-plain64
keysize: 512 bits
device: /dev/nvme0n1p3
offset: 4096 sectors
size: 498063360 sectors
mode: read/write
flags: discards
When the file system was re-mounted read-only due to errors, I booted
Ubuntu 16.04.2 from a USB flash drive and ran "e2fsck" to repair the
file system:
ubuntu@ubuntu:~$ sudo e2fsck -pfv /dev/mapper/ubuntu--vg-root
/dev/mapper/ubuntu--vg-root: recovering journal
/dev/mapper/ubuntu--vg-root: Inodes that were part of a corrupted orphan linked
list found.
/dev/mapper/ubuntu--vg-root: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY.
(i.e., without -a or -p options)
So then I ran the command again without the "-p" option, but with the
"-y" option to answer "yes" to all questions, and the command fixed 329
errors:
ubuntu@ubuntu:~$ sudo e2fsck -fvy /dev/mapper/ubuntu--vg-root
e2fsck 1.42.13 (17-May-2015)
Pass 1: Checking inodes, blocks, and sizes
Inodes that were part of a corrupted orphan linked list found. Fix? yes
[ ... 327 errors not shown ...]
Free inodes count wrong (13486735, counted=13478898).
Fix? yes
/dev/mapper/ubuntu--vg-root: ***** FILE SYSTEM WAS MODIFIED *****
1045518 inodes used (7.20%, out of 14524416)
2413 non-contiguous files (0.2%)
851 non-contiguous directories (0.1%)
# of inodes with ind/dind/tind blocks: 27/27/27
Extent depth histogram: 975523/235
30224290 blocks used (52.03%, out of 58093568)
0 bad blocks
6 large files
838712 regular files
113346 directories
67 character device files
29 block device files
3 fifos
28 links
93308 symbolic links (69609 fast symbolic links)
44 sockets
------------
1045537 files
This is the second day I'm running with the Ubuntu 16.04 GA Linux kernel
version 4.4.0-78 (instead of the HWE Linux kernel), and it still seems
to be okay, but the problem can take a few days to appear.
--
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1694596
Title:
LiteOn NVMe issue
Status in linux package in Ubuntu:
Confirmed
Bug description:
Originally reported at:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1678184/comments/79
The user uses "nvme_core.default_ps_max_latency_us=6000" but the issue
still happens.
$ sudo nvme id-ctrl /dev/nvme0
NVME Identify Controller:
vid : 0x14a4
ssvid : 0x1b4b
sn : TW0XVRV7LOH006AJ09F1
mn : CX2-8B256-Q11 NVMe LITEON 256GB
fr : 48811QD
rab : 0
ieee : 002303
cmic : 0
mdts : 5
cntlid : 1
ver : 10200
rtd3r : f4240
rtd3e : f4240
oaes : 0
oacs : 0x1f
acl : 3
aerl : 3
frmw : 0x14
lpa : 0x2
elpe : 63
npss : 4
avscc : 0x1
apsta : 0x1
wctemp : 358
cctemp : 368
mtfa : 50
hmpre : 0
hmmin : 0
tnvmcap : 256060514304
unvmcap : 0
rpmbs : 0
sqes : 0x66
cqes : 0x44
nn : 1
oncs : 0x1f
fuses : 0
fna : 0
vwc : 0x1
awun : 255
awupf : 7
nvscc : 1
acwu : 0
sgls : 0
ps 0 : mp:8.00W operational enlat:0 exlat:0 rrt:0 rrl:0
rwt:0 rwl:0 idle_power:- active_power:-
ps 1 : mp:4.00W operational enlat:5 exlat:5 rrt:1 rrl:1
rwt:1 rwl:1 idle_power:- active_power:-
ps 2 : mp:2.10W operational enlat:5 exlat:5 rrt:2 rrl:2
rwt:2 rwl:2 idle_power:- active_power:-
ps 3 : mp:0.1000W non-operational enlat:5000 exlat:5000 rrt:3 rrl:3
rwt:3 rwl:3 idle_power:- active_power:-
ps 4 : mp:0.0100W non-operational enlat:50000 exlat:100000 rrt:4 rrl:4
rwt:4 rwl:4 idle_power:- active_power:-
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1694596/+subscriptions
--
Mailing list: https://launchpad.net/~kernel-packages
Post to : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help : https://help.launchpad.net/ListHelp