View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 4 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Mon Jul 14, 2008 9:02 pm 
Offline
Joined: Wed Jan 18, 2006 8:36 pm
Posts: 199
MythTV 0.21 has the storage groups feature, what are people doing? I already have a /myth partition, I am thinking of adding /myth2, /myth3, etc.

What would be fantastic is if we could all agree on a convention and then we could work to get it added to the KM upgrade so the extra storage groups could be detected and added back to /etc/fstab.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 14, 2008 10:43 pm 
Offline
Joined: Thu Dec 01, 2005 4:14 pm
Posts: 78
Location: Ann Arbor, MI
While a convention could be useful, it generally should not be needed. I'm flipping through the upgrade scripts, and it looks like fstab is recreated during an upgrade instead of copied from the backup - generally a good thing.

Even with a convention for mount points, the device names would be different for everyone (does /myth/tv1 point to /dev/hda1? or /dev/hda2? or /dev/sda6?). A simplistic upgrade path would resemble something like this:

    - Query mythconverg.storagegroups for storage group locations
    - Parse /etc/fstab from the backup and guess which additional entries need to be restored

There would be a fair amount of guessing required, but it could work.

A simpler method would be to set a line of demarcation in /etc/fstab: everything before the line is ignored; everything after the line is appended to the current /etc/fstab.

OR, you could choose not to monkey with the default "auto-mounts" provided by the install scripts (e.g. /dev/sda2 is mounted to /mnt/sda2), and then this becomes a non-issue, eh? /dev/sda2 ALWAYS will mount to /mnt/sda2, and your storage group information will copy over during the upgrade, so all should be good.

Just thinking out loud here. :-) I'm liking that last option, myself.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 15, 2008 1:19 am 
Offline
Joined: Fri Jul 21, 2006 11:12 pm
Posts: 1194
Location: SC
akulcsar wrote:
OR, you could choose not to monkey with the default "auto-mounts" provided by the install scripts (e.g. /dev/sda2 is mounted to /mnt/sda2), and then this becomes a non-issue, eh? /dev/sda2 ALWAYS will mount to /mnt/sda2, and your storage group information will copy over during the upgrade, so all should be good.

Just thinking out loud here. :-) I'm liking that last option, myself.


That last option is the one I am using.

Britney


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jul 15, 2008 7:05 am 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
On an upgrade the script which is run from the CD extracts the name of your /myth partition from the old /etc/fstab. It wouldn't be too big a stretch to have it do something like grep '/myth.*'

There's also labeling approaches combined with querying the DB.


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 13 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:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu