linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM
@ 2013-04-26  9:19 siva krishna
  2013-04-26 13:00 ` Venkata rama krishna Boddu
  2013-04-26 15:26 ` Marian Csontos
  0 siblings, 2 replies; 3+ messages in thread
From: siva krishna @ 2013-04-26  9:19 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 502 bytes --]

Hi all,

is there a way to determine the device name (eg: /dev/sda, /dev/sdb)
on lvm partitioned disks,  when the os is booted from the lvm partitioned
disk
and there are also multiple disks connected which are having lvm partions
with same volume group names as the primary disk.

i tried doing vgdisplay
 and then correlating it's output with cat /etc/fstab, cat /etc/cmdline

but there are multiple volume groups having the same name so can't find
from which volume the RHEL is booting

Thanks
siva

[-- Attachment #2: Type: text/html, Size: 670 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM
  2013-04-26  9:19 [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM siva krishna
@ 2013-04-26 13:00 ` Venkata rama krishna Boddu
  2013-04-26 15:26 ` Marian Csontos
  1 sibling, 0 replies; 3+ messages in thread
From: Venkata rama krishna Boddu @ 2013-04-26 13:00 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1243 bytes --]

Following two command worked for me.

$ dmsetup ls --tree
vg_node-lv_swap (253:1)
 └─ (8:2)
vg_node-lv_root (253:0)
 └─ (8:2)
$ ls -la /dev/ | grep "8,   2"
brw-rw----   1 root disk      8,   2 Apr 24 15:42 sda2

 
Thanks
Venkat
Mobile: +91-9503043606


________________________________
 From: siva krishna <hisivakrishna@gmail.com>
To: linux-lvm@redhat.com 
Sent: Friday, 26 April 2013 2:49 PM
Subject: [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM
 


Hi all,
 
is there a way to determine the device name (eg: /dev/sda, /dev/sdb)
on lvm partitioned disks,  when the os is booted from the lvm partitioned disk
and there are also multiple disks connected which are having lvm partions with same volume group names as the primary disk.
 
i tried doing vgdisplay
 and then correlating it's output with cat /etc/fstab, cat /etc/cmdline
 
but there are multiple volume groups having the same name so can't find from which volume the RHEL is booting
 
Thanks
siva
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[-- Attachment #2: Type: text/html, Size: 2444 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM
  2013-04-26  9:19 [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM siva krishna
  2013-04-26 13:00 ` Venkata rama krishna Boddu
@ 2013-04-26 15:26 ` Marian Csontos
  1 sibling, 0 replies; 3+ messages in thread
From: Marian Csontos @ 2013-04-26 15:26 UTC (permalink / raw)
  To: LVM general discussion and development; +Cc: siva krishna

On 04/26/2013 11:19 AM, siva krishna wrote:
> Hi all,
>
> is there a way to determine the device name (eg: /dev/sda, /dev/sdb)
> on lvm partitioned disks,  when the os is booted from the lvm partitioned
> disk
> and there are also multiple disks connected which are having lvm partions
> with same volume group names as the primary disk.

lsblk should give you an answer on running system.

>
> i tried doing vgdisplay
>   and then correlating it's output with cat /etc/fstab, cat /etc/cmdline
>
> but there are multiple volume groups having the same name so can't find
> from which volume the RHEL is booting

You can not have running system with multiple VGs with same name.

I guess you mean the volume group spans over multiple disks, right?

If you happen to really have multiple VGs with same name, you have to 
fix VG names - search for words duplicate vg name.

-- Marian

>
> Thanks
> siva
>
>
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-04-26 15:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-04-26  9:19 [linux-lvm] determining boot disk name(/dev/sd...) on RHEL LVM siva krishna
2013-04-26 13:00 ` Venkata rama krishna Boddu
2013-04-26 15:26 ` Marian Csontos

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).