{"id":326,"date":"2024-12-25T17:56:12","date_gmt":"2024-12-25T17:56:12","guid":{"rendered":"https:\/\/www.kwenie.com\/?p=326"},"modified":"2024-12-28T14:17:30","modified_gmt":"2024-12-28T14:17:30","slug":"home-server-and-lexar-nvme-ssd-issues","status":"publish","type":"post","link":"https:\/\/www.kwenie.com\/index.php\/2024\/12\/25\/home-server-and-lexar-nvme-ssd-issues\/","title":{"rendered":"Proxmox server Lexar NM790 NVME SSD crash"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" src=\"https:\/\/www.proxmox.com\/images\/proxmox\/Proxmox_logo_standard_hex_400px.png#joomlaImage:\/\/local-images\/proxmox\/Proxmox_logo_standard_hex_400px.png?width=400&amp;height=60\" alt=\"\"\/><\/figure>\n\n\n\n<p>As an IT nerd I try to use tech to its max and having a Proxmox install in use to maximize use of resources on a laptop server. The laptop is use mainly its for low energy consumption and the build in UPS (aka the laptop battery \ud83d\ude42 ).<\/p>\n\n\n\n<p>That server hosts a shared storage to keep my photos and make automated backups of those photos. So 2 years ago I upgraded the server to a 2Tb NVME disk of Western Digital and had no issues at all with that. <\/p>\n\n\n\n<p>This year I started to review my photo store on the PC which I use for photo editing and came to the conclusion that the servers disk space was to small to store all the photos I have. So it was time to look for a bigger disk. With the Black Friday deals on their way I also checked some reviews of 4Tb disks on a budget and with decent performance. Which resulted in me buying a Lexar NM790 4Tb for a nice price (thanks for the Black friday deals \ud83d\ude42 ).<\/p>\n\n\n\n<p>So I migrated the Proxmox OS to it and tested it if it would boot on a different laptop. In the end the migration was fairly painless. The copy speed of the data (1.4Tb!) was around 350Mb\/s which was quite impressive. There was a catch though (otherwise I would not write this blog \ud83d\ude42 ).<\/p>\n\n\n\n<p>The server would crash after a day or so (or sometimes faster) with mixed ext4 errors like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>kmmpd: 185 comm kmmpd-dm-16: Error writing to MMP block<\/li>\n\n\n\n<li>EXT4-fs error in ext4_reserve_inode_write : Journal has aborted<\/li>\n<\/ul>\n\n\n\n<p>Not really good for a server which is constanly online for internet proxy and network security purposes. So I needed to find answers how to fix it.. And in the end I found some info with the same trouble with Ubuntu on <a href=\"https:\/\/askubuntu.com\/questions\/1521014\/lexar-nm790-4tb-ssd-keeps-crashing-my-fresh-install-of-ubuntu-24-04\">https:\/\/askubuntu.com\/questions\/1521014\/lexar-nm790-4tb-ssd-keeps-crashing-my-fresh-install-of-ubuntu-24-04<\/a><\/p>\n\n\n\n<p>There should be a newer firmware for the disk fixing the problem, but adding a windows 10 install to the test laptop and trying the correct tools of Lexar did not result in a firmware update. So I will revert to the other solution provided to stop the disk going into sleep mode which is apparently not working properly with Linux :-(.<\/p>\n\n\n\n<p>I will update the blog post once the server is up and running again with the new disk and it survives a few days of uptime.<\/p>\n\n\n\n<p>The solution will be to add:<\/p>\n\n\n\n<p>nvme_core.default_ps_max_latency_us=0\u00a0to the boot line for the kernel.<\/p>\n\n\n\n<p>We should edit the file&nbsp;<code>\/etc\/default\/grub<\/code>&nbsp;and update the line&nbsp;containing <code>GRUB_CMDLINE_LINUX_DEFAULT<\/code>&nbsp;and make it look like:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>GRUB_CMDLINE_LINUX_DEFAULT=\"quiet splash nvme_core.default_ps_max_latency_us=0\"\n<\/code><\/pre>\n\n\n\n<p>Then after updating&nbsp;<code>\/etc\/default\/grub<\/code>, run the following command:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo update-grub<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>As an IT nerd I try to use tech to its max and having a Proxmox install in use to maximize use of resources on a laptop server. The laptop is use mainly its for low energy consumption and the build in UPS (aka the laptop battery \ud83d\ude42 ). That server hosts a shared storage [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-326","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/posts\/326","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/comments?post=326"}],"version-history":[{"count":0,"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/posts\/326\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/media?parent=326"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/categories?post=326"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kwenie.com\/index.php\/wp-json\/wp\/v2\/tags?post=326"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}