Categories

  • All news regarding Xen and XCP-ng ecosystem

    146 Topics
    5k Posts
    C
    @benapetr Thank you for the new Beta release - very featureful!
  • Everything related to the virtualization platform

    1k Topics
    16k Posts
    F
    @poddingue One more thing to mention on Lenovos is CPU Pstate control needs to be set to "Legacy" for the OS to be able to control clocks. This is found on the same BIOS menu as the "Power/Performance Bias " option. I had to set this on a number of SR250V3 servers to allow xenpm to report anything.
  • 3k Topics
    30k Posts
    A
    Hi, I noticed that every time an NFS backup remote is disabled and re-enabled in Xen Orchestra, a new empty .nfs file is created while the previous files remain on the storage. Xen Orchestra built from source, commit 54051163e0, mount options: hard,proto=tcp,timeo=600,retrans=2 The NAS remains available at all times. No network interruption is required to reproduce the issue. I monitored the open file descriptors. Here is an example of consecutive disable/enable cycles: Remote enabled (3 open descriptors): l-wx------ 1 root root 64 Nov 28 17:15 34 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfd00000048 l-wx------ 1 root root 64 Nov 28 17:15 35 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbff0000004a l-wx------ 1 root root 64 Nov 28 17:15 36 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfe00000049 Remote disabled (2 open descriptors): l-wx------ 1 root root 64 Nov 28 17:15 34 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfd00000048 l-wx------ 1 root root 64 Nov 28 17:15 36 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfe00000049 Remote enabled (4 open descriptors): l-wx------ 1 root root 64 Nov 28 17:15 34 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfd00000048 l-wx------ 1 root root 64 Nov 28 17:15 35 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc010000004b l-wx------ 1 root root 64 Nov 28 17:15 36 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfe00000049 l-wx------ 1 root root 64 Nov 28 17:16 37 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc020000004c Remote disabled (3 open descriptors): l-wx------ 1 root root 64 Nov 28 17:15 34 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfd00000048 l-wx------ 1 root root 64 Nov 28 17:15 35 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc010000004b l-wx------ 1 root root 64 Nov 28 17:15 36 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfe00000049 Remote enabled (5 open descriptors): l-wx------ 1 root root 64 Nov 28 17:15 34 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfd00000048 l-wx------ 1 root root 64 Nov 28 17:15 35 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc010000004b l-wx------ 1 root root 64 Nov 28 17:15 36 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddbfe00000049 l-wx------ 1 root root 64 Nov 28 17:16 37 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc040000004d l-wx------ 1 root root 64 Nov 28 17:16 38 -> /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699/.nfs00000000007ddc050000004e During an earlier test, I reached 37 open file descriptors. Disabling the remote closed only one of them, leaving 36 still open. Even though the remote is disabled in XO, the NFS filesystem remains mounted at OS level: $ findmnt -t nfs,nfs4 TARGET SOURCE FSTYPE OPTIONS /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699 192.168.10.30:/volume1/backup_xcp nfs4 rw,relatime,vers=4.1,rsize=131072,wsize=131072,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,clientaddr= Trying to unmount it manually results in the following error: $ sudo umount /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699 umount.nfs4: /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699: device is busy After stopping the xo-server service, the same unmount command completes successfully. This also appears to explain the failed unmount message during the shutdown of the VM running Xen Orchestra: [FAILED] Failed unmounting /run/xo-server/mounts/e81c1a19-826e-4137-ad0b-e77aecae9699 I asked AI to review the source code in @xen-orchestra/fs/src/_mount.js (https://github.com/vatesfr/xen-orchestra/blob/54051163e0/@xen-orchestra/fs/src/_mount.js) and found the following: const keeperPath = `${realPath}/.keeper_${Math.random().toString(36).slice(2)}` this.#keeper = await fs.open(keeperPath, 'w') ignoreErrors.call(fs.unlink(keeperPath)) The creation of .nfs files is expected NFS behaviour because XO intentionally deletes keeper files while keeping their file descriptors open. However, the increasing number of open descriptors is not expected. The observed behaviour suggests that two keeper descriptors are opened during remote activation, but only one is properly closed during deactivation. It may be worth checking whether _sync() is called twice during remote activation, whether the #keeper reference is overwritten without closing the previous descriptor, or whether multiple handler instances are created for the same remote. Another possible cause is the asynchronous handler clean-up in packages/xo-server/src/xo-mixins/remotes.mjs. A possible solution would be to ensure that existing keeper descriptors are properly closed before opening new ones, wait for handler clean-up to complete before replacing a handler, and prevent overlapping operations for the same remote. Logging failed close and unmount operations instead of silently ignoring them could also help identify the cause. The number of open file descriptors should remain stable across repeated disable/enable cycles. Disabling an unused remote should release all associated file descriptors, remove the temporary .nfs files and allow the NFS filesystem to be unmounted. A simple regression test covering repeated disable/enable cycles could help verify this behaviour. The issue is consistently reproducible, although the exact cause in the source code remains unconfirmed and the proposed changes have not been tested. Possibly related to #10741, although no NFS server outage or network interruption is required to reproduce this issue.
  • Our hyperconverged storage solution

    57 Topics
    845 Posts
    C
    ccooke said: Does it look like you need to examine anything? I'm okay keeping it as-is for another day or two, but it would be good to know. For what it's worth, I have now wiped and restored from backup. Sorry, couldn't wait any longer! Also for what it's worth - I think your answer was clear here, and this one should probably be marked as solved. If there's any sane instructions that anyone else can use to repair the xostor SR if this happens - or if the best thing to do is wipe and restore due to potential risk - it would be good to have some guidance. But I'm entirely happy
  • 37 Topics
    137 Posts
    S
    @jqueiroz said: Bom dia a todos, Estou com um problema em uma VM, ela está ligando/desligando sozinha, repetidamente. Não encontro nenhuma mensagem de erro explicando o motivo. Alguém pode me dar alguma dica sobre como solucionar isso? Uso o XCP-NG 8.0 em um cluster de dois servidores HP Proliant DL-360, com o HA-Lizard. Tudo vinha funcionando bem até alguns dias atrás, quando houve uma queda de energia no datacenter da localidade. Tenho o mesmo arranjo de VMs/servidores em mais seis localidades, nenhuma apresenta esse problema. Analisar esse comportamento instável do cluster é quase como prever resultados complexos, parecendo a análise de riscos que a malta faz ao dar palpites no https://mostbetbrasil.lat. Grato. Como o problema começou depois da queda de energia e só acontece nessa localidade, eu começaria verificando os logs do XCP-ng e do HA-Lizard para entender quem está disparando os reinícios. Pode ser alguma política de HA tentando recuperar a VM repetidamente, algum problema de armazenamento ou até inconsistência no estado do host após a interrupção. Também vale conferir o estado do pool e os logs do Xen Orchestra, se estiver usando. Se possível, desative temporariamente a automação de recuperação dessa VM, com cuidado para não comprometer a disponibilidade, e veja se ela continua reiniciando sozinha. Isso ajuda a isolar a causa.