我创建了一个卷并将其附加到 Droplet:
resource "digitalocean_volume" "main" {
name = "backups"
initial_filesystem_label = "backups"
region = var.region
size = 50
initial_filesystem_type = "ext4"
description = "A volume for backups"
}
resource "digitalocean_volume_attachment" "main" {
droplet_id = digitalocean_droplet.main.id
volume_id = digitalocean_volume.main.id
}
我注意到该卷已自动安装在下/mnt/
,并且此文件出现在droplet上:/etc/systemd/system/mnt-backups.mount
。我很好奇该文件/etc/systemd/system/mnt-backups.mount
是如何配置的,以及是否可以禁用它。