hosted by liquidweb


Go Back   Web Hosting Talk : Web Hosting Main Forums : Dedicated Server : LVM setup PVCREATE says device not found...
Reply

Forum Jump

LVM setup PVCREATE says device not found...

Reply Post New Thread In Dedicated Server Subscription
 
Send news tip View All Posts Thread Tools Search this Thread Display Modes
  #1  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54

LVM setup PVCREATE says device not found...


CentOS 5.6 x86_64. I setup the LVM "partition" during the OS install and here's the answers to a few commands I thought might help diagnose:

[root@xvm1 ~]# pvcreate /dev/sdb5
Device /dev/sdb5 not found (or ignored by filtering).
[root@xvm1 ~]# pvcreate /dev/sda5
Device /dev/sda5 not found (or ignored by filtering).
[root@xvm1 ~]# cat /proc/mdstat
Personalities :
unused devices: <none>
[root@xvm1 ~]# pvscan
No matching physical volumes found
[root@xvm1 ~]# lvscan
No volume groups found
[root@xvm1 ~]# fdisk -l /dev/sda

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 11538 92156872+ 83 Linux
/dev/sda3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sda4 12583 121601 875695117+ 5 Extended
/dev/sda5 12583 121601 875695086 8e Linux LVM

Any help is greatly appreciated.

Thank you!



Sponsored Links
  #2  
Old
Temporarily Suspended
 
Join Date: Sep 2011
Location: UK
Posts: 161
You are failing at the first step so print available partitions with 'fdisk -l yourdiskdevice' e.g. 'fdisk -l /dev/sda' and create a partition if necessary.
/proc/mdstat is for software raid so if you want to create the LVM on raid you should first build the raid and get /dev/mdX device that you can create PV on.

  #3  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Thank you for the reply, almanox.

I have created the partitions (I think) for the software raid:
[root@xvm1 ~]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 11538 92156872+ 83 Linux
/dev/sda3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sda4 12583 121601 875695117+ fd Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 65 522081 83 Linux
/dev/sdb2 66 11538 92156872+ 83 Linux
/dev/sdb3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sdb4 12583 121601 875695117+ fd Linux raid autodetect

Then I run the following command with shown output:
[root@xvm1 ~]# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda4 /dev/sdb4
mdadm: Cannot open /dev/sda4: Device or resource busy
mdadm: Cannot open /dev/sdb4: No such device or address
mdadm: create aborted

Any help is greatly appreciated.

Thank you!

Sponsored Links
  #4  
Old
Temporarily Suspended
 
Join Date: Sep 2011
Location: UK
Posts: 161
Did you reboot between fdisk and mdadm?
Does 'cat /proc/mdstat' shows partial array that is using /dev/sda4?

  #5  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Thanks again, almanox for the reply.

I don't recall if I rebooted between them however, I am sure I have rebooted at some point before trying the mdadm again.

output:
[root@xvm1 ~]# cat /proc/mdstat
Personalities :
unused devices: <none>

Thanks!

  #6  
Old
RedHat Certified
 
Join Date: Mar 2009
Location: Israel
Posts: 1,204
Quote:
Originally Posted by upstart View Post
Thanks again, almanox for the reply.

I don't recall if I rebooted between them however, I am sure I have rebooted at some point before trying the mdadm again.

output:
[root@xvm1 ~]# cat /proc/mdstat
Personalities :
unused devices: <none>

Thanks!
after fdisk operations you might want to use partprobe to flush the kernel partition list, no reboot is needed in most cases.

__________________
beast5.com - Managed Hosting Solutions 2004 - 2014

  #7  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
I think I'll just start with a new install, CentOS 5.6 x86_64.

Any recommendations on partitioning during install?

Thanks!

  #8  
Old
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 929
After partitioning the drives, run

Code:
partprobe /dev/sda
partprobe /dev/sdb
Now try creating the raid

But if you are just going to do a fresh install, do it via the graphical installer and create the raid and LVM with the partitioning tool. I can't recommend how to partition the drives as you know what you need to use it for.

__________________
Hostigation.com - High Resource Hosting
WHM/cPanel Servers for Hosting and Dedicated Needs
SolusVM VPS Hosting - Big Features, Small Prices
Like us on Facebook or follow @hostigation on Twitter

  #9  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Thanks, mitgib.

My latest results (no new install done just yet):

[root@xvm1 yum.repos.d]# partprobe /dev/sdb
[root@xvm1 yum.repos.d]# partprobe /dev/sda
[root@xvm1 yum.repos.d]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 11538 92156872+ 83 Linux
/dev/sda3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sda4 12583 121601 875695117+ 8e Linux LVM

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 65 522081 83 Linux
/dev/sdb2 66 11538 92156872+ 83 Linux
/dev/sdb3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sdb4 12583 121601 875695117+ 8e Linux LVM

[root@xvm1 yum.repos.d]# mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/sda4 /dev/sdb4
mdadm: Cannot open /dev/sda4: Device or resource busy
mdadm: Cannot open /dev/sdb4: Device or resource busy
mdadm: create aborted

Still no joy.

Thanks again!


Last edited by upstart; 09-29-2011 at 03:38 PM. Reason: text
  #10  
Old
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 929
You are trying to use partitions tagged LVM for software raid, so change /dev/sd[a,b]4 to type fd, not 8e, rerun partprobe then give it s shot

mdadm --create --verbose /dev/md0 --level=1 /dev/sda4 /dev/sdb4

__________________
Hostigation.com - High Resource Hosting
WHM/cPanel Servers for Hosting and Dedicated Needs
SolusVM VPS Hosting - Big Features, Small Prices
Like us on Facebook or follow @hostigation on Twitter

  #11  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Thanks again for the reply. At least I see a new message now...

[root@xvm1 /]# fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 65 522081 83 Linux
/dev/sda2 66 11538 92156872+ 83 Linux
/dev/sda3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sda4 12583 121601 875695117+ fd Linux raid autodetect

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 65 522081 83 Linux
/dev/sdb2 66 11538 92156872+ 83 Linux
/dev/sdb3 11539 12582 8385930 82 Linux swap / Solaris
/dev/sdb4 12583 121601 875695117+ fd Linux raid autodetect

[root@xvm1 /]# mdadm --create --verbose /dev/md0 --level=1 /dev/sda4 /dev/sdb4
mdadm: no raid-devices specified.

  #12  
Old
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 929
Whoops, left off part of the command

mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda4 /dev/sdb4

__________________
Hostigation.com - High Resource Hosting
WHM/cPanel Servers for Hosting and Dedicated Needs
SolusVM VPS Hosting - Big Features, Small Prices
Like us on Facebook or follow @hostigation on Twitter

  #13  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Argh!

[root@xvm1 ~]# mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda4 /dev/sdb4
mdadm: Cannot open /dev/sda4: Device or resource busy
mdadm: Cannot open /dev/sdb4: Device or resource busy
mdadm: create aborted

The whole point of this is to run a slave Xen server in SolusVM. Wondering to self--if I could do a fresh install using the Xenserver-linux-cd and still run this server as a SolusVM slave???

  #14  
Old
Southern Yankee
 
Join Date: Sep 2006
Location: The Not So Deep South
Posts: 929
How can those partitions be busy? What is mounted?

I don't think you can use the Xenserver distro with SolusVM, needs to be CentOS

__________________
Hostigation.com - High Resource Hosting
WHM/cPanel Servers for Hosting and Dedicated Needs
SolusVM VPS Hosting - Big Features, Small Prices
Like us on Facebook or follow @hostigation on Twitter

  #15  
Old
Junior Guru Wannabe
 
Join Date: Jan 2011
Posts: 54
Quote:
What is mounted?
Not by me. I did all those commands one after the other in about a minute. No idea how they got "busy". Only thing I can think of is that the guy that put the raid card in was wrong about it being a "fake raid" card??? It some cheap silicon image card.

Thanks again for all the help.

Reply

Similar Threads
Thread Thread Starter Forum Replies Last Post
One time RAID and LVM setup xDesign365 Employment / Job Offers 6 05-02-2010 01:05 AM
One time RAID and LVM setup xDesign365 Employment / Job Requests 0 04-29-2010 11:20 AM
PCI Device not found Snitz Computers and Peripherals 11 12-20-2008 07:16 PM
Found a cheap KVM over IP device argintxe Colocation and Data Centers 7 04-12-2007 11:12 PM
Modifying LVM parition setup? ralexander Hosting Security and Technology 11 02-02-2006 09:15 AM

Related posts from TheWhir.com
Title Type Date Posted
GoDaddy Spins New 'Get Found' Service Out of Locu Acquisition Web Hosting News 2014-01-27 14:17:17
Platform Purple Launches Hosted Platform for Video Sales and Subscription Web Hosting News 2014-01-03 10:56:47
HOSTING Storage Failure Affects CloudVPS Accounts Web Hosting News 2013-10-23 11:51:43
BYOD Policies Missing at 60 Percent of Companies: Acronis Study Web Hosting News 2013-07-17 12:13:54
Nginx Web Server Adds Device Detection at Server Layer with dotMobi DeviceAtlas Module Web Hosting News 2013-01-09 11:33:22


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes
Postbit Selector

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

Forum Jump
Login:
Log in with your username and password
Username:
Password:



Forgot Password?
WHT Host Brief Email:

We respect your privacy. We will never sell, rent, or give away your address to any outside party, ever.

Advertisement:
Web Hosting News:
WHT Membership
WHT Membership



 

X

Welcome to WebHostingTalk.com

Create your username to jump into the discussion!

WebHostingTalk.com is the largest, most influentual web hosting community on the Internet. Join us by filling in the form below.


(4 digit year)

Already a member?