rp- commented on code in PR #14194:
URL: https://github.com/apache/cloudstack/pull/14194#discussion_r4259733531


##########
agent/src/main/java/com/cloud/agent/properties/AgentProperties.java:
##########
@@ -636,6 +636,23 @@ public class AgentProperties{
      */
     public static final Property<String> KVM_SCRIPTS_DIR = new 
Property<>("kvm.scripts.dir", "scripts/vm/hypervisor/kvm");
 
+    /**
+     * Host-local parent directory for the NAS backup pull-mode scratch area: 
the NBD socket and
+     * the libvirt-managed fleecing (copy-before-write) images used while 
backing up a running VM
+     * on raw block-device storage such as LINSTOR/DRBD.
+     * <p>
+     * Must be on a real on-disk filesystem with room for the guest's write 
churn during a backup,
+     * and must NOT be on the NAS share: copy-before-write runs inline with 
guest writes, so a slow
+     * or remote location stalls the VM. Keep the path short — the resulting 
socket path is subject
+     * to the kernel's 108-byte UNIX socket limit.
+     * <p>
+     * Data type: String.<br>
+     * Default value: <code>/var/tmp</code>
+     *
+     * @since 4.22.0
+     */
+    public static final Property<String> NAS_BACKUP_PULL_SCRATCH_DIR = new 
Property<>("nas.backup.pull.scratch.dir", "/var/tmp");

Review Comment:
   Yes this is the real problem with the pull mode, I added a disk space check 
and also by default now use the old push mode (with its drawbacks), but now it 
is an opt-in and admins have to make sure they have enough space or configure a 
correct scratch dir.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to