LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 09-10-2008, 05:39 PM   #1
hphinizy
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Rep: Reputation: 0
pvcreate + multipath


Getting this oddity when I try to add mpath0 as a physical volume:

[server][~]$ pvcreate /dev/mapper/mpath0
Can't open /dev/mapper/mpath0 exclusively. Mounted filesystem?



Here are some details:

[server][~]$ pvdisplay
--- Physical volume ---
PV Name /dev/cciss/c0d0p2
VG Name vg0
PV Size 819.91 GB / not usable 524.00 KB
Allocatable yes
PE Size (KByte) 32768
Total PE 26237
Free PE 189
Allocated PE 26048
PV UUID wXCE2M-vvmr-5TPH-lrDT-tHDT-ecLJ-EXkm4g



[server][~]$ multipath -ll
mpath0 (3600c0ff0000000000a7e4a7984106400)
[size=1395 GB][features="0"][hwhandler="0"]
\_ round-robin 0 [prio=2][active]
\_ 0:0:0:0 sda 8:0 [active][ready]
\_ 1:0:0:0 sdb 8:16 [active][ready]



[server][~]$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg0-lvol01
20G 3.4G 16G 18% /
/dev/mapper/vg0-lvol05
690G 101M 654G 1% /app
/dev/cciss/c0d0p1 297M 28M 254M 10% /boot
none 7.9G 0 7.9G 0% /dev/shm
/dev/mapper/vg0-lvol02
40G 1.1G 37G 3% /home
/dev/mapper/vg0-lvol04
9.9G 55M 9.3G 1% /tmp
/dev/mapper/vg0-lvol03
20G 157M 19G 1% /var



Any thoughts?

Please advise,

Harison
 
Old 09-11-2008, 05:14 AM   #2
zQUEz
Member
 
Registered: Jun 2007
Distribution: Fedora, RHEL, Centos
Posts: 264

Rep: Reputation: 50
what does fdisk -l show you about mpath0?
Is the path in fact /dev/mapper/mpath0 or is just /dev/mpath0 or something else?
For the sake of testing, can you create a primary partition on /dev/mapper/mpath0 using fdisk (take lvm out of the equation)?
 
Old 09-12-2008, 03:11 PM   #3
hphinizy
LQ Newbie
 
Registered: Jun 2007
Posts: 5

Original Poster
Rep: Reputation: 0
User error--should have issued the following command:

pcvreate /dev/mapper/mpath0p1

Thanks
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Multipath and JBOD mikerault Linux - Enterprise 1 07-23-2008 03:15 PM
Slackware 12.1 LVM pvcreate error /dev/hdc: open failed :Read-only jimdaworm Slackware 1 05-20-2008 06:04 PM
lvm:didn't do pvcreate on partition, before adding it to volume group nocturna_gr Linux - General 3 03-11-2007 08:22 AM
pvcreate: device not found nocturna_gr Linux - General 1 02-11-2006 04:34 AM
coulodnt find device - pvcreate nidhigupta80 Linux - Newbie 0 04-21-2005 09:01 AM


All times are GMT -5. The time now is 08:35 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration