LVM problem <SOLVED>

Patrick Nelson pnelson at neatech.com
Thu Oct 6 15:43:36 UTC 2005


Robin Laing wrote:

> Patrick Nelson wrote:
>
>> FC4 Updated
>>
>> Trying to setup a LV on a FC4 setup for home and opts.  Here is the 
>> process:
>>
>> pvcreate /dev/hda1
>>
>> vgcreate homeVG /dev/hda1
>>
>> lvcreate -L4G -mhomeLV homeVG
>>
>> mkfs.ext3 /dev/homeVG/homeLV
>>
>> but when I do the step of mkfs.ext3 I get an error of :
>> mke2ffs 1.37 (21-Mar-2005)
>> Could not stat /dev/homeVG/homeLV --- permission denied
>>
>> ls -la /dev/homeVG/ shows that a link of homeLV -> 
>> /dev/mapper/homeVG-homeLV which has permissions of:
>>
>> brw-rw---- root disk 253, 2 Oct 4 17:25
>>
>> Anyone have an idea on what is going wrong?
>>
>
> Did you try the graphical tool?  I ask this as I ran into the same 
> problem last weekend.  My first attempt at LVM.  Worked like a dream. :)
>
> Desktop > System settings > Logical Volume Management
>
> I was in to much of a rush to wait.
>
No I have not tried the tool, but I did finally get it working.

I tried rebooting and that left the system locked at the Volume Manager 
stage.  So I rescued booted the system and then chroot /mnt/sysimage and 
then I removed the LV and VG and then I repartioned the HD and then did:

pvcreate /dev/hda1
vgcreate homeVG /dev/hda1
lvcreate -L4G -mhomeLV homeVG
mkfs.ext3 /dev/homeVG/homeLV

and it worked.  So I continued and got all the my VG and LVs up and 
working.   Then I fixed up the /etc/fstab and it rebooted normally!  
Woho, but I'm not totally sure what happened when I was initially 
setting it up. 




More information about the fedora-list mailing list