* [linux-lvm] How do I tell what disk a volume group reside on
@ 2010-04-14 0:59 Vickie Troy-McKoy
2010-04-14 2:28 ` Phillip Susi
` (2 more replies)
0 siblings, 3 replies; 10+ messages in thread
From: Vickie Troy-McKoy @ 2010-04-14 0:59 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
Hi All,
I have a RedHat4 server connected to a SAN 3510 Array. On the host server, there are two volume groups set up--root_vg and san_vg. I'm assuming that root_vg resides on the internal disks and san_vg on the SAN. But, how can I check to make sure this is the case?
Thank you,
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
[-- Attachment #2: Type: text/html, Size: 1113 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 0:59 [linux-lvm] How do I tell what disk a volume group reside on Vickie Troy-McKoy
@ 2010-04-14 2:28 ` Phillip Susi
2010-04-14 2:43 ` [linux-lvm] nevermind Phillip Susi
2010-04-14 5:36 ` [linux-lvm] How do I tell what disk a volume group reside on linuxmails.lists
2010-04-14 5:21 ` Luca Berra
2010-04-14 13:23 ` Ron Johnson
2 siblings, 2 replies; 10+ messages in thread
From: Phillip Susi @ 2010-04-14 2:28 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: vtmckoy
You appear to have intended to start a new thread completely unrelated
to the thread "How do I properly backup and restore / on LVM2" but
instead of composing a new message, you chose to reply to one in that
thread. Please do not do this. When you reply, threaded mail readers
show your message in the thread you reply to instead of as a new
thread, even when you change the subject. If you are starting a new
thread, then start a new message instead of replying to an existing one.
On Tue, 13 Apr 2010 20:59:40 -0400
Vickie Troy-McKoy <vtmckoy@hotmail.com> wrote:
>
> Hi All,
>
>
>
> I have a RedHat4 server connected to a SAN 3510 Array. On the host
> server, there are two volume groups set up--root_vg and san_vg. I'm
> assuming that root_vg resides on the internal disks and san_vg on the
> SAN. But, how can I check to make sure this is the case?
>
>
>
> Thank you,
>
>
>
>
> _________________________________________________________________
> The New Busy is not the old busy. Search, chat and e-mail from your
> inbox.
> http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
^ permalink raw reply [flat|nested] 10+ messages in thread
* [linux-lvm] nevermind
2010-04-14 2:28 ` Phillip Susi
@ 2010-04-14 2:43 ` Phillip Susi
2010-04-14 5:36 ` [linux-lvm] How do I tell what disk a volume group reside on linuxmails.lists
1 sibling, 0 replies; 10+ messages in thread
From: Phillip Susi @ 2010-04-14 2:43 UTC (permalink / raw)
To: LVM general discussion and development; +Cc: vtmckoy
On Tue, 13 Apr 2010 22:28:02 -0400
Phillip Susi <psusi@cfl.rr.com> wrote:
> You appear to have intended to start a new thread completely unrelated
> to the thread "How do I properly backup and restore / on LVM2" but
> instead of composing a new message, you chose to reply to one in that
> thread. Please do not do this. When you reply, threaded mail readers
> show your message in the thread you reply to instead of as a new
> thread, even when you change the subject. If you are starting a new
> thread, then start a new message instead of replying to an existing
> one.
Nevermind. I'm trying out a new mail client and I'm the one that got
confused.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 2:28 ` Phillip Susi
2010-04-14 2:43 ` [linux-lvm] nevermind Phillip Susi
@ 2010-04-14 5:36 ` linuxmails.lists
2010-04-14 12:34 ` Vickie Troy-McKoy
1 sibling, 1 reply; 10+ messages in thread
From: linuxmails.lists @ 2010-04-14 5:36 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 522 bytes --]
Hi
Assuming that you are using MPIO , have you compared the output of
fdisk -l to the dm device names in /dev/mpath?
AT
On Tue, 13 Apr 2010 20:59:40 -0400
Vickie Troy-McKoy <vtmckoy@hotmail.com> wrote:
>
> Hi All,
>
>
> I have a RedHat4 server connected to a SAN 3510 Array. On the host
> server, there are two volume groups set up--root_vg and san_vg. I'm
> assuming that root_vg resides on the internal disks and san_vg on the
> SAN. But, how can I check to make sure this is the case?
>
>
> Thank you,
>
>>
[-- Attachment #2: Type: text/html, Size: 1564 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 5:36 ` [linux-lvm] How do I tell what disk a volume group reside on linuxmails.lists
@ 2010-04-14 12:34 ` Vickie Troy-McKoy
0 siblings, 0 replies; 10+ messages in thread
From: Vickie Troy-McKoy @ 2010-04-14 12:34 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 2035 bytes --]
Hi,
For the device in question, I did: "fdisk -l /dev/md10". I received the following output:
Disk /dev/md10: 73.2 GB, 73270689792 bytes
2 heads, 4 sectors/track, 17888352 cylinders
Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md10 doesn't contain a valid partition table
However, when I list out /dev/mpath, I get the following:
ls -lrt
total 0
lrwxrwxrwx 1 root root 7 Mar 26 07:28 mpath3 -> ../dm-8
lrwxrwxrwx 1 root root 8 Mar 26 07:28 mpath3p1 -> ../dm-10
lrwxrwxrwx 1 root root 7 Mar 26 07:28 mpath2p1 -> ../dm-9
lrwxrwxrwx 1 root root 7 Mar 26 07:28 mpath2 -> ../dm-7
How do I interpret this output? Does it mean the absence of "md10" means that it resides on the internal drive. I know that /dev/dm-9 and /dev/dm-10 reside on the SAN. But, I guess I was looking for a more concrete way to tie /dev/md10 to the attached devices in /proc/scsi/scsi so that I can definitely say it's on the FUJITSU drive or on the SUN StorEdge 3510.
Thank you,
From: linuxmails.lists@gmail.com
To: linux-lvm@redhat.com
Date: Wed, 14 Apr 2010 00:36:37 -0500
Subject: Re: [linux-lvm] How do I tell what disk a volume group reside on
Hi
Assuming that you are using MPIO , have you compared the output of fdisk -l to the dm device names in /dev/mpath?
AT
On Tue, 13 Apr 2010 20:59:40 -0400
Vickie Troy-McKoy <vtmckoy@hotmail.com> wrote:
Hi All,
I have a RedHat4 server connected to a SAN 3510 Array. On the host
server, there are two volume groups set up--root_vg and san_vg. I'm
assuming that root_vg resides on the internal disks and san_vg on the
SAN. But, how can I check to make sure this is the case?
Thank you,
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
[-- Attachment #2: Type: text/html, Size: 3198 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 0:59 [linux-lvm] How do I tell what disk a volume group reside on Vickie Troy-McKoy
2010-04-14 2:28 ` Phillip Susi
@ 2010-04-14 5:21 ` Luca Berra
2010-04-14 8:47 ` brem belguebli
2010-04-14 12:16 ` Vickie Troy-McKoy
2010-04-14 13:23 ` Ron Johnson
2 siblings, 2 replies; 10+ messages in thread
From: Luca Berra @ 2010-04-14 5:21 UTC (permalink / raw)
To: linux-lvm
On Tue, Apr 13, 2010 at 08:59:40PM -0400, Vickie Troy-McKoy wrote:
>
>Hi All,
>
>
>
>I have a RedHat4 server connected to a SAN 3510 Array. On the host server, there are two volume groups set up--root_vg and san_vg. I'm assuming that root_vg resides on the internal disks and san_vg on the SAN. But, how can I check to make sure this is the case?
>
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
>read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
try with the pvs command
--
Luca Berra -- bluca@comedia.it
Communication Media & Services S.r.l.
/"\
\ / ASCII RIBBON CAMPAIGN
X AGAINST HTML MAIL
/ \
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 5:21 ` Luca Berra
@ 2010-04-14 8:47 ` brem belguebli
2010-04-14 12:16 ` Vickie Troy-McKoy
1 sibling, 0 replies; 10+ messages in thread
From: brem belguebli @ 2010-04-14 8:47 UTC (permalink / raw)
To: LVM general discussion and development
or vgdisplay -v root_vg
and vgdisplay -v san_vg
will give you the PV's for each of your VG's
then to identify if the physical disks are the ones from the SAN use
scsi_id command that'll help you
scsi_id -g 0x80 -d /dev/sdX
On Wed, 2010-04-14 at 07:21 +0200, Luca Berra wrote:
> On Tue, Apr 13, 2010 at 08:59:40PM -0400, Vickie Troy-McKoy wrote:
> >
> >Hi All,
> >
> >
> >
> >I have a RedHat4 server connected to a SAN 3510 Array. On the host server, there are two volume groups set up--root_vg and san_vg. I'm assuming that root_vg resides on the internal disks and san_vg on the SAN. But, how can I check to make sure this is the case?
> >
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> >read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> try with the pvs command
>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 5:21 ` Luca Berra
2010-04-14 8:47 ` brem belguebli
@ 2010-04-14 12:16 ` Vickie Troy-McKoy
2010-04-14 15:42 ` Ray Morris
1 sibling, 1 reply; 10+ messages in thread
From: Vickie Troy-McKoy @ 2010-04-14 12:16 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1795 bytes --]
Thank you; but I've tried that command. It gives me the output below; however, I want to ensure that /dev/md10 [root_vg] resides on the internal disks. How can I ensure that?
PV VG Fmt Attr PSize PFree
/dev/dm-10 san_vg lvm2 a- 299.99G 0
/dev/dm-9 san_vg lvm2 a- 174.99G 0
/dev/md10 root_vg lvm2 a- 68.22G 12.44G
Regards,
> Date: Wed, 14 Apr 2010 07:21:51 +0200
> From: bluca@comedia.it
> To: linux-lvm@redhat.com
> Subject: Re: [linux-lvm] How do I tell what disk a volume group reside on
>
> On Tue, Apr 13, 2010 at 08:59:40PM -0400, Vickie Troy-McKoy wrote:
> >
> >Hi All,
> >
> >
> >
> >I have a RedHat4 server connected to a SAN 3510 Array. On the host server, there are two volume groups set up--root_vg and san_vg. I'm assuming that root_vg resides on the internal disks and san_vg on the SAN. But, how can I check to make sure this is the case?
> >
> vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvv
> >read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> try with the pvs command
>
> --
> Luca Berra -- bluca@comedia.it
> Communication Media & Services S.r.l.
> /"\
> \ / ASCII RIBBON CAMPAIGN
> X AGAINST HTML MAIL
> / \
>
> _______________________________________________
> 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/
_________________________________________________________________
Hotmail is redefining busy with tools for the New Busy. Get more from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_2
[-- Attachment #2: Type: text/html, Size: 2416 bytes --]
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 12:16 ` Vickie Troy-McKoy
@ 2010-04-14 15:42 ` Ray Morris
0 siblings, 0 replies; 10+ messages in thread
From: Ray Morris @ 2010-04-14 15:42 UTC (permalink / raw)
To: LVM general discussion and development
> however, I want to ensure that /dev/md10 [root_vg] resides
> on the internal disks. How can I ensure that?
Note that this is no longer an LVM question, but a
softraid question, and when the softraid question is answered
it leads you to a SAN question. Hat's because LVM doesn't
know or care where the md10 device is physically located, much
less know or care where any component devices are.
To see which devices make up
/dev/md10, do:
cat /proc/mdstat
Output will look something like :
Personalities : [raid6] [raid5] [raid4]
md10 : active raid5 sda2[0] sdc2[2] sdb2[1]
772370304 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU]
unused devices: <none>
The second line tells us that md10 is made up of these devices:
sda2[0] sdc2[2] sdb2[1]
Now the question becomes are those devices internal? If you
can't tell from the names, lsscsi might come in handy. If it's
still not apparent, you have a SAN question that depends on the
type of SAN you have. It's even possible to set up a SAS SAN with
internal and external storage attached to the same card. If the
"identify" lights aren't hooked up, the only way to know for sure
would be to compare serial numbers with the output of sdparm!
It may seem strange that it can be so "hard" to know what's
what, but that's exactly where the magic comes from - you can
make a RAID of external devices, internal devices, or a mix
precisely because the RAID system doesn't know or care where they
are physically located.
--
Ray Morris
support@bettercgi.com
Strongbox - The next generation in site security:
http://www.bettercgi.com/strongbox/
Throttlebox - Intelligent Bandwidth Control
http://www.bettercgi.com/throttlebox/
Strongbox / Throttlebox affiliate program:
http://www.bettercgi.com/affiliates/user/register.php
On 04/14/2010 07:16:56 AM, Vickie Troy-McKoy wrote:
>
>
> Thank you; but I've tried that command. It gives me the output
> below;
> however, I want to ensure that /dev/md10 [root_vg] resides on the
> internal
> disks. How can I ensure that?
>
>
> PV VG Fmt Attr PSize PFree
> /dev/dm-10 san_vg lvm2 a- 299.99G 0
> /dev/dm-9 san_vg lvm2 a- 174.99G 0
> /dev/md10 root_vg lvm2 a- 68.22G 12.44G
>
> Regards,
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [linux-lvm] How do I tell what disk a volume group reside on
2010-04-14 0:59 [linux-lvm] How do I tell what disk a volume group reside on Vickie Troy-McKoy
2010-04-14 2:28 ` Phillip Susi
2010-04-14 5:21 ` Luca Berra
@ 2010-04-14 13:23 ` Ron Johnson
2 siblings, 0 replies; 10+ messages in thread
From: Ron Johnson @ 2010-04-14 13:23 UTC (permalink / raw)
To: linux-lvm
On 2010-04-13 19:59, Vickie Troy-McKoy wrote:
> Hi All,
>
> I have a RedHat4 server connected to a SAN 3510 Array. On the
> host server, there are two volume groups set up--root_vg and
> san_vg. I'm assuming that root_vg resides on the internal disks
> and san_vg on the SAN. But, how can I check to make sure this is
> the case?
>
This is what I get when I run pvscan. pvs is similar.
# pvscan
PV /dev/sda4 VG main_huge_vg lvm2 [529.00 GiB / 0 free]
PV /dev/sdb2 VG main_huge_vg lvm2 [594.25 GiB / 0 free]
PV /dev/sdc1 VG main_huge_vg lvm2 [931.50 GiB / 0 free]
PV /dev/sdd1 VG main_huge_vg lvm2 [698.62 GiB / 0 free]
PV /dev/sde1 VG main_huge_vg lvm2 [931.50 GiB / 0 free]
Total: 5 [3.60 TiB] / in use: 5 [3.60 TiB] / in no VG: 0 [0 ]
# pvs
PV VG Fmt Attr PSize PFree
/dev/sda4 main_huge_vg lvm2 a- 529.00g 0
/dev/sdb2 main_huge_vg lvm2 a- 594.25g 0
/dev/sdc1 main_huge_vg lvm2 a- 931.50g 0
/dev/sdd1 main_huge_vg lvm2 a- 698.62g 0
/dev/sde1 main_huge_vg lvm2 a- 931.50g 0
--
Dissent is patriotic, remember?
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2010-04-14 15:39 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-04-14 0:59 [linux-lvm] How do I tell what disk a volume group reside on Vickie Troy-McKoy
2010-04-14 2:28 ` Phillip Susi
2010-04-14 2:43 ` [linux-lvm] nevermind Phillip Susi
2010-04-14 5:36 ` [linux-lvm] How do I tell what disk a volume group reside on linuxmails.lists
2010-04-14 12:34 ` Vickie Troy-McKoy
2010-04-14 5:21 ` Luca Berra
2010-04-14 8:47 ` brem belguebli
2010-04-14 12:16 ` Vickie Troy-McKoy
2010-04-14 15:42 ` Ray Morris
2010-04-14 13:23 ` Ron Johnson
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).