LinHES Forums http://forum.linhes.org/ |
|
Storage groups - conventions http://forum.linhes.org/viewtopic.php?f=6&t=18553 |
Page 1 of 1 |
Author: | bobmyth [ Mon Jul 14, 2008 9:02 pm ] |
Post subject: | Storage groups - conventions |
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. |
Author: | akulcsar [ Mon Jul 14, 2008 10:43 pm ] |
Post subject: | |
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:
- 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. ![]() |
Author: | brfransen [ Tue Jul 15, 2008 1:19 am ] |
Post subject: | |
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. ![]() That last option is the one I am using. Britney |
Author: | tjc [ Tue Jul 15, 2008 7:05 am ] |
Post subject: | |
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. |
Page 1 of 1 | All times are UTC - 6 hours |
Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |