Re: Replacing a REMOVED drive in DEGRADED zpool
Date: Fri, 22 Aug 2025 16:53:08 UTC
On 8/22/2025 2:04 AM, David Christensen wrote: >> root@db1:~ # cat /etc/rc.conf >> hostname="db1.REDACTED" >> ifconfig_em0="inet REDACTEDÂ netmask 255.255.255.192" >> defaultrouter="REDACTED.1" >> >> # Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable >> dumpdev="AUTO" >> nrpe3_enable="YES" >> sshd_enable="YES" >> ntpdate_enable="YES" >> ntpd_enable="YES" >> named_enable="YES" >> postgresql_enable="YES" >> nfs_client_enable="YES" >> nfs_server_enable="YES" >> nfs_server_flags="-u -t -n 4" >> rpcbind_enable="YES" >> mountd_flags="-r" >> mountd_enable="YES" >> apache24_enable="YES" >> postfix_enable="YES" >> sendmail_enable="NONE" >> sendmail_submit_enable="NO" >> sendmail_outbound_enable="NO" >> sendmail_msp_queue_enable="NO" >> slapd_enable="YES" >> slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ >> ldap://0.0.0.0:389/ ldaps://0.0.0.0:636/"' >> slapd_sockets="/var/run/openldap/ldapi" >> mrtg_daemon_enable="YES" >> saslauthd_enable="YES" >> saslauthd_flags="-a ldap" > > > That server has some complexity. Perhaps. As the host name nomenclature would suggest, it is our db server that serves lightweight bind9 DNS and LDAP to serve mail routing to our MX servers. The PostgreSQL houses the spam filtering data for same MX servers that run Amavisd with SpamAssassin and some other small utility databases. That's it in a nutshell. I have two of these for redundancy primary/secondary DNS, openldap and PostgreSQL replication. As we know, these servers are setup with root on ZFS and gmirror swap. I've done zfs send/recv with data snapshots, but never for this root on ZFS setup. I'd like to also put a plan together for cloning to a new server. Could I get some pointers to good posts or docs on doing this and possibly start another thread to discuss questions? Perhaps this involves dump and beadm. -- Robert