LinHES Forums
http://forums.linhes.org/

LVM -- Mixing SATA and IDE. Is it Possible?
http://forums.linhes.org/viewtopic.php?f=14&t=13971
Page 1 of 1

Author:  JoeMcCracken [ Wed Jan 31, 2007 11:50 am ]
Post subject:  LVM -- Mixing SATA and IDE. Is it Possible?

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.

Author:  Gnarl [ Wed Jan 31, 2007 1:10 pm ]
Post subject: 

Its very possible. I used to have 2 IDE and 2 SATA drives sharing the space on 2 logical volumes

Author:  cahlfors [ Wed Jan 31, 2007 1:50 pm ]
Post subject:  Re: LVM -- Mixing SATA and IDE. Is it Possible?

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

Author:  connollyr12 [ Wed Jan 31, 2007 5:28 pm ]
Post subject:  IDE and SATA

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|.*|" ]

Author:  JoeMcCracken [ Thu Feb 01, 2007 12:28 pm ]
Post subject: 

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.

Author:  rkshack [ Tue Mar 18, 2008 4:57 am ]
Post subject: 

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

Author:  spideyk21 [ Tue Mar 18, 2008 6:45 am ]
Post subject: 

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.

Author:  tjc [ Tue Mar 18, 2008 7:04 am ]
Post subject: 

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.

Author:  cecil [ Tue Mar 18, 2008 9:39 am ]
Post subject: 

I wouldn't say it is going away. It is just a less attractive option. ;)

Author:  rkshack [ Tue Mar 18, 2008 5:48 pm ]
Post subject: 

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

Author:  tjc [ Tue Mar 18, 2008 6:10 pm ]
Post subject: 

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

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/