can somebody tell me how to mount LVM
Steve Feehan
sfeehan at sbb.uvm.edu
Sat Jul 2 17:15:44 UTC 2005
On Sat, Jul 02, 2005 at 10:07:45PM +0500, Mustafa Abbasi wrote:
> pvdisplay
>
> root at ubuntu:~# pvdisplay
> --- Physical volume ---
> PV Name /dev/hda3
> VG Name storage
> PV Size 31.20 GB / not usable 0
> Allocatable yes
> PE Size (KByte) 4096
> Total PE 7987
> Free PE 7987
> Allocated PE 0
> PV UUID dALgIA-mvCr-P17l-1rKO-2aQj-FAEk-otOv9K
>
> --- Physical volume ---
> PV Name /dev/hdb3
> VG Name storage
> PV Size 31.03 GB / not usable 0
> Allocatable yes
> PE Size (KByte) 4096
> Total PE 7944
> Free PE 7944
> Allocated PE 0
> PV UUID NwCXne-sEM0-v6hi-InEY-xUOK-0lBV-rM5EPv
>
>
> vgdisplay
>
> --- Volume group ---
> VG Name storage
> System ID
> Format lvm2
> Metadata Areas 2
> Metadata Sequence No 1
> VG Access read/write
> VG Status resizable
> MAX LV 0
> Cur LV 0
> Open LV 0
> Max PV 0
> Cur PV 2
> Act PV 2
> VG Size 62.23 GB
> PE Size 4.00 MB
> Total PE 15931
> Alloc PE / Size 0 / 0
> Free PE / Size 15931 / 62.23 GB
> VG UUID FmOA2M-6jnP-XvZM-svFq-DJkW-78E3-ZiPXLT
>
> lvdisplay
> nothing.......
It looks like you didn't create any volumes on the volume group.
Read the lvcreate(1) man page for the full details, but the basic
command is:
lvcreate -n lvname -L size storage
Where 'lvname' is the desired volume name and 'size' is the
volume size.
Then you will need to create a file system on the logical volume:
mkfs -t ext3 /dev/storage/lvname
Finally, add the logical volume to the fstab:
echo "/dev/storage/lvname /mount/point ext3 defaults 0 2" >> /etc/fstab
Create the mount point, if it doesn't already exist:
mkdir /mount/point
And mount the volume:
mount /mount/point
> i have activated the volume by
>
> *# vgchange -a y storage
This should happen automatically at boot.
--
Steve Feehan
More information about the ubuntu-users
mailing list