|
From: Dominic R. <dl...@ed...> - 2010-10-07 08:21:36
|
I very rarely use the local console (screen/keyboard) for accessing DL. It is much more convenient to access it by ssh, not least because I don't have to be physically in front of the machine. However the one time when I am required to be locally present is when upgrading from one release to the next, because the upgrade script runs before ssh is enabled. So I still need a local console [ or I guess serial console ] available. Is/could it be possible to run the upgrade script through ssh? Then DL would suit truly 'headless' installations requiring only an ethernet connection. Dominic |
|
From: Heiko Z. <he...@zu...> - 2010-10-07 13:52:04
|
Hey, I like the idea, but I'm not sure we can really implement this. The problem is that you possibly can't start the system without the updated config. Maybe anybody has an idea on how to solve this? Heiko Quoting Dominic Raferd <dl...@ed...>: > I very rarely use the local console (screen/keyboard) for accessing > DL. It is much more convenient to access it by ssh, not least because I > don't have to be physically in front of the machine. > > However the one time when I am required to be locally present is when > upgrading from one release to the next, because the upgrade script runs > before ssh is enabled. So I still need a local console [ or I guess > serial console ] available. > > Is/could it be possible to run the upgrade script through ssh? Then DL > would suit truly 'headless' installations requiring only an ethernet > connection. > > Dominic > > ------------------------------------------------------------------------------ > Beautiful is writing same markup. Internet Explorer 9 supports > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > Spend less time writing and rewriting code and more time creating great > experiences on the web. Be a part of the beta today. > http://p.sf.net/sfu/beautyoftheweb > _______________________________________________ > Devil-linux-discuss mailing list > Dev...@li... > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss > -- Regards Heiko Zuerker http://www.devil-linux.org ---------------------------------------------------------------- This message was sent using IMP, the Internet Messaging Program. |
|
From: Serge L. <ser...@gm...> - 2010-10-07 19:49:07
|
It's just a rough idea, please be lenient :) usually we have a new image reachable and can mount it from running system, execute upgrade script against existent config files and save the result (and backup!). Hopefully we can do it even more than one time :) in order to allow post factum review and rollback. So the process of config files modification will be moved from "new" system to "old" system. However, we rely on aufs format persistence or backward compatibility... Serge On 10/07/2010 06:51 AM, Heiko Zuerker wrote: > Hey, > > I like the idea, but I'm not sure we can really implement this. > The problem is that you possibly can't start the system without the > updated config. > Maybe anybody has an idea on how to solve this? > > Heiko > > Quoting Dominic Raferd <dl...@ed...>: >> I very rarely use the local console (screen/keyboard) for accessing >> DL. It is much more convenient to access it by ssh, not least because I >> don't have to be physically in front of the machine. >> >> However the one time when I am required to be locally present is when >> upgrading from one release to the next, because the upgrade script runs >> before ssh is enabled. So I still need a local console [ or I guess >> serial console ] available. >> >> Is/could it be possible to run the upgrade script through ssh? Then DL >> would suit truly 'headless' installations requiring only an ethernet >> connection. >> >> Dominic >> >> ------------------------------------------------------------------------------ >> Beautiful is writing same markup. Internet Explorer 9 supports >> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. >> Spend less time writing and rewriting code and more time creating great >> experiences on the web. Be a part of the beta today. >> http://p.sf.net/sfu/beautyoftheweb >> _______________________________________________ >> Devil-linux-discuss mailing list >> Dev...@li... >> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >> > > > |
|
From: Dominic R. <dl...@ed...> - 2010-10-08 10:55:49
|
Looks like a good approach (to my inexpert eyes). Could it be implemented without complete rewrite of the upgrade script? [Where is the upgrade script anyway?...] Before we get too deep into this, can I just clear up how feasible it is to have 2 devices (presumably USB), one with first partition holding the old running DL release and one onto which we put the new DL release using install-on-usb. Then we reboot, leaving both devices plugged. Can we force booting with the device with the new DL release rather than the old one? I think that with syslinux we can remove the boot flag from the old boot device/partition before rebooting and this will force machine to boot from the new boot device/partition. This may not work with grub however, because I understand it ignores the bootable flag. A disadvantage is that if, for some reason, the new DL fails to boot, we have also 'broken' the old DL and will have to restore the bootable flag before it can boot. Dominic On 07/10/2010 20:48, Serge Leschinsky wrote: > It's just a rough idea, please be lenient :) > > usually we have a new image reachable and can mount it from running system, > execute upgrade script against existent config files and save the result (and > backup!). Hopefully we can do it even more than one time :) in order to allow > post factum review and rollback. So the process of config files modification > will be moved from "new" system to "old" system. > > However, we rely on aufs format persistence or backward compatibility... > > Serge > > On 10/07/2010 06:51 AM, Heiko Zuerker wrote: >> Hey, >> >> I like the idea, but I'm not sure we can really implement this. >> The problem is that you possibly can't start the system without the >> updated config. >> Maybe anybody has an idea on how to solve this? >> >> Heiko >> >> Quoting Dominic Raferd<dl...@ed...>: >>> I very rarely use the local console (screen/keyboard) for accessing >>> DL. It is much more convenient to access it by ssh, not least because I >>> don't have to be physically in front of the machine. >>> >>> However the one time when I am required to be locally present is when >>> upgrading from one release to the next, because the upgrade script runs >>> before ssh is enabled. So I still need a local console [ or I guess >>> serial console ] available. >>> >>> Is/could it be possible to run the upgrade script through ssh? Then DL >>> would suit truly 'headless' installations requiring only an ethernet >>> connection. >>> >>> Dominic |
|
From: Frank W. <Fra...@ct...> - 2010-10-08 07:57:49
|
Hi, I have done remote updates in the past, but it is a fiddly task... Regarding the config part, I fetched a copy of etc.tar.gz (as it was called at the time), and did the interactive update locally on another machine. I then copied the new bootcd.iso and etc.tar.gz to the remote firewall on a second partition of the CF-Card. I'd create an entry in grub.conf that would use the new config and bootcd.iso using the DL_xxx boot parameters, and mark this entry as default. Finally I would reboot and have remote person standby to revert to the 'safe' grub entry in case anything went wrong.. These days, I prefer to create entirely new CF-Cards and send them over. One has just to be careful with /etc/udev/rules.d/70-persistent-net.rules when preparing the config on a different hardware, otherwise the NICs come up with wrong names and your locked out. I think being able to select the iso and the config file at boot time is the best DL can do if you want to it without touching the remote hardware. Regards, Frank On Thu, 2010-10-07 at 08:51 -0500, Heiko Zuerker wrote: > Hey, > > I like the idea, but I'm not sure we can really implement this. > The problem is that you possibly can't start the system without the > updated config. > Maybe anybody has an idea on how to solve this? > > Heiko > > Quoting Dominic Raferd <dl...@ed...>: > > I very rarely use the local console (screen/keyboard) for accessing > > DL. It is much more convenient to access it by ssh, not least because I > > don't have to be physically in front of the machine. > > > > However the one time when I am required to be locally present is when > > upgrading from one release to the next, because the upgrade script runs > > before ssh is enabled. So I still need a local console [ or I guess > > serial console ] available. > > > > Is/could it be possible to run the upgrade script through ssh? Then DL > > would suit truly 'headless' installations requiring only an ethernet > > connection. > > > > Dominic > > > > ------------------------------------------------------------------------------ > > Beautiful is writing same markup. Internet Explorer 9 supports > > standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. > > Spend less time writing and rewriting code and more time creating great > > experiences on the web. Be a part of the beta today. > > http://p.sf.net/sfu/beautyoftheweb > > _______________________________________________ > > Devil-linux-discuss mailing list > > Dev...@li... > > https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss > > > > > -- _______________________________________________ Centre de Technologie de l'Education 29 avenue John F. Kennedy L-1855 Luxembourg-Kirchberg email: Fra...@ct... tél.: +352 247-85973 fax: +352 333797 _______________________________________________ |
|
From: Dominic R. <dl...@ed...> - 2010-10-08 11:31:09
|
Ah, that's clever, and changing grub.conf is better than my syslinux / 2-USB-drive suggestion. Could all be done on the real remote machine (and could even be 'automated') if upgrade script ran under the old release before rebooting, as Serge suggests. Dominic On 08/10/2010 08:57, Frank Weis wrote: > Hi, > > I have done remote updates in the past, but it is a fiddly task... > > Regarding the config part, I fetched a copy of etc.tar.gz (as it was > called at the time), and did the interactive update locally on another > machine. > > I then copied the new bootcd.iso and etc.tar.gz to the remote firewall > on a second partition of the CF-Card. I'd create an entry in grub.conf > that would use the new config and bootcd.iso using the DL_xxx boot > parameters, and mark this entry as default. > > Finally I would reboot and have remote person standby to revert to the > 'safe' grub entry in case anything went wrong.. > > > These days, I prefer to create entirely new CF-Cards and send them over. > One has just to be careful > with /etc/udev/rules.d/70-persistent-net.rules when preparing the config > on a different hardware, otherwise the NICs come up with wrong names and > your locked out. > > I think being able to select the iso and the config file at boot time is > the best DL can do if you want to it without touching the remote > hardware. > > > Regards, > Frank > > > On Thu, 2010-10-07 at 08:51 -0500, Heiko Zuerker wrote: >> Hey, >> >> I like the idea, but I'm not sure we can really implement this. >> The problem is that you possibly can't start the system without the >> updated config. >> Maybe anybody has an idea on how to solve this? >> >> Heiko >> >> Quoting Dominic Raferd<dl...@ed...>: >>> I very rarely use the local console (screen/keyboard) for accessing >>> DL. It is much more convenient to access it by ssh, not least because I >>> don't have to be physically in front of the machine. >>> >>> However the one time when I am required to be locally present is when >>> upgrading from one release to the next, because the upgrade script runs >>> before ssh is enabled. So I still need a local console [ or I guess >>> serial console ] available. >>> >>> Is/could it be possible to run the upgrade script through ssh? Then DL >>> would suit truly 'headless' installations requiring only an ethernet >>> connection. >>> >>> Dominic >>> >>> ------------------------------------------------------------------------------ >>> Beautiful is writing same markup. Internet Explorer 9 supports >>> standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2& L3. >>> Spend less time writing and rewriting code and more time creating great >>> experiences on the web. Be a part of the beta today. >>> http://p.sf.net/sfu/beautyoftheweb >>> _______________________________________________ >>> Devil-linux-discuss mailing list >>> Dev...@li... >>> https://lists.sourceforge.net/lists/listinfo/devil-linux-discuss >>> >> >> |