How much does my volume group use of my hard drive?
Clash Royale CLAN TAG#URR8PPP
I want to know how much space of my hard drive is being used in the hard drive , let me explain:
My first hard drive is /dev/sda
and the second one is /dev/sdb
each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?
linux lvm hard-disk
add a comment |
I want to know how much space of my hard drive is being used in the hard drive , let me explain:
My first hard drive is /dev/sda
and the second one is /dev/sdb
each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?
linux lvm hard-disk
add a comment |
I want to know how much space of my hard drive is being used in the hard drive , let me explain:
My first hard drive is /dev/sda
and the second one is /dev/sdb
each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?
linux lvm hard-disk
I want to know how much space of my hard drive is being used in the hard drive , let me explain:
My first hard drive is /dev/sda
and the second one is /dev/sdb
each one of them has a logical voume and they are in the same volume group, i can easily know how much of this volume group is used , but how much of each drive is used ? how does the lvm spread data across those volumes ?
linux lvm hard-disk
linux lvm hard-disk
asked Feb 12 at 12:57
KingofkechKingofkech
4831519
4831519
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
You can use pvs
to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:
sudo pvs --segments -o +lv_name
This will show something like
PV VG Fmt Attr PSize PFree Start SSize LV
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853
which shows that my /dev/sda1
PV, which is part of the vg-fast
VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root
and usrlocal
.
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500168%2fhow-much-does-my-volume-group-use-of-my-hard-drive%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
You can use pvs
to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:
sudo pvs --segments -o +lv_name
This will show something like
PV VG Fmt Attr PSize PFree Start SSize LV
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853
which shows that my /dev/sda1
PV, which is part of the vg-fast
VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root
and usrlocal
.
add a comment |
You can use pvs
to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:
sudo pvs --segments -o +lv_name
This will show something like
PV VG Fmt Attr PSize PFree Start SSize LV
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853
which shows that my /dev/sda1
PV, which is part of the vg-fast
VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root
and usrlocal
.
add a comment |
You can use pvs
to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:
sudo pvs --segments -o +lv_name
This will show something like
PV VG Fmt Attr PSize PFree Start SSize LV
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853
which shows that my /dev/sda1
PV, which is part of the vg-fast
VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root
and usrlocal
.
You can use pvs
to show all the segments in your physical volumes and the logical volumes they contain, which will allow you to get a good idea of how your devices are used:
sudo pvs --segments -o +lv_name
This will show something like
PV VG Fmt Attr PSize PFree Start SSize LV
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 0 16384 root
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 16384 4096
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 20480 8192 usrlocal
/dev/sda1 vg-fast lvm2 a-- 119.24g 23.24g 28672 1853
which shows that my /dev/sda1
PV, which is part of the vg-fast
VG, is split into four segments, two of which are unused, and two of which are used respectively for the LVs root
and usrlocal
.
answered Feb 12 at 13:13
Stephen KittStephen Kitt
174k24399476
174k24399476
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f500168%2fhow-much-does-my-volume-group-use-of-my-hard-drive%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown