[mythtv-users] LVM problem
Warren Sturm
wrsturm at shaw.ca
Sun Dec 24 18:04:37 UTC 2006
On Sun, 2006-12-24 at 11:47 -0600, griz_quattro wrote:
> I am a newb to Linux. Been following FC6 guide at
> http://wilsonet.com/mythtv/fcmyth.php but cannot
> get my volume group "seen".
>
> Searching and using http://mythtv.org/docs/mythtv-HOWTO.html#toc24.1
> and http://tldp.org/HOWTO/LVM-HOWTO/ for answers to where I missed a
> step but I am at a loss. Google seemed to point to recovering from a
> failed LVM drive
>
> I setup LVM at install when loading FC6 (Fedora) on two 300gb hdd,
> using both for Volume Group called "Video_Vol". First HDD is sda
> has the system partitions on sda1 thru sda5, second HDD is sdb
> with partition sdb1, and third HDD is sdc with partition sdc1. The
> second and third HDD are the Volume Group called "Video_Vol".
>
> I am not certain of what nor how to get the VG "seen". Any pointers
> would be appreciated. If I am posting to the wrong list, please,
> let me know and I will move on.
>
> *****************************************************************
>
> [root at mythtv /]# pvscan
> PV /dev/sdc1 VG Video_Vol lvm2 [279.44 GB / 279.44 GB free]
> PV /dev/sdb1 VG Video_Vol lvm2 [279.44 GB / 279.44 GB free]
> Total: 2 [558.88 GB] / in use: 2 [558.88 GB] / in no VG: 0 [0 ]
>
> *****************************************************************
>
> [root at mythtv /]# lvscan
> [root at mythtv /]#
>
> *****************************************************************
>
At what point did you create the logical volume(s)? This is
showing that none were created and all the space in the volume
group is showing as free (unused).
You need to do the lvcreate. for example:
lvcreate -n video -L 558.88G Video_Vol
this will create 1 logical volume that should pretty well take
up all the volume group space.
Then you can put on the filesystem
mke2fs -m0 -L/video -j /dev/Video_Vol/video
> [root at mythtv /]# vgscan
> Reading all physical volumes. This may take a while...
> Found volume group "Video_Vol" using metadata type lvm2
>
> *****************************************************************
>
> [root at mythtv ~]# fdisk -l
>
> Disk /dev/sda: 300.0 GB, 300090728448 bytes
> 255 heads, 63 sectors/track, 36483 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sda1 * 1 13 104391 83 Linux
> /dev/sda2 14 3640 29133877+ 83 Linux
> /dev/sda3 3641 36199 261530167+ 83 Linux
> /dev/sda4 36200 36483 2281230 5 Extended
> /dev/sda5 36200 36483 2281198+ 82 Linux swap / Solaris
>
> Disk /dev/sdb: 300.0 GB, 300069052416 bytes
> 255 heads, 63 sectors/track, 36481 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sdb1 * 1 36481 293033601 8e Linux LVM
>
> Disk /dev/sdc: 300.0 GB, 300069052416 bytes
> 255 heads, 63 sectors/track, 36481 cylinders
> Units = cylinders of 16065 * 512 = 8225280 bytes
>
> Device Boot Start End Blocks Id System
> /dev/sdc1 * 1 36481 293033601 8e Linux LVM
>
> *****************************************************************
>
> [root at mythtv ~]# pvdisplay
> File descriptor 11 left open
> File descriptor 12 left open
> File descriptor 13 left open
> --- Physical volume ---
> PV Name /dev/sdc1
> VG Name Video_Vol
> PV Size 279.44 GB / not usable 0
> Allocatable yes
> PE Size (KByte) 32768
> Total PE 8942
> Free PE 8942
> Allocated PE 0
> PV UUID lEOegI-s050-LvBk-GA8O-aEg5-NCuO-COnWbA
>
> --- Physical volume ---
> PV Name /dev/sdb1
> VG Name Video_Vol
> PV Size 279.44 GB / not usable 0
> Allocatable yes
> PE Size (KByte) 32768
> Total PE 8942
> Free PE 8942
> Allocated PE 0
> PV UUID fCzDu6-rlCp-dKyG-0Kh5-VtuP-sdiL-wwAJl7
>
> *****************************************************************
>
> [root at mythtv /]# lvdisplay -vv
> Setting global/locking_type to 1
> Setting global/locking_dir to /var/lock/lvm
> File-based locking enabled.
> Finding all logical volumes
> /dev/ramdisk: No label detected
> /dev/ram: No label detected
> /dev/sda1: No label detected
> /dev/ram2: No label detected
> /dev/root: No label detected
> /dev/ram3: No label detected
> /dev/sda3: No label detected
> /dev/ram4: No label detected
> /dev/ram5: No label detected
> /dev/sda5: No label detected
> /dev/ram6: No label detected
> /dev/ram7: No label detected
> /dev/ram8: No label detected
> /dev/ram9: No label detected
> /dev/ram10: No label detected
> /dev/ram11: No label detected
> /dev/ram12: No label detected
> /dev/ram13: No label detected
> /dev/ram14: No label detected
> /dev/ram15: No label detected
> /dev/sdb1: lvm2 label detected
> /dev/sdc1: lvm2 label detected
> Locking /var/lock/lvm/V_Video_Vol RB
> /dev/sdb1: lvm2 label detected
> /dev/sdc1: lvm2 label detected
> /dev/sdc1: lvm2 label detected
> /dev/sdb1: lvm2 label detected
> /dev/sdc1: lvm2 label detected
> /dev/sdb1: lvm2 label detected
> Unlocking /var/lock/lvm/V_Video_Vol
>
> *****************************************************************
>
> [root at mythtv ~]# vgdisplay
> File descriptor 11 left open
> File descriptor 12 left open
> File descriptor 13 left open
> --- Volume group ---
> VG Name Video_Vol
> 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 558.88 GB
> PE Size 32.00 MB
> Total PE 17884
> Alloc PE / Size 0 / 0
> Free PE / Size 17884 / 558.88 GB
> VG UUID szYlX8-rtrD-tqG8-eLXU-GGHQ-9wr4-LgxRku
>
> *****************************************************************
>
> [root at mythtv ~]# vgchange -a y
> File descriptor 11 left open
> File descriptor 12 left open
> File descriptor 13 left open
> 0 logical volume(s) in volume group "Video_Vol" now active
> [root at mythtv ~]# vgdisplay
> File descriptor 11 left open
> File descriptor 12 left open
> File descriptor 13 left open
> --- Volume group ---
> VG Name Video_Vol
> 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 558.88 GB
> PE Size 32.00 MB
> Total PE 17884
> Alloc PE / Size 0 / 0
> Free PE / Size 17884 / 558.88 GB
> VG UUID szYlX8-rtrD-tqG8-eLXU-GGHQ-9wr4-LgxRku
>
> *****************************************************************
>
> [root at mythtv ~]# vgchange -a y Video_Vol
> File descriptor 11 left open
> File descriptor 12 left open
> File descriptor 13 left open
> 0 logical volume(s) in volume group "Video_Vol" now active
> [root at mythtv ~]#
>
> *****************************************************************
>
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
More information about the mythtv-users
mailing list