LinuxQuestions.org
Review your favorite Linux distribution.
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 02-04-2004, 10:17 AM   #1
deweirdt
Member
 
Registered: Sep 2003
Location: Belgium
Distribution: SUSE10.1
Posts: 40

Rep: Reputation: 15
Angry Configurate LVM


I've downloaded and installed the latest version of the LVM. But I have trouble configurating it.
I do not want to format my disks and do a completly re-install. This is my configuration:
RH7.3
IDE disk installed as
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda2 19046464 12919976 5158976 72% /
/dev/hda1 46636 8847 35381 21% /boot
The type of all the partitions on the /dev/hda is LINUX (not LINUX LVM
I've added a second disk on the same IDE. So I assume on the /dev/hdb
The type of the partition should be LINUX LVM wich is on /dev/hdb1

Then I inserted the following commands
[root@LinuxServer /]# pvcreate /dev/hdb
pvcreate -- physical volume "/dev/hdb" successfully created

[root@LinuxServer /]# vgcreate LVMDisk /dev/hda1 /dev/hdb1
vgcreate -- no valid physical volumes in command line

//Retried with other partition. But still not working

[root@LinuxServer /]# vgcreate LVMDisk /dev/hda2 /dev/hdb1
vgcreate -- no valid physical volumes in command line

do you know what is going wrong here?
 
Old 02-04-2004, 06:34 PM   #2
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
1. You ran pvcreate on the disk - /dev/hdb - not a partition (/dev/hdb1). If you want to create a partition to use with LVM, create one over the full disk (hdb) and set the type to 8e, Linux LVM. Or just create the pv using the full /dev/hdb disk.

2. Do you really want to wipe your hda1 and hda2 partitions clean by initializing them?

I suggest your read the LVM howto. It's got all the information you need.


Håkan
 
Old 02-05-2004, 02:56 AM   #3
deweirdt
Member
 
Registered: Sep 2003
Location: Belgium
Distribution: SUSE10.1
Posts: 40

Original Poster
Rep: Reputation: 15
I've created a complete partition /dev/hdb1 of the type 0x8E (LINUX LVM). Then I tried again the commads:

[root@LinuxServer root]# pvcreate /dev/hdb1
pvcreate -- physical volume "/dev/hdb1" successfully created

Then I needed to make a group. So I assume I can make a group with the /dev/hda2 (type LINUX) and the /dev/hdb1 (type LINUX LVM) or am I wrong here. This is the command I used for it.

[root@LinuxServer root]# vgcreate lVMDisk /dev/hda2 /dev/hdb1
vgcreate -- some invalid physical volumes in command line

I'm following the HOWTO but I can't still succesfull configurate the LVM. I need some help.

Thx
 
Old 02-05-2004, 05:17 AM   #4
hw-tph
Senior Member
 
Registered: Sep 2003
Location: Sweden
Distribution: Debian
Posts: 3,032

Rep: Reputation: 58
You cannot use your existing hda1 or hda2 partitions for LVM since they are of "swap" and "linux" type respectively. All partitions in a volume group needs to be of the LVM (8e) type. If you were to change the type of the hda2 partition from linux to linux-lvm you would have to initialize it and that effectively erases all data on the partititon.

You could, however, use parted or some other partitioning tool to try to shrink the root partition (hda2) to create space in which you could create a new lvm partition (hda3) to use with your volume group.


Håkan
 
  


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
configurate host and Network script ? Jacky Quah Linux From Scratch 4 12-01-2005 02:58 AM
lvm Ammad Linux - General 2 02-22-2005 09:19 PM
Configurate audio system please_die Mandriva 0 01-11-2005 06:27 AM
To LVM or not to LVM? illtbagu Linux - Software 3 12-29-2003 05:17 PM
tutorial to configurate a network eduac Linux - Networking 2 06-26-2003 07:57 AM


All times are GMT -5. The time now is 06:56 AM.

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