Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
LVM2 lvcreate how to use the whole disk???
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
sammy2ooo
Apprentice
Apprentice


Joined: 26 May 2004
Posts: 225

PostPosted: Mon Jan 10, 2005 8:52 pm    Post subject: LVM2 lvcreate how to use the whole disk??? Reply with quote

Hi

after searching a long time within this forum and google i still can't figure out how to tell lvcreate to use the whole disk.
couldn't also find anything in "Gentoo LVM2 installation" @
http://www.gentoo.org/doc/en/lvm2.xml

I have got 2 disks, hdc and hdd, both have the id 8e Linux LVM,

i have created a volume group with: vgcreate vg /dev/hdc1 /dev/hdd1

so now i would like to set up only one uge logic volume. I know i can add the bytes value fdisk shows from /dev/hdc1 to /dev/hdd1.

But can't this be performed easier?

any hints?

thx in advance
_________________
- Linux is sexy -
guru@linux:~> who | egrep -i 'blonde|black|brown' | talk && cd ~; wine; talk; touch; unzip; touch; strip; gasp; finger; mount; fsck; more; yes; gasp; umount; make clean; sleep;
Back to top
View user's profile Send private message
Redeeman
l33t
l33t


Joined: 25 Sep 2003
Posts: 958
Location: Portugal

PostPosted: Mon Jan 10, 2005 11:57 pm    Post subject: Reply with quote

im not sure i understand what you want completely...

if you want to setup one large lv with the combined space of hdd1 and hdc1, simply do:

vgdisplay

then you can see how many free PE's you have, and then do:

lvcreate -l <number of PE's> vg -n <Name of Logical Volume>

that should be it... if you want to make 2 volume groups, and specify the disk in the volume group you want it allocated from, simply do:

lvcreate -l <number of PE's> vg -n <Name of Logical Volume> /dev/<disk in volume group>

hope it helps
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum