Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question]: Multiple disks. How do I assign the disk type to multiple disks? #868

Open
2 tasks done
MarcS1975 opened this issue Dec 20, 2024 · 3 comments
Open
2 tasks done
Labels
question Further information is requested

Comments

@MarcS1975
Copy link

MarcS1975 commented Dec 20, 2024

Is your question not already answered in the FAQ?

  • I made sure the question is not listed in the FAQ.

Is this a general question and not a technical issue?

  • I am sure my question is not about a technical issue.

Question

First of all, does the environment variable name count in defining disks or is it just the order of lising inside the compose file that counts? So will DISKX_SIZE always correspond to /storageX (see below) ? And If I have multiple disks, how do I specify which disk is a growing qcow2 disk and which is a static disk?


environment:
  DISK_FMT: "qcow2"
  DISK2_SIZE: "32G"
  DISK3_SIZE: "64G"
volumes:
  - /home/example:/storage2
  - /mnt/data/example:/storage3
@MarcS1975 MarcS1975 added the question Further information is requested label Dec 20, 2024
@kroese
Copy link
Collaborator

kroese commented Dec 20, 2024

The order does not matter, it is the name that counts just like you say.

You currently cannot specify a different format for each seperate disk. So if you set it to qcow2 it will apply to all of them.

@MarcS1975
Copy link
Author

makes sense - thank you for clarifying!
And I guess adding a second disk later will not destroy any data on the first disk defined. right?

@kroese
Copy link
Collaborator

kroese commented Dec 20, 2024

No

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants