# Oddly specific issues



# NAS mit alter Samba Version per Konsole einbinden

<https://forum.proxmox.com/threads/cifs-issue-error-with-cfs-lock-file-storage_cfg-working-now-but-shows-question-mark.45962/>   
```pvesm add cifs extbackup --server 192.168.178.31 --share share --username server --password server --smbversion 2.0```

# Reimport old existing disks with LVM

1. Remove old LVM Volumes
2. lvremove OLDVOLUME
3. Delete old partition table (REMOVES ACCESS TO DATA !!!)  
```dd if=/dev/zero of=/dev/sda bs=512 count=1  ```

Recreate LVM-Thin

# Backup auf PBS ohne Disks zu verlieren

<https://forum.proxmox.com/threads/remove-vm-but-retain-disk.33939/>

# WD Red Fix for high load cycle count (LCC)

<https://withblue.ink/2016/07/15/what-i-learnt-from-using-wd-red-disks-to-build-a-home-nas.html>

# Renew SSL in Turnkey

<https://www.turnkeylinux.org/docs/confconsole>

# Certificate Issue after cluster removal

1. Remove keys as instructed by pve messages after re-entering node
2. Remove all remaints in softlinks in pve folder structure as well
3. ```pvecm updatecerts```

https://forum.proxmox.com/threads/cant-connect-to-destination-address-using-public-key-task-error-migration-aborted.42390/

# Migrate GPG Keys from deprecated keyring to gpg.d

1. ```apt update``` -> identify deprecated keys
2. ```apt-key list``` -> identify last 8 symbols of corresponding key signature. Remove spaces
3. ```apt-key export XXXXXXXX | gpg --dearmour -o /etc/apt/trusted.gpg.d/SERVICENAME.gpg```

# D128 Render device not showing up

nomodeset in grub disabled d128render device. Remove nomodeset.

# Upgrade MariaDB für NC30 und MariaDB > 10.5

1. Lege Backup an (siehe unten):
    >mysqldump -u root -p --opt --all-databases -r backup.sql

2. Entferne OS mysql-server* und mysql-server-core*
    >apt remove mysql-server* mysql-server-core*

3. Installiere MariaDB Repository (Korrigiere ggf. Version. aktuelle LTS 10.11)
    >curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.11"

    Mehr Infos unter <https://mariadb.com/kb/en/mariadb-package-repository-setup-and-usage/>

4. Reinstalliere alle nötigen Pakete:
    >apt update && apt-get install mariadb-server mariadb-client mariadb-backup

5. ggf. default charset anpassen. (für nextcloud utf8mb4)
    >  mysql -uroot -p --default-character-set=utf8mb4
6. Restore:
    > mysql\
      > mysql> SET names 'utf8mb4';\
      > mysql> SOURCE backup.sql;\

    Aus: <https://stackoverflow.com/questions/9497869/export-and-import-all-mysql-databases-at-once>

7. ggf. MariaDB Security prüfen. i.e. Root PW gesetzt und alte DB Passwörter funktional.