View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 11 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Wed Jan 31, 2007 11:50 am 
Offline
Joined: Sat Jan 27, 2007 12:33 am
Posts: 14
is it possible to lvm an IDE harddrive and a SATA harddrive together? I currently have Knoppmyth r5d1 installed on a 120 gb IDE drive and have a 200gb SATA drive just laying around not being used.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 31, 2007 1:10 pm 
Offline
Joined: Mon Feb 16, 2004 7:06 pm
Posts: 309
Location: Toronto
Its very possible. I used to have 2 IDE and 2 SATA drives sharing the space on 2 logical volumes

_________________
KnoppMyth Folding@home
How to setup F@H
F@H Stats Page


Top
 Profile  
 
PostPosted: Wed Jan 31, 2007 1:50 pm 
Offline
Joined: Tue Jan 23, 2007 1:38 pm
Posts: 249
Location: Sweden
Yea, doesn't matter which technology. I used to do this with Mandriva. Be aware, however, that with LVM you don't know what material is on which hard disk. If one disk fails, you don't know what's been lost, unless your backup program can help you with that.

/Chris

_________________
LinHES R8.6.1
BE: AMD64X4, 4GB, Hauppauge usb tuners
FE1: Gigabyte F2A85X-UP4, nVidia GT640
FE2: Gigabyte GA-MA69GM-S2H, AthlonX2 4850E 2.5 GHz, 1GB, ASUS GEFORCE 7200GS 256MB
FE3: Asus Eeebox410


Top
 Profile  
 
 Post subject: IDE and SATA
PostPosted: Wed Jan 31, 2007 5:28 pm 
Offline
Joined: Tue Jun 21, 2005 6:09 pm
Posts: 57
These are the commands to set up sata drives with IDE
I do a standard install on the IDE drive and then after the first reboot and before I login to configure my card I hit alt f1 and run the commands below make sure you change according to your drive letters.


pvcreate /dev/sda1

vgcreate -s 8M vg /dev/sda1

#Fill in the ammount from grep in lvcreate
vgdisplay vg | grep "Total PE"

lvcreate -l 35772 vg -n myth

mke2fs -j -O sparse_super -m0 -i8000000 -L myth /dev/vg/myth

mount /dev/vg/myth /mnt/sda1

cp -p -r /myth/* /mnt/sda1

nano /etc/fstab
/dev/vg/myth /myth auto defaults,auto 0 2

update-rc.d lvm start 26 S . stop 82 1 .

nano /etc/init.d/bootmisc.sh

# enable DMA
/sbin/hdparm -qd1 /dev/hda
/sbin/hdparm -qd1 /dev/sda

cfdisk /dev/hda
#Reboot box

pvcreate /dev/hda3

#Extend the Volume group
vgextend vg /dev/hda3

#Unmount Drives
telinit 1
umount /dev/vg/myth

vgdisplay
lvextend -l+1552 /dev/vg/myth

e2fsck -f /dev/vg/myth
resize2fs /dev/vg/myth

mount /dev/vg/myth

telinit 5

chown -R mythtv /myth
chgrp -R mythtv /myth

#Fix Boot Errors
nano /etc/lvm/lvm.conf

# Only scan hda
filter = [ "a|/dev/hd[a]|", "r|.*|" ]

# Only scan sda
filter = [ "a|/dev/sd[a]|", "r|.*|" ]


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 12:28 pm 
Offline
Joined: Sat Jan 27, 2007 12:33 am
Posts: 14
Excellent instructions. I had to unmount the original IDE myth partition before I could use the pvcreate command successfully, but I now have a 100GB IDE partition and 200GB SATA drive linked together!

I used the command

lvextend -l+1552 /dev/vg/myth

I'm not sure what value I should have specified in place of 1552 in order to utilize the full space on the lvm partition, so by using 1552, I ended up with about 200GB of the available 295GB (reported by vgdisplay command) and after some reading I reckon I will have to try to extend this to include the remaining ~100GB.

lvextend -L +100G /dev/vg/myth (I think that should do it, but haven't tried yet)

Again, thanks for the posted steps. 100GB is just not enough for a MythTV box. In the future, I should be able to add another harddrive (either SATA or IDE) to the vg group relatively easily.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 4:57 am 
Offline
Joined: Sat Oct 29, 2005 6:57 am
Posts: 176
I have my install already running. Can I exit out of mythtv and turn off the backend and then perform the instructions as above?

rkshack

_________________
5.5
6150k8ma-8ekrs
Athlon64 3200+
1gb ram
250gb hda
750gb sda
nvidia 6200
central time


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 6:45 am 
Offline
Joined: Tue Sep 12, 2006 6:03 am
Posts: 210
Location: Roseville, MI
I think that LMV is going away for MythTV with the introduction of Storage Groups

Quote:
Release Notes - 0.21
Major changes

* Added Storage Groups. This allows multiple recording directories, where each storage group is a list of directories.

_________________
-Roseville, Michigan USA
LinHES R8: FE/BE, FE (x2)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 7:04 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
rkshack wrote:
I have my install already running. Can I exit out of mythtv and turn off the backend and then perform the instructions as above?

Possibly, but not blindly. I would recommend looking at the LVM instructions on the wiki which provide much more details about what is going on and why. Pay attention to what's happening as far as shuffling data, adding physical volumes to the pool and creating logical volumes from that pool. It's not all that hard to understand what is going on and it'll increase your chances of a successful outcome enormously.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 9:39 am 
Offline
Site Admin
Joined: Fri Sep 19, 2003 6:37 pm
Posts: 2659
Location: Whittier, Ca
I wouldn't say it is going away. It is just a less attractive option. ;)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 5:48 pm 
Offline
Joined: Sat Oct 29, 2005 6:57 am
Posts: 176
spideyk21 wrote:
I think that LMV is going away for MythTV with the introduction of Storage Groups

Quote:
Release Notes - 0.21
Major changes

* Added Storage Groups. This allows multiple recording directories, where each storage group is a list of directories.


When is this supposed to me incorporated into knoppmyth? How hard is it to split up down the road?

rkshack

_________________
5.5
6150k8ma-8ekrs
Athlon64 3200+
1gb ram
250gb hda
750gb sda
nvidia 6200
central time


Top
 Profile  
 
 Post subject:
PostPosted: Tue Mar 18, 2008 6:10 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
rkshack wrote:
When is this supposed to me incorporated into knoppmyth?

It's an MythTV 0.21 feature. See Cecil's comments here: http://knoppmyth.net/phpBB2/viewtopic.php?t=18019
rkshack wrote:
How hard is it to split up down the road?

Please see the following wiki page: http://www.knoppmythwiki.org/index.php?page=BreakingUpLvmHowTo


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 17 guests


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 post attachments in this forum

Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu