LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 03-30-2016, 04:14 AM   #1
knuno
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Rep: Reputation: 0
How to display which disks are part of volumegroup?


Let's say I have 3 physical disks sda, sdb and sdc. I combine these into a volume group called "my_group".
How can I find which disks are part of "my_group"? vgdisplay do not give me this information. Or the other way, how can I find which volume group, if any, sdc is part of?

Knut H.
 
Old 03-30-2016, 04:58 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,124

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
Use the "lvs" comand - you can add the "devices" column to the normal output to get what you want. I don't know of a way to do a reverse lookup for /dev/sdc

Edit: oops - try vgs, and see if it has "devices" as well; I don't kave a LVM system to check at the moment.

Last edited by syg00; 03-30-2016 at 05:06 AM.
 
Old 03-30-2016, 05:58 AM   #3
knuno
LQ Newbie
 
Registered: Sep 2008
Posts: 9

Original Poster
Rep: Reputation: 0
Thank you. vgs -o devices gave what I was looking for. And pvs showed which group a physical disk is member of.

Knut H.
 
  


Reply

Tags
disk management



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display which disks are part of volumegroup? knuno Linux - Hardware 1 03-30-2016 08:42 AM
[SOLVED] command to display a part of the file linuxandtsm Linux - Newbie 4 03-22-2012 02:18 PM
Display disks on Redhat Linux maliks Linux - Enterprise 2 05-27-2006 01:49 AM
Display Raid disks informations C-RAF. Programming 1 02-10-2006 07:41 AM
Display disks. tech1222 Linux - Hardware 1 09-16-2004 10:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 03:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration