LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-24-2006, 07:54 PM   #1
Malibyte
Member
 
Registered: Dec 2001
Location: California, USA
Distribution: Ubuntu, Debian
Posts: 128

Rep: Reputation: 15
Ubuntu/LVM Setup Problem


Hi all -

I'm trying to set up MythTV on an Ubuntu 6.06 (Dapper) box with two SATA drives. The partitions to be used for storing the video files are /dev/sda13 (approx. 250GB) and /dev/sdb1 (300GB).

Those partitions are set up as type 8e (Linux LVM). I have tried fromatting them as ext3 and jfs with the same results. The format goes fine, I can create the physical volumes with pvcreate, but then trying to create the volume group with vgcreate fails:

The first partition:
Code:
root@vader:/etc/default# pvcreate -vv /dev/sda13
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
    Logging initialised at Thu Aug 24 17:43:25 2006

    Set umask to 0077
pvcreate      Setting global/locking_type to 1
pvcreate      Setting global/locking_dir to /var/lock/lvm
pvcreate      File-based locking enabled.
pvcreate      Locking /var/lock/lvm/P_orphans WB
pvcreate      /dev/sda13: No label detected
pvcreate      /dev/sda13: size is 515847087 sectors
pvcreate      metadata/pvmetadatasize not found in config: defaulting to 255
pvcreate      metadata/pvmetadatacopies not found in config: defaulting to 1
pvcreate      /dev/sda13: size is 515847087 sectors
pvcreate    Set up physical volume for "/dev/sda13" with 515846703 available sectors
pvcreate      Scanning for labels to wipe from /dev/sda13
pvcreate    Zeroing start of device /dev/sda13
pvcreate      Writing physical volume data to disk "/dev/sda13"
pvcreate      /dev/sda13: Writing label to sector 1
pvcreate  Physical volume "/dev/sda13" successfully created
pvcreate      Unlocking /var/lock/lvm/P_orphans
pvcreate    Wiping internal VG cache
So far, so good. The second partition:

Code:
root@vader:/etc/default# pvcreate -vv /dev/sdb1
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
    Logging initialised at Thu Aug 24 17:44:28 2006

    Set umask to 0077
pvcreate      Setting global/locking_type to 1
pvcreate      Setting global/locking_dir to /var/lock/lvm
pvcreate      File-based locking enabled.
pvcreate      Locking /var/lock/lvm/P_orphans WB
pvcreate      /dev/sdb1: No label detected
pvcreate      /dev/sdb1: size is 625137282 sectors
pvcreate      metadata/pvmetadatasize not found in config: defaulting to 255
pvcreate      metadata/pvmetadatacopies not found in config: defaulting to 1
pvcreate      /dev/sdb1: size is 625137282 sectors
pvcreate    Set up physical volume for "/dev/sdb1" with 625136898 available sectors
pvcreate      Scanning for labels to wipe from /dev/sdb1
pvcreate    Zeroing start of device /dev/sdb1
pvcreate      Writing physical volume data to disk "/dev/sdb1"
pvcreate      /dev/sdb1: Writing label to sector 1
pvcreate  Physical volume "/dev/sdb1" successfully created
pvcreate      Unlocking /var/lock/lvm/P_orphans
pvcreate    Wiping internal VG cache
Again, so far, so good. Now:

Code:
root@vader:/etc/default# vgcreate -v myth_disks /dev/sda13 /dev/sdb1
File descriptor 3 left open
File descriptor 5 left open
File descriptor 7 left open
    Logging initialised at Thu Aug 24 17:46:03 2006

    Set umask to 0077
vgcreate    Wiping cache of LVM-capable devices
vgcreate    Adding physical volume '/dev/sda13' to volume group 'myth_disks'
vgcreate  No physical volume label read from /dev/sda13
vgcreate  /dev/sda13 not identified as an existing physical volume
vgcreate  Unable to add physical volume '/dev/sda13' to volume group 'myth_disks'.
vgcreate    Wiping internal VG cache
OK; pvcreate said both physical volumes were created, but vgcreate won't add the first volume. The same thing happens if I simply give it /dev/sdb1 as the only volume to add.

Can anyone see what I'm doing wrong here? I looked on Ubuntuforums but didn't find anything useful over there.

Thanks in advance --
Bob

Last edited by Malibyte; 08-24-2006 at 09:15 PM.
 
Old 02-05-2007, 06:17 PM   #2
mransel
LQ Newbie
 
Registered: Feb 2007
Posts: 1

Rep: Reputation: 0
/dev/evms

I'm not sure how or why this works, but it worked for me. Instead of using /dev/hdx# use /dev/evms/hdx# (where x is abcdef... and # is the partition number). Must be something funny about the way lvm scans the drives... (it sees /dev/evms/* before it sees the files in /dev) Good Luck!!

Michael
 
  


Reply



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
Boot problem with LVM using Ubuntu 6.03 as secondary linux distro with FC5 and Win XP grandpa-geek Ubuntu 4 06-25-2006 12:18 PM
mounting a fedora LVM from Ubuntu cerealdaemon Linux - Software 6 04-26-2006 07:37 PM
LVM at boot time Ubuntu 64 bits HellSpawn Ubuntu 1 07-13-2005 07:53 PM
RAID/LVM setup with existing drives juu801 Linux - General 3 07-06-2005 12:35 AM
How to setup LVM after after completing install of RH9 jcarpio Linux - Software 0 04-10-2004 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:10 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
Open Source Consulting | Domain Registration