View previous topic :: View next topic |
Author |
Message |
sammy2ooo Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/185318677947cc2c76d69aa.png)
Joined: 26 May 2004 Posts: 225
|
Posted: Mon Jan 10, 2005 8:52 pm Post subject: LVM2 lvcreate how to use the whole disk??? |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Redeeman l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
![](images/avatars/117688223440573d81a4402.jpg)
Joined: 25 Sep 2003 Posts: 958 Location: Portugal
|
Posted: Mon Jan 10, 2005 11:57 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|