<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.rosemarknetworks.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Julian</id>
	<title>RoseWiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://www.rosemarknetworks.com/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Julian"/>
	<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php/Special:Contributions/Julian"/>
	<updated>2026-06-16T00:52:48Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.42.3</generator>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Remove_Ceph_old_health_warnings&amp;diff=127</id>
		<title>Proxmox Remove Ceph old health warnings</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Remove_Ceph_old_health_warnings&amp;diff=127"/>
		<updated>2024-12-17T16:36:21Z</updated>

		<summary type="html">&lt;p&gt;Julian: Created Page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If you have solved a problem with &#039;&#039;&#039;Proxmox&#039;&#039;&#039; and Ceph, e.g. the crash of a monitor or OSD deamon has been noted and corrected, the error message often remains in the Proxmox web GUI. These log entries in the GUI are crash logs of the underlying Ceph system. The Ceph crash command can be used to manage Ceph crash logs:&lt;br /&gt;
&lt;br /&gt;
=== List Ceph crashes ===&lt;br /&gt;
 root@pve-01:~# ceph crash ls&lt;br /&gt;
 &lt;br /&gt;
 ID ENTITY NEW&lt;br /&gt;
 2020-10-26_15:18:33.471228Z_1e218df6-0c92-4269-8e03-3bf6564e9aac mon.pve-03&lt;br /&gt;
 2020-10-26_15:29:58.556281Z_1cda3f71-d4a1-47e2-83e9-a08285d2e041 mon.pve-02&lt;br /&gt;
&lt;br /&gt;
=== Hide Ceph Crashes from the Proxmox GUI ===&lt;br /&gt;
&lt;br /&gt;
* ceph crash archive &amp;lt;ID&amp;gt;: Archives single crash entry (will not appear in Proxmox GUI anymore)&lt;br /&gt;
* ceph crash archive-all: Archives all crash entries (no longer appear in the Proxmox GUI)&lt;br /&gt;
&lt;br /&gt;
After archiving, the crashes are still viewable with ceph crash ls.&lt;br /&gt;
&lt;br /&gt;
=== Ceph crash commands ===&lt;br /&gt;
&lt;br /&gt;
* ceph crash info &amp;lt;ID &amp;gt;: Show details about the specific crash&lt;br /&gt;
* ceph crash stat: Shows the number of crashes since Ceph installation&lt;br /&gt;
* ceph crash rm &amp;lt;ID&amp;gt;: Deletes a single crash entry&lt;br /&gt;
* ceph crash prune &amp;lt;DAYS&amp;gt;: Deletes crashes older than &amp;lt;DAYS&amp;gt; days&lt;br /&gt;
&lt;br /&gt;
Author: Jonas Sterr&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=126</id>
		<title>Category:Linux Tutorials</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=126"/>
		<updated>2024-12-17T16:35:33Z</updated>

		<summary type="html">&lt;p&gt;Julian: /* Linux Tutorials (Especially helpful for Proxmox) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some of our Linux tutorials.&lt;br /&gt;
&lt;br /&gt;
== Linux Tutorials (Especially helpful for Proxmox) ==&lt;br /&gt;
&lt;br /&gt;
* [[Offline Uncorrectable Sectors]]&lt;br /&gt;
* [[ZFS Failed Disk Replacement]]&lt;br /&gt;
* [[Calculating SSD Wearout]]&lt;br /&gt;
* [[Proxmox Backup Server Replication]]&lt;br /&gt;
* [[Proxmox Host SSH keys]]&lt;br /&gt;
* [[Replacing Proxmox Virtual Environment Server in a Ceph cluster]]&lt;br /&gt;
* [[Proxmox Remove Ceph old health warnings]]&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=122</id>
		<title>Proxmox Host SSH keys</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=122"/>
		<updated>2024-12-04T00:06:39Z</updated>

		<summary type="html">&lt;p&gt;Julian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Follow these steps to regenerate OpenSSH Host Keys after cloning a Proxmox host.&lt;br /&gt;
&lt;br /&gt;
    Delete old ssh host keys: rm /etc/ssh/ssh_host_*&lt;br /&gt;
    Reconfigure OpenSSH Server: dpkg-reconfigure openssh-server&lt;br /&gt;
    Update all ssh client(s) ~/.ssh/known_hosts files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    pvecm updatecerts -f&lt;br /&gt;
&lt;br /&gt;
    ufear said:&lt;br /&gt;
    So, if anybody runs into this. I couldn&#039;t get updatecerts to add keys for reinstalled nodes to the global /etc/pve/priv/ssh_known_hosts; however the folder /etc/pve/nodes/&amp;lt;nodename&amp;gt; contains a ssh_known_hosts file which contains the content you need; copy it over and the world is good again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your post put me in the right track and it seems I&#039;m able to connect by WebGUI shell from any host to any host in the cluster now.&lt;br /&gt;
&lt;br /&gt;
The problem was that two of my nodes were missing ssh_known_hosts file in&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
(The hosts that gave me KEY CHANGED warning in WebGUI Shell)&lt;br /&gt;
&lt;br /&gt;
I logged in to both troublesome nodes via ssh terminal and copied SSH public key from&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_rsa_key.pub&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/ssh_known_hosts&lt;br /&gt;
&lt;br /&gt;
file and added the node hostname in the beginning of the line before RSA public key like so:&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
NodeHostname ssh-rsa &amp;lt;the_rsa_pub_key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after that I restarted SSH service systemctl restart sshd on both nodes (not sure if necessary)&lt;br /&gt;
&lt;br /&gt;
This seems to have worked.&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=121</id>
		<title>Proxmox Host SSH keys</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=121"/>
		<updated>2024-12-04T00:06:02Z</updated>

		<summary type="html">&lt;p&gt;Julian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
Follow these steps to regenerate OpenSSH Host Keys&lt;br /&gt;
&lt;br /&gt;
    Delete old ssh host keys: rm /etc/ssh/ssh_host_*&lt;br /&gt;
    Reconfigure OpenSSH Server: dpkg-reconfigure openssh-server&lt;br /&gt;
    Update all ssh client(s) ~/.ssh/known_hosts files&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
    pvecm updatecerts -f&lt;br /&gt;
&lt;br /&gt;
    ufear said:&lt;br /&gt;
    So, if anybody runs into this. I couldn&#039;t get updatecerts to add keys for reinstalled nodes to the global /etc/pve/priv/ssh_known_hosts; however the folder /etc/pve/nodes/&amp;lt;nodename&amp;gt; contains a ssh_known_hosts file which contains the content you need; copy it over and the world is good again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your post put me in the right track and it seems I&#039;m able to connect by WebGUI shell from any host to any host in the cluster now.&lt;br /&gt;
&lt;br /&gt;
The problem was that two of my nodes were missing ssh_known_hosts file in&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
(The hosts that gave me KEY CHANGED warning in WebGUI Shell)&lt;br /&gt;
&lt;br /&gt;
I logged in to both troublesome nodes via ssh terminal and copied SSH public key from&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_rsa_key.pub&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/ssh_known_hosts&lt;br /&gt;
&lt;br /&gt;
file and added the node hostname in the beginning of the line before RSA public key like so:&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
NodeHostname ssh-rsa &amp;lt;the_rsa_pub_key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after that I restarted SSH service systemctl restart sshd on both nodes (not sure if necessary)&lt;br /&gt;
&lt;br /&gt;
This seems to have worked.&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=120</id>
		<title>Proxmox Host SSH keys</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=120"/>
		<updated>2024-12-03T23:52:20Z</updated>

		<summary type="html">&lt;p&gt;Julian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
    pvecm updatecerts -f&lt;br /&gt;
&lt;br /&gt;
    ufear said:&lt;br /&gt;
    So, if anybody runs into this. I couldn&#039;t get updatecerts to add keys for reinstalled nodes to the global /etc/pve/priv/ssh_known_hosts; however the folder /etc/pve/nodes/&amp;lt;nodename&amp;gt; contains a ssh_known_hosts file which contains the content you need; copy it over and the world is good again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your post put me in the right track and it seems I&#039;m able to connect by WebGUI shell from any host to any host in the cluster now.&lt;br /&gt;
&lt;br /&gt;
The problem was that two of my nodes were missing ssh_known_hosts file in&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
(The hosts that gave me KEY CHANGED warning in WebGUI Shell)&lt;br /&gt;
&lt;br /&gt;
I logged in to both troublesome nodes via ssh terminal and copied SSH public key from&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_rsa_key.pub&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/ssh_known_hosts&lt;br /&gt;
&lt;br /&gt;
file and added the node hostname in the beginning of the line before RSA public key like so:&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
NodeHostname ssh-rsa &amp;lt;the_rsa_pub_key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after that I restarted SSH service systemctl restart sshd on both nodes (not sure if necessary)&lt;br /&gt;
&lt;br /&gt;
This seems to have worked.&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=119</id>
		<title>Proxmox Host SSH keys</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Proxmox_Host_SSH_keys&amp;diff=119"/>
		<updated>2024-12-03T23:49:06Z</updated>

		<summary type="html">&lt;p&gt;Julian: Created page with &amp;quot;      May 3, 2024       Add bookmark     #59      ufear said:     So, if anybody runs into this. I couldn&amp;#039;t get updatecerts to add keys for reinstalled nodes to the global /etc/pve/priv/ssh_known_hosts; however the folder /etc/pve/nodes/&amp;lt;nodename&amp;gt; contains a ssh_known_hosts file which contains the content you need; copy it over and the world is good again.   Your post put me in the right track and it seems I&amp;#039;m able to connect by WebGUI shell from any host to any host in...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
    May 3, 2024 &lt;br /&gt;
&lt;br /&gt;
    Add bookmark&lt;br /&gt;
    #59&lt;br /&gt;
&lt;br /&gt;
    ufear said:&lt;br /&gt;
    So, if anybody runs into this. I couldn&#039;t get updatecerts to add keys for reinstalled nodes to the global /etc/pve/priv/ssh_known_hosts; however the folder /etc/pve/nodes/&amp;lt;nodename&amp;gt; contains a ssh_known_hosts file which contains the content you need; copy it over and the world is good again.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Your post put me in the right track and it seems I&#039;m able to connect by WebGUI shell from any host to any host in the cluster now.&lt;br /&gt;
&lt;br /&gt;
The problem was that two of my nodes were missing ssh_known_hosts file in&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/&lt;br /&gt;
&lt;br /&gt;
(The hosts that gave me KEY CHANGED warning in WebGUI Shell)&lt;br /&gt;
&lt;br /&gt;
I logged in to both troublesome nodes via ssh terminal and copied SSH public key from&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/ssh/ssh_host_rsa_key.pub&lt;br /&gt;
&lt;br /&gt;
to&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
/etc/pve/nodes/&amp;lt;node&amp;gt;/ssh_known_hosts&lt;br /&gt;
&lt;br /&gt;
file and added the node hostname in the beginning of the line before RSA public key like so:&lt;br /&gt;
&lt;br /&gt;
Code:&lt;br /&gt;
&lt;br /&gt;
NodeHostname ssh-rsa &amp;lt;the_rsa_pub_key&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
after that I restarted SSH service systemctl restart sshd on both nodes (not sure if necessary)&lt;br /&gt;
&lt;br /&gt;
This seems to have worked.&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=118</id>
		<title>Category:Linux Tutorials</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=118"/>
		<updated>2024-12-03T23:48:44Z</updated>

		<summary type="html">&lt;p&gt;Julian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some of our Linux tutorials.&lt;br /&gt;
&lt;br /&gt;
== Linux Tutorials (Especially helpful for Proxmox) ==&lt;br /&gt;
&lt;br /&gt;
* [[Offline Uncorrectable Sectors]]&lt;br /&gt;
* [[ZFS Failed Disk Replacement]]&lt;br /&gt;
* [[Calculating SSD Wearout]]&lt;br /&gt;
* [[Proxmox Backup Server Replication]]&lt;br /&gt;
* [[Proxmox Host SSH keys]]&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=117</id>
		<title>Category:Linux Tutorials</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=Category:Linux_Tutorials&amp;diff=117"/>
		<updated>2024-12-03T23:47:21Z</updated>

		<summary type="html">&lt;p&gt;Julian: /* Linux Tutorials (Especially helpful for Proxmox) */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Here are some of our Linux tutorials.&lt;br /&gt;
&lt;br /&gt;
== Linux Tutorials (Especially helpful for Proxmox) ==&lt;br /&gt;
&lt;br /&gt;
* [[Offline Uncorrectable Sectors]]&lt;br /&gt;
* [[ZFS Failed Disk Replacement]]&lt;br /&gt;
* [[Calculating SSD Wearout]]&lt;br /&gt;
* [[Proxmox Backup Server Replication]]&lt;br /&gt;
* Proxmox Host SSH keys&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=116</id>
		<title>ZFS Failed Disk Replacement</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=116"/>
		<updated>2024-12-01T05:29:02Z</updated>

		<summary type="html">&lt;p&gt;Julian: Fix UEFI boot with proxmox-boot-tool&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Copy partitions from good disk sda to blank disk sdb==&lt;br /&gt;
 sgdisk /dev/sda -R /dev/sdb	# sgdisk  /dev/sda&amp;lt;From this disk&amp;gt; -R /dev/sdb&amp;lt;Replicate to this disk&amp;gt;&amp;lt;br&amp;gt;sgdisk -G /dev/sdb		# randomize the GUID on the new disk since it was copied from the other drive.&lt;br /&gt;
&lt;br /&gt;
==Using Parted to verify the partition table of /dev/sdb==&lt;br /&gt;
 (parted) select /dev/sdb&amp;lt;br&amp;gt;Using /dev/sdb&lt;br /&gt;
 &amp;lt;br&amp;gt;(parted) p&amp;lt;br&amp;gt;    Model: ATA WDC WD2000FYYZ-0 (scsi)&amp;lt;br&amp;gt;    Disk /dev/sdb: 2000398934016B&amp;lt;br&amp;gt;    Sector size (logical/physical): 512B/512B&amp;lt;br&amp;gt;    Partition Table: gpt&amp;lt;br&amp;gt;    Disk Flags:&amp;lt;br&amp;gt;    Number Start End Size File system Name Flags&lt;br /&gt;
     1 1048576B 2097151B 1048576B Grub-Boot-Partition bios_grub&lt;br /&gt;
     2 2097152B 136314879B 134217728B fat32 EFI-System-Partition boot, esp&lt;br /&gt;
     3 136314880B 2000397885439B 2000261570560B zfs PVE-ZFS-Partition&lt;br /&gt;
 &lt;br /&gt;
 (Ok partitions copied)&lt;br /&gt;
&lt;br /&gt;
==Copy data from /dev/sda1 to /dev/sdb1==&lt;br /&gt;
 dd if=/dev/sda1 of=/dev/sdb1 bs=512 #This is the bios boot partition  &lt;br /&gt;
 root@folkvang:~# dd if=/dev/sda1 of=/dev/sdb1 bs=512&lt;br /&gt;
 2014+0 records in   &lt;br /&gt;
 2014+0 records out  &lt;br /&gt;
 1031168 bytes (1.0 MB) copied, 0.10164 s, 10.1 MB/s  &lt;br /&gt;
&lt;br /&gt;
==Replace the failed partition in the zpool==&lt;br /&gt;
Find the ID of the failed block device&lt;br /&gt;
 root@folkvang:~# zpool status&lt;br /&gt;
 pool: rpool&lt;br /&gt;
     state: DEGRADED&lt;br /&gt;
     status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state.&lt;br /&gt;
     action: Replace the device using &#039;zpool replace&#039;.&lt;br /&gt;
     see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
     scan: scrub repaired 0 in 0h25m with 0 errors on Sun May  8 11:20:27 2016&lt;br /&gt;
     config&lt;br /&gt;
     NAME                    STATE     READ WRITE CKSUM&lt;br /&gt;
     rpool                   DEGRADED     0     0     0&lt;br /&gt;
       mirror-0              DEGRADED     0     0     0&lt;br /&gt;
         993077023721924477  FAULTED      0     0     0  was /dev/sdk2&lt;br /&gt;
         sdk2                ONLINE       0     0     0&lt;br /&gt;
     errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
==Call zpool to replace the failed device==&lt;br /&gt;
 root@folkvang:~# zpool replace -f rpool 993077023721924477 /dev/sdl2&lt;br /&gt;
 &lt;br /&gt;
Make sure to wait until resilver is done before rebooting.&lt;br /&gt;
 root@folkvang:~# zpool statuspool: rpool&amp;lt;br&amp;gt;    state: DEGRADED&amp;lt;br&amp;gt;    status: One or more devices is currently being resilvered.  The pool will continue to function, possibly in a degraded state.&amp;lt;br&amp;gt;    action: Wait for the resilver to complete.&amp;lt;br&amp;gt;    scan: resilver in progress since Fri Sep  2 16:45:53 2016&amp;lt;br&amp;gt;    13.2M scanned out of 8.83G at 902K/s, 2h50m to go&amp;lt;br&amp;gt;    12.9M resilvered, 0.15% done&amp;lt;br&amp;gt;    config:&amp;lt;br&amp;gt;    NAME                      STATE     READ WRITE CKSUM&amp;lt;br&amp;gt;    rpool                     DEGRADED     0     0     0&amp;lt;br&amp;gt;      mirror-0                DEGRADED     0     0     0&amp;lt;br&amp;gt;        replacing-0           UNAVAIL      0     0     0&amp;lt;br&amp;gt;          993077023721924477  FAULTED      0     0     0  was /dev/sdk2&amp;lt;br&amp;gt;          sdl2                ONLINE       0     0     0  (resilvering)&amp;lt;br&amp;gt;        sdk2                  ONLINE       0     0     0&amp;lt;br&amp;gt;    errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
== After fixing the drive, we need to ensure that the boot sectors are configured. ==&lt;br /&gt;
proxmox-boot-tool format /dev/sdb2&lt;br /&gt;
&lt;br /&gt;
proxmox-boot-tool init /dev/sdb2&lt;br /&gt;
&lt;br /&gt;
proxmox-boot-tool refresh&lt;br /&gt;
&lt;br /&gt;
proxmox-boot-tool status&lt;br /&gt;
&lt;br /&gt;
proxmox-boot-tool clean&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;grub-install /dev/sdk&amp;lt;br&amp;gt;grub-install /dev/sdl&amp;lt;br&amp;gt;update-grub&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Tutorials]]&lt;br /&gt;
[[Category:Proxmox Tutorials]]&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=106</id>
		<title>ZFS Failed Disk Replacement</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=106"/>
		<updated>2024-10-13T14:27:24Z</updated>

		<summary type="html">&lt;p&gt;Julian: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Copy partitions from good disk sda to blank disk sdb==&lt;br /&gt;
 sgdisk /dev/sda -R /dev/sdb	# sgdisk  /dev/sda&amp;lt;From this disk&amp;gt; -R /dev/sdb&amp;lt;Replicate to this disk&amp;gt;&amp;lt;br&amp;gt;sgdisk -G /dev/sdb		# randomize the GUID on the new disk since it was copied from the other drive.&lt;br /&gt;
&lt;br /&gt;
==Using Parted to verify the partition table of /dev/sdb==&lt;br /&gt;
 (parted) select /dev/sdb&amp;lt;br&amp;gt;Using /dev/sdb&lt;br /&gt;
 &amp;lt;br&amp;gt;(parted) p&amp;lt;br&amp;gt;    Model: ATA WDC WD2000FYYZ-0 (scsi)&amp;lt;br&amp;gt;    Disk /dev/sdb: 2000398934016B&amp;lt;br&amp;gt;    Sector size (logical/physical): 512B/512B&amp;lt;br&amp;gt;    Partition Table: gpt&amp;lt;br&amp;gt;    Disk Flags:&amp;lt;br&amp;gt;    Number Start End Size File system Name Flags&lt;br /&gt;
     1 1048576B 2097151B 1048576B Grub-Boot-Partition bios_grub&lt;br /&gt;
     2 2097152B 136314879B 134217728B fat32 EFI-System-Partition boot, esp&lt;br /&gt;
     3 136314880B 2000397885439B 2000261570560B zfs PVE-ZFS-Partition&lt;br /&gt;
 &lt;br /&gt;
 (Ok partitions copied)&lt;br /&gt;
&lt;br /&gt;
==Copy data from /dev/sda1 to /dev/sdb1==&lt;br /&gt;
 dd if=/dev/sda1 of=/dev/sdb1 bs=512 #This is the bios boot partition  &lt;br /&gt;
 root@folkvang:~# dd if=/dev/sda1 of=/dev/sdb1 bs=512&lt;br /&gt;
 2014+0 records in   &lt;br /&gt;
 2014+0 records out  &lt;br /&gt;
 1031168 bytes (1.0 MB) copied, 0.10164 s, 10.1 MB/s  &lt;br /&gt;
&lt;br /&gt;
==Replace the failed partition in the zpool==&lt;br /&gt;
Find the ID of the failed block device&lt;br /&gt;
 root@folkvang:~# zpool status&lt;br /&gt;
 pool: rpool&lt;br /&gt;
     state: DEGRADED&lt;br /&gt;
     status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state.&lt;br /&gt;
     action: Replace the device using &#039;zpool replace&#039;.&lt;br /&gt;
     see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
     scan: scrub repaired 0 in 0h25m with 0 errors on Sun May  8 11:20:27 2016&lt;br /&gt;
     config&lt;br /&gt;
     NAME                    STATE     READ WRITE CKSUM&lt;br /&gt;
     rpool                   DEGRADED     0     0     0&lt;br /&gt;
       mirror-0              DEGRADED     0     0     0&lt;br /&gt;
         993077023721924477  FAULTED      0     0     0  was /dev/sdk2&lt;br /&gt;
         sdk2                ONLINE       0     0     0&lt;br /&gt;
     errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
==Call zpool to replace the failed device==&lt;br /&gt;
 root@folkvang:~# zpool replace -f rpool 993077023721924477 /dev/sdl2&lt;br /&gt;
 &lt;br /&gt;
Make sure to wait until resilver is done before rebooting.&lt;br /&gt;
 root@folkvang:~# zpool statuspool: rpool&amp;lt;br&amp;gt;    state: DEGRADED&amp;lt;br&amp;gt;    status: One or more devices is currently being resilvered.  The pool will continue to function, possibly in a degraded state.&amp;lt;br&amp;gt;    action: Wait for the resilver to complete.&amp;lt;br&amp;gt;    scan: resilver in progress since Fri Sep  2 16:45:53 2016&amp;lt;br&amp;gt;    13.2M scanned out of 8.83G at 902K/s, 2h50m to go&amp;lt;br&amp;gt;    12.9M resilvered, 0.15% done&amp;lt;br&amp;gt;    config:&amp;lt;br&amp;gt;    NAME                      STATE     READ WRITE CKSUM&amp;lt;br&amp;gt;    rpool                     DEGRADED     0     0     0&amp;lt;br&amp;gt;      mirror-0                DEGRADED     0     0     0&amp;lt;br&amp;gt;        replacing-0           UNAVAIL      0     0     0&amp;lt;br&amp;gt;          993077023721924477  FAULTED      0     0     0  was /dev/sdk2&amp;lt;br&amp;gt;          sdl2                ONLINE       0     0     0  (resilvering)&amp;lt;br&amp;gt;        sdk2                  ONLINE       0     0     0&amp;lt;br&amp;gt;    errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
== After fixing the drive, we need to ensure that the boot sectors are configured. ==&lt;br /&gt;
&amp;lt;b&amp;gt;grub-install /dev/sdk&amp;lt;br&amp;gt;grub-install /dev/sdl&amp;lt;br&amp;gt;update-grub&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Tutorials]]&lt;br /&gt;
[[Category:Proxmox Tutorials]]&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
	<entry>
		<id>https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=80</id>
		<title>ZFS Failed Disk Replacement</title>
		<link rel="alternate" type="text/html" href="https://www.rosemarknetworks.com/wiki/index.php?title=ZFS_Failed_Disk_Replacement&amp;diff=80"/>
		<updated>2024-10-09T14:33:06Z</updated>

		<summary type="html">&lt;p&gt;Julian: /* Copy partitions from good disk sda to blank disk sdb */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;==Copy partitions from good disk sda to blank disk sdb==&lt;br /&gt;
 sgdisk /dev/sda -R /dev/sdb	# sgdisk  /dev/sda&amp;lt;From this disk&amp;gt; -R /dev/sdb&amp;lt;Replicate to this disk&amp;gt;&amp;lt;br&amp;gt;sgdisk -G /dev/sdb		# randomize the GUID on the new disk since it was copied from the other drive.&lt;br /&gt;
&lt;br /&gt;
==Using Parted to verify the partition table of /dev/sdl==&lt;br /&gt;
 (parted) select /dev/sdl&amp;lt;br&amp;gt;Using /dev/sdl&lt;br /&gt;
 &amp;lt;br&amp;gt;(parted) p&amp;lt;br&amp;gt;    Model: ATA WDC WD2000FYYZ-0 (scsi)&amp;lt;br&amp;gt;    Disk /dev/sdl: 2000398934016B&amp;lt;br&amp;gt;    Sector size (logical/physical): 512B/512B&amp;lt;br&amp;gt;    Partition Table: gpt&amp;lt;br&amp;gt;    Disk Flags:&amp;lt;br&amp;gt;    Number Start End Size File system Name Flags&lt;br /&gt;
     1 1048576B 2097151B 1048576B Grub-Boot-Partition bios_grub&lt;br /&gt;
     2 2097152B 136314879B 134217728B fat32 EFI-System-Partition boot, esp&lt;br /&gt;
     3 136314880B 2000397885439B 2000261570560B zfs PVE-ZFS-Partition&lt;br /&gt;
 &lt;br /&gt;
 (Ok partitions copied)&lt;br /&gt;
&lt;br /&gt;
==Copy data from /dev/sda1 to /dev/sdb1 and /dev/sda2 to /dev/sdb2==&lt;br /&gt;
 dd if=/dev/sda1 of=/dev/sdb1 bs=512 #This is the bios boot partition  &lt;br /&gt;
 root@folkvang:~# dd if=/dev/sdk1 of=/dev/sdl1 bs=512&lt;br /&gt;
 2014+0 records in   &lt;br /&gt;
 2014+0 records out  &lt;br /&gt;
 1031168 bytes (1.0 MB) copied, 0.10164 s, 10.1 MB/s  &lt;br /&gt;
&lt;br /&gt;
==Replace the failed partition in the zpool==&lt;br /&gt;
Find the ID of the failed block device&lt;br /&gt;
 root@folkvang:~# zpool status&lt;br /&gt;
 pool: rpool&lt;br /&gt;
     state: DEGRADED&lt;br /&gt;
     status: One or more devices could not be used because the label is missing or invalid. Sufficient replicas exist for the pool to continue functioning in a degraded state.&lt;br /&gt;
     action: Replace the device using &#039;zpool replace&#039;.&lt;br /&gt;
     see: http://zfsonlinux.org/msg/ZFS-8000-4J&lt;br /&gt;
     scan: scrub repaired 0 in 0h25m with 0 errors on Sun May  8 11:20:27 2016&lt;br /&gt;
     config&lt;br /&gt;
     NAME                    STATE     READ WRITE CKSUM&lt;br /&gt;
     rpool                   DEGRADED     0     0     0&lt;br /&gt;
       mirror-0              DEGRADED     0     0     0&lt;br /&gt;
         993077023721924477  FAULTED      0     0     0  was /dev/sdk2&lt;br /&gt;
         sdk2                ONLINE       0     0     0&lt;br /&gt;
     errors: No known data errors&lt;br /&gt;
&lt;br /&gt;
==Call zpool to replace the failed device==&lt;br /&gt;
 root@folkvang:~# zpool replace -f rpool 993077023721924477 /dev/sdl2&lt;br /&gt;
 &lt;br /&gt;
Make sure to wait until resilver is done before rebooting.&lt;br /&gt;
 root@folkvang:~# zpool statuspool: rpool&amp;lt;br&amp;gt;    state: DEGRADED&amp;lt;br&amp;gt;    status: One or more devices is currently being resilvered.  The pool will continue to function, possibly in a degraded state.&amp;lt;br&amp;gt;    action: Wait for the resilver to complete.&amp;lt;br&amp;gt;    scan: resilver in progress since Fri Sep  2 16:45:53 2016&amp;lt;br&amp;gt;    13.2M scanned out of 8.83G at 902K/s, 2h50m to go&amp;lt;br&amp;gt;    12.9M resilvered, 0.15% done&amp;lt;br&amp;gt;    config:&amp;lt;br&amp;gt;    NAME                      STATE     READ WRITE CKSUM&amp;lt;br&amp;gt;    rpool                     DEGRADED     0     0     0&amp;lt;br&amp;gt;      mirror-0                DEGRADED     0     0     0&amp;lt;br&amp;gt;        replacing-0           UNAVAIL      0     0     0&amp;lt;br&amp;gt;          993077023721924477  FAULTED      0     0     0  was /dev/sdk2&amp;lt;br&amp;gt;          sdl2                ONLINE       0     0     0  (resilvering)&amp;lt;br&amp;gt;        sdk2                  ONLINE       0     0     0&amp;lt;br&amp;gt;    errors: No known data errors&lt;br /&gt;
After fixing the drive, we need to ensure that the boot sectors are configured.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;grub-install /dev/sdk&amp;lt;br&amp;gt;grub-install /dev/sdl&amp;lt;br&amp;gt;update-grub&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Linux Tutorials]]&lt;br /&gt;
[[Category:Proxmox Tutorials]]&lt;/div&gt;</summary>
		<author><name>Julian</name></author>
	</entry>
</feed>