LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 10-29-2010, 06:47 PM   #1
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Rep: Reputation: 32
Question Need to add an lvm from the command line


I have made lvms with gentoo but my technique seems not to be working. I have a disk /dev/sdb1 which I made after the system install on disk /dev/sda1. I am trying this:

vgscan

vgchnage -a y

pvcreate /dev/sdb1

lvm bitches out with:

[yo@with]# pvcreate /dev/sdb1
Device /dev/sdb1 not found (or ignored by filtering).

X is not installed and system-config-lvm is not working with the command line.

Last edited by Thaidog; 10-29-2010 at 07:09 PM.
 
Old 10-29-2010, 07:01 PM   #2
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55

again, how many disks do you have? 'cause you said you have /dev/sda, but you tried
Code:
pvcreate /dev/sdb1
 
Old 10-29-2010, 07:09 PM   #3
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by HasC View Post

again, how many disks do you have? 'cause you said you have /dev/sda, but you tried
Code:
pvcreate /dev/sdb1
Sorry - should have been /dev/sdb1:

pvcreate /dev/sdb1
 
Old 10-30-2010, 07:05 AM   #4
HasC
Member
 
Registered: Oct 2009
Location: South America - Paraguay
Distribution: Debian 5 - Slackware 13.1 - Arch - Some others linuxes/*BSDs through KVM and Xen
Posts: 329

Rep: Reputation: 55
well, did you fdisk'ed sdb? created sdb1 with type 8e (LVM)?
 
Old 10-30-2010, 08:38 PM   #5
Thaidog
Member
 
Registered: Sep 2002
Location: Hilton Head, SC
Distribution: Gentoo
Posts: 637

Original Poster
Rep: Reputation: 32
Quote:
Originally Posted by HasC View Post
well, did you fdisk'ed sdb? created sdb1 with type 8e (LVM)?
Yes I did. I ended up using a "new method" where you use this command:

kpartx -a /dev/mapper/mpath0
 
Old 10-30-2010, 09:35 PM   #6
daud18
LQ Newbie
 
Registered: May 2010
Posts: 4

Rep: Reputation: 0
lvm extend through command line

if your system-config-lvm is not working then do this command <yum install system-config-lvm*> . then it will working.
 
  


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
Add printer command line allancth Linux - Newbie 3 04-01-2009 06:06 AM
howto add a mouse on the command line? Fred Caro Linux - Newbie 4 12-29-2008 12:50 PM
Add user from Command line darkapolloslx Linux - Newbie 1 12-29-2008 12:45 AM
how to add icon with the command line jonsharland Linux - General 1 10-17-2002 03:59 AM
Add lines of code to files from command line robeb Linux - General 2 06-12-2002 03:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

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