LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-27-2013, 02:29 AM   #1
hilou
Member
 
Registered: May 2013
Posts: 72

Rep: Reputation: Disabled
how to return to use multipath device to construct the Vg?


Hi,

Here is the situation:
#vgs
vgData 1 7 0 wz--n- 1024.00G 25.00G
#pvs
/dev/sdh vgData lvm2 a-- 1024.00G 25.00G

and now the vg is in use and hundreds of Gigabytes data reside on it.

But I find the server is also using multipath:
# for c in {b,d,f,h}; do scsi_id -gus /block/sd$c; done
360002acac00000000000012c000047e0
360002acac00000000000012c000047e0
360002acac00000000000012c000047e0
360002acac00000000000012c000047e0

so this means sdh is just one of the 4 paths.

Now I want to return to use multipath device to construct the Vg, how to do this?

Thanks in advance.

Last edited by hilou; 08-27-2013 at 02:30 AM.
 
Old 08-29-2013, 05:15 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
Is multipathd running?

If so what is the output of "multipath -l -v2" showing you?

The way LVM works is it scans devices to determine what device has the VG information. If pvs is only showing you one path it seems likely you don't have multipathd running so it isn't really treating it as an mpath device.

The multipath devices should be in /dev/mpath (and /dev/mapper usually).
 
Old 09-01-2013, 10:09 PM   #3
hilou
Member
 
Registered: May 2013
Posts: 72

Original Poster
Rep: Reputation: Disabled
Hi,

Yes, Multipathd is running, and currently have one multipath device: mpath0. I think someone create pv /dev/sdh by mistake(he just used one of the paths to create pv). So I want to know how to revert it.

Last edited by hilou; 09-02-2013 at 04:51 AM.
 
Old 09-10-2013, 11:57 AM   #4
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 6,580
Blog Entries: 14

Rep: Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969Reputation: 969
Since it scans the disk at boot it seems it should find the mpath device automatically and show that as the PV.

Does mpath0 show sdh as one of the component disks? What are the other component disks for mpath0?

In multipath.conf you can exclude certain types of disks so it is possible mpath0 has nothing to do with the disk you're looking at. You can run fdisk -l to see the details of each disk you are looking at to insure they show the same information.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Add new multipath device on line bxxst Linux - Newbie 2 08-02-2013 04:20 PM
Boot from multipath device on Redhat 5.4 (kernel 2.6.18.308) Zen1988 Linux - Server 0 07-08-2012 10:52 PM
Problem: Delay construction of multipath device (/ dev/dm-3) chilon Linux - Server 0 01-07-2010 12:00 PM
device mapper / multipath creating extra device, won't let me talk to the one i want chakkerz Linux - Server 1 03-16-2008 06:52 PM
partition a mappered device using multipath smile2 Linux - Hardware 1 05-04-2007 11:24 AM


All times are GMT -5. The time now is 10:31 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration