[mythtv-users] LVM problem
griz_quattro
griz_quattro at tx.rr.com
Sun Dec 24 18:40:17 UTC 2006
griz_quattro wrote:
>
> Warren Sturm wrote:
>
>
>>On Sun, 2006-12-24 at 12:10 -0600, griz_quattro wrote:
>>
>>
>>>Warren Sturm wrote:
>>>
>>>
>>>
>>>>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.
>>>>>*****************************************************************
>>>>
>>>> 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
>>>>
>>>
>>>Tried it, but don't understand it.
>>>
>>>[root at mythtv /]# lvcreate -n video -L 558.88G Video_Vol
>>> Rounding up size to full physical extent 558.91 GB
>>> Insufficient free extents (17884) in volume group Video_Vol: 17885
>>>required
>>>
>>
>>
>>ok. maybe try this
>>
>> lvcreate -n video -l 17884 Video_Vol
>>
>>then create whichever filesystem type you are comfortable with. Doesn't
>>necessarily have to be ext3.
>>
>
>
> OK, that made it work. i'll post the results after the
> "Writing inode tables:" completes.
>
> I see now what I did. I assumed that since the installer created
> the physical volumes (pv) and the volume groups (vg) that is also
> created the logical volumes (lv). I assumed wrong.
>
>
Here are the results of the lvcreate, lvdisplay, mke2fs, and vgdisplay.
It all appears to be in working order.
[root at mythtv /]# lvcreate -n video -l 17884 Video_Vol
Logical volume "video" created
[root at mythtv /]# lvdisplay
--- Logical volume ---
LV Name /dev/Video_Vol/video
VG Name Video_Vol
LV UUID 3bfL1V-GJmg-LHyC-XXNW-sgoR-igRB-A2Py23
LV Write Access read/write
LV Status available
# open 0
LV Size 558.88 GB
Current LE 17884
Segments 2
Allocation inherit
Read ahead sectors 0
Block device 253:0
[root at mythtv /]# mke2fs -m0 -L/video -j /dev/Video_Vol/video
mke2fs 1.39 (29-May-2006)
Filesystem label=/video
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
73252864 inodes, 146505728 blocks
0 blocks (0.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
4471 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632,
2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 25 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root at mythtv /]# vgdisplay
--- Volume group ---
VG Name Video_Vol
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
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 17884 / 558.88 GB
Free PE / Size 0 / 0
VG UUID szYlX8-rtrD-tqG8-eLXU-GGHQ-9wr4-LgxRku
More information about the mythtv-users
mailing list