Archiwa kategorii: Proxmox

Podmiana dysku zfs proxmox

# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
rpool 7.27T 13.0G 7.25T – – 0% 0% 1.00x DEGRADED –
# zpool status -v
pool: rpool
state: DEGRADED
status: One or more devices are faulted in response to persistent errors.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Replace the faulted device, or use ‚zpool clear’ to mark the device
repaired.
scan: scrub repaired 704K in 0 days 00:07:18 with 0 errors on Sun Mar 8 00:31:47 2020
config:

NAME                                                STATE     READ WRITE CKSUM
rpool                                               DEGRADED     0     0     0
  raidz1-0                                          DEGRADED     0     0     0
    ata-ST2000DM001-1ER164_W4Z0E981-part3           ONLINE       0     0     0
    ata-WDC_WD20EARS-00MVWB0_WD-WCAZA3946000-part3  FAULTED    178     0     0  too many errors
    ata-ST2000DM001-9YN164_Z1E1DQEV-part3           ONLINE       0     0     0
    ata-ST2000DM001-9YN164_W24055XV-part3           ONLINE       0     0     0

Po włożeniu nowego dysku kopiujemy tablicę partycji:

sgdisk --replicate=/dev/sdb /dev/sda

(z sda do sdb)

Randomizujemy UIDy:

# sgdisk --randomize-guids /dev/sdb

#zpool replace rpool ata-WDC_WD20EARS-00MVWB0_WD-WCAZA3946000-part3 sdb3

i już:

zpool status -v

pool: rpool
state: ONLINE
scan: resilvered 2.42G in 0 days 00:01:58 with 0 errors on Wed Mar 18 16:09:50 2020
config:

NAME                                       STATE     READ WRITE CKSUM
rpool                                      ONLINE       0     0     0
  raidz1-0                                 ONLINE       0     0     0
    ata-ST2000DM001-1ER164_W4Z0E981-part3  ONLINE       0     0     0
    sdb3                                   ONLINE       0     0     0
    ata-ST2000DM001-9YN164_Z1E1DQEV-part3  ONLINE       0     0     0
    ata-ST2000DM001-9YN164_W24055XV-part3  ONLINE       0     0     0

errors: No known data errors

Na koniec jeszcze (dopiero gdy zakończy się synchronizacja i dysk będzie ONLINE) :

grub-install /dev/sdb

Proxmox vnc

Aby dostać się przez dowolnego klienta VNC do konsoli należy nadanej VMce, w zakładce monitor wpisać:

# change vnc 0.0.0.0:100,password

# set_password vnc TAJNEHASLO

Wtedy vncserwer zaczyna słuchać na porcie 5900+100

Proxmox Application Blocked by Security Settings

Application Blocked by Security Settings
Name: com.tigervnc.vncviewer.VncViewer
Location: https://….:8006
Your security settings have blocked a self-signed application from running

trzeba pozolić javie na wykonanie, wywołując:

# jcontrol (Java Control Panel) i w zakładce Security dodać:
Exception List:
Application launched from the sites listed below will be allowed to run after the appropriate security prompt:
https://….:8006