Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Wiki Replica
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
The Tor Project
TPA
Wiki Replica
Commits
27e9a148
Unverified
Commit
27e9a148
authored
5 years ago
by
anarcat
Browse files
Options
Downloads
Patches
Plain Diff
clarify how we can tell what size a qcow image is
parent
e9c42fb3
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tsa/howto/kvm.mdwn
+9
-4
9 additions, 4 deletions
tsa/howto/kvm.mdwn
with
9 additions
and
4 deletions
tsa/howto/kvm.mdwn
+
9
−
4
View file @
27e9a148
...
@@ -52,7 +52,7 @@ Disk allocation
...
@@ -52,7 +52,7 @@ Disk allocation
Disks are allocated on a need-to basis on the KVM host, in the
Disks are allocated on a need-to basis on the KVM host, in the
`/srv/vmstore`. Each disk is a file on the host filesystem, and
`/srv/vmstore`. Each disk is a file on the host filesystem, and
underneath the guest can create its own partitions. Here is, for
underneath the guest can create its own partitions. Here is, for
example, `vineale`'s disk which is currently taking 29GB:
example, `vineale`'s disk which is currently taking 29G
i
B:
root@vineale:/srv# df -h /srv
root@vineale:/srv# df -h /srv
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
Sys. de fichiers Taille Utilisé Dispo Uti% Monté sur
...
@@ -63,11 +63,16 @@ On the parent host, it looks like this:
...
@@ -63,11 +63,16 @@ On the parent host, it looks like this:
root@macrum:~# du -h /srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm
root@macrum:~# du -h /srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm
29G /srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm
29G /srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm
ie. only 29GB is in use. You can also see there's a layer of LVM
ie. only 29G
i
B is in use. You can also see there's a layer of LVM
volumes inside the guest, so the actual allocation is for 40GB:
volumes inside the guest, so the actual allocation is for 40G
i
B:
root@vineale:/srv# pvs
root@vineale:/srv# pvs
PV VG Fmt Attr PSize PFree
PV VG Fmt Attr PSize PFree
/dev/sdb vg_vineale lvm2 a-- 40,00g 5,00g
/dev/sdb vg_vineale lvm2 a-- 40,00g 5,00g
That 40GB size is allocated inside the `QCOW` image.
That 40GiB size is allocated inside the `QCOW` image:
root@macrum:~# file /srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm
/srv/vmstore/vineale.torproject.org/vineale.torproject.org-lvm: QEMU QCOW Image (v3), 42949672960 bytes
42949672960 bytes is, of course, the 40GiB we see above.
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment