Constantin Gonzalez
2007-May-25 10:38 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Hi, I''m a big fan of live upgrade. I''m also a big fan of ZFS boot. The latter is more important for me. And yes, I''m looking forward to both being integrated with each other. Meanwhile, what is the best way to upgrade a post-b61 system that is booted from ZFS? I''m thinking: 1. Boot from ZFS 2. Use Tim''s excellent multiple boot datasets script to create a new cloned ZFS boot environment: http://blogs.sun.com/timf/entry/an_easy_way_to_manage 3. Loopback mount the new OS ISO image 4. Run the installer from the loopbacked ISO image in upgrade mode on the clone 5. Mark the clone to be booted the next time 6. Reboot into the upgraded OS. Questions: - How exactly do I do step 4? Before, luupgrade did everything for me, now what manpage do I need to do this? - Did I forget something above? I''m ok with losing some logfiles and stuff that maybe changed between the clone and the reboot, but is there anything else? - Did someone already blog about this and I haven''t noticed yet? Cheers, Constantin -- Constantin Gonzalez Sun Microsystems GmbH, Germany Platform Technology Group, Global Systems Engineering http://www.sun.de/ Tel.: +49 89/4 60 08-25 91 http://blogs.sun.com/constantin/ Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering
Malachi de Ælfweald
2007-May-25 14:23 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
I''m actually wondering the same thing because I have b62 w/ the ZFS bits; but need the snapshot''s "-r" functionality. Malachi On 5/25/07, Constantin Gonzalez <Constantin.Gonzalez at sun.com> wrote:> > Hi, > > I''m a big fan of live upgrade. I''m also a big fan of ZFS boot. The latter > is > more important for me. And yes, I''m looking forward to both being > integrated > with each other. > > Meanwhile, what is the best way to upgrade a post-b61 system that is > booted > from ZFS? > > > I''m thinking: > > 1. Boot from ZFS > 2. Use Tim''s excellent multiple boot datasets script to create a new > cloned ZFS > boot environment: > http://blogs.sun.com/timf/entry/an_easy_way_to_manage > 3. Loopback mount the new OS ISO image > 4. Run the installer from the loopbacked ISO image in upgrade mode on the > clone > 5. Mark the clone to be booted the next time > 6. Reboot into the upgraded OS. > > > Questions: > > - How exactly do I do step 4? Before, luupgrade did everything for me, now > what manpage do I need to do this? > > - Did I forget something above? I''m ok with losing some logfiles and stuff > that > maybe changed between the clone and the reboot, but is there anything > else? > > - Did someone already blog about this and I haven''t noticed yet? > > > Cheers, > Constantin > > -- > Constantin Gonzalez Sun Microsystems GmbH, > Germany > Platform Technology Group, Global Systems Engineering > http://www.sun.de/ > Tel.: +49 89/4 60 08-25 91 > http://blogs.sun.com/constantin/ > > Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 > Kirchheim-Heimstetten > Amtsgericht Muenchen: HRB 161028 > Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer > Vorsitzender des Aufsichtsrates: Martin Haering > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070525/6adbfcd9/attachment.html>
Lori Alt
2007-May-25 14:26 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Our upgrade story isn''t great right now. In the meantime, you might check out Tim Haley''s blog entry on using bfu with zfs root. http://blogs.sun.com/timh/entry/friday_fun_with_bfu_and lori Constantin Gonzalez wrote:> Hi, > > I''m a big fan of live upgrade. I''m also a big fan of ZFS boot. The latter is > more important for me. And yes, I''m looking forward to both being integrated > with each other. > > Meanwhile, what is the best way to upgrade a post-b61 system that is booted > from ZFS? > > > I''m thinking: > > 1. Boot from ZFS > 2. Use Tim''s excellent multiple boot datasets script to create a new cloned ZFS > boot environment: > http://blogs.sun.com/timf/entry/an_easy_way_to_manage > 3. Loopback mount the new OS ISO image > 4. Run the installer from the loopbacked ISO image in upgrade mode on the clone > 5. Mark the clone to be booted the next time > 6. Reboot into the upgraded OS. > > > Questions: > > - How exactly do I do step 4? Before, luupgrade did everything for me, now > what manpage do I need to do this? > > - Did I forget something above? I''m ok with losing some logfiles and stuff that > maybe changed between the clone and the reboot, but is there anything else? > > - Did someone already blog about this and I haven''t noticed yet? > > > Cheers, > Constantin > >
Constantin Gonzalez
2007-May-25 14:29 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Hi,> Our upgrade story isn''t great right now. In the meantime, > you might check out Tim Haley''s blog entry on using > bfu with zfs root.thanks. But doesn''t live upgrade just start the installer from the new OS DVD with the right options? Can''t I just do that too? Cheers, Constantin> > http://blogs.sun.com/timh/entry/friday_fun_with_bfu_and > > lori > > Constantin Gonzalez wrote: >> Hi, >> >> I''m a big fan of live upgrade. I''m also a big fan of ZFS boot. The >> latter is >> more important for me. And yes, I''m looking forward to both being >> integrated >> with each other. >> >> Meanwhile, what is the best way to upgrade a post-b61 system that is >> booted >> from ZFS? >> >> >> I''m thinking: >> >> 1. Boot from ZFS >> 2. Use Tim''s excellent multiple boot datasets script to create a new >> cloned ZFS >> boot environment: >> http://blogs.sun.com/timf/entry/an_easy_way_to_manage >> 3. Loopback mount the new OS ISO image >> 4. Run the installer from the loopbacked ISO image in upgrade mode on >> the clone >> 5. Mark the clone to be booted the next time >> 6. Reboot into the upgraded OS. >> >> >> Questions: >> >> - How exactly do I do step 4? Before, luupgrade did everything for me, >> now >> what manpage do I need to do this? >> >> - Did I forget something above? I''m ok with losing some logfiles and >> stuff that >> maybe changed between the clone and the reboot, but is there >> anything else? >> >> - Did someone already blog about this and I haven''t noticed yet? >> >> >> Cheers, >> Constantin >> >> >-- Constantin Gonzalez Sun Microsystems GmbH, Germany Platform Technology Group, Global Systems Engineering http://www.sun.de/ Tel.: +49 89/4 60 08-25 91 http://blogs.sun.com/constantin/ Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering
Lori Alt
2007-May-25 14:30 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Constantin Gonzalez wrote:> Hi, > > >> Our upgrade story isn''t great right now. In the meantime, >> you might check out Tim Haley''s blog entry on using >> bfu with zfs root. >> > > thanks. > > But doesn''t live upgrade just start the installer from the new OS > DVD with the right options? Can''t I just do that too? >I''ll look at it and see if I can give you a better recommendation. I don''t want to give you bad advice. I might have more information later today. Lori> Cheers, > Constantin > > >> http://blogs.sun.com/timh/entry/friday_fun_with_bfu_and >> >> lori >> >> Constantin Gonzalez wrote: >> >>> Hi, >>> >>> I''m a big fan of live upgrade. I''m also a big fan of ZFS boot. The >>> latter is >>> more important for me. And yes, I''m looking forward to both being >>> integrated >>> with each other. >>> >>> Meanwhile, what is the best way to upgrade a post-b61 system that is >>> booted >>> from ZFS? >>> >>> >>> I''m thinking: >>> >>> 1. Boot from ZFS >>> 2. Use Tim''s excellent multiple boot datasets script to create a new >>> cloned ZFS >>> boot environment: >>> http://blogs.sun.com/timf/entry/an_easy_way_to_manage >>> 3. Loopback mount the new OS ISO image >>> 4. Run the installer from the loopbacked ISO image in upgrade mode on >>> the clone >>> 5. Mark the clone to be booted the next time >>> 6. Reboot into the upgraded OS. >>> >>> >>> Questions: >>> >>> - How exactly do I do step 4? Before, luupgrade did everything for me, >>> now >>> what manpage do I need to do this? >>> >>> - Did I forget something above? I''m ok with losing some logfiles and >>> stuff that >>> maybe changed between the clone and the reboot, but is there >>> anything else? >>> >>> - Did someone already blog about this and I haven''t noticed yet? >>> >>> >>> Cheers, >>> Constantin >>> >>> >>> > >
Constantin Gonzalez
2007-May-25 14:31 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Hi Malachi, Malachi de ?lfweald wrote:> I''m actually wondering the same thing because I have b62 w/ the ZFS > bits; but need the snapshot''s "-r" functionality.you''re lucky, it''s already there. From my b62 machine''s "man zfs": zfs snapshot [-r] filesystem at name|volume at name Creates a snapshot with the given name. See the "Snapshots" section for details. -r Recursively create snapshots of all descendant datasets. Snapshots are taken atomically, so that all recursive snapshots correspond to the same moment in time. Or did you mean send -r? Best regards, Constantin -- Constantin Gonzalez Sun Microsystems GmbH, Germany Platform Technology Group, Global Systems Engineering http://www.sun.de/ Tel.: +49 89/4 60 08-25 91 http://blogs.sun.com/constantin/ Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten Amtsgericht Muenchen: HRB 161028 Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer Vorsitzender des Aufsichtsrates: Martin Haering
Malachi de Ælfweald
2007-May-25 14:52 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
No, I did mean ''snapshot -r'' but I thought someone on the list said that the ''-r'' wouldn''t work until b63... hmmm... Well, realistically, all of us new to this should probably know how to patch our system before we put any useful data on it anyway, right? :) Thanks, Mal On 5/25/07, Constantin Gonzalez <Constantin.Gonzalez at sun.com> wrote:> > Hi Malachi, > > Malachi de ?lfweald wrote: > > I''m actually wondering the same thing because I have b62 w/ the ZFS > > bits; but need the snapshot''s "-r" functionality. > > you''re lucky, it''s already there. From my b62 machine''s "man zfs": > > zfs snapshot [-r] filesystem at name|volume at name > > Creates a snapshot with the given name. See the > "Snapshots" section for details. > > -r Recursively create snapshots of all descendant > datasets. Snapshots are taken atomically, so that > all recursive snapshots correspond to the same > moment in time. > > Or did you mean send -r? > > Best regards, > Constantin > > > -- > Constantin Gonzalez Sun Microsystems GmbH, > Germany > Platform Technology Group, Global Systems Engineering > http://www.sun.de/ > Tel.: +49 89/4 60 08-25 91 > http://blogs.sun.com/constantin/ > > Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 > Kirchheim-Heimstetten > Amtsgericht Muenchen: HRB 161028 > Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland Boemer > Vorsitzender des Aufsichtsrates: Martin Haering >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070525/56caa6b7/attachment.html>
Lin Ling
2007-May-25 17:59 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Malachi de ?lfweald wrote:> No, I did mean ''snapshot -r'' but I thought someone on the list said > that the ''-r'' wouldn''t work until b63... hmmm... >''snapshot -r'' is available before b62, however, ''-r'' may run into a stack overflow (bug 6533813) which is fixed in b63. Lin
Lori Alt
2007-May-31 16:29 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
zfs-boot crowd: I said I''d try to come up with a procedure for liveupgrading the netinstalled zfs-root setup, but I haven''t found time to do so yet (I''m focusing on getting this supported in install for real). So while I hate to retreat into the "I never said you could upgrade this configuration" excuse, that''s what I''m going to do, at least for now. I might get a chance to work on a liveupgrade procedure in the next couple of weeks. In the meantime, if someone else wants to take a shot at it and post the results, go ahead. Lori Malachi de ?lfweald wrote:> No, I did mean ''snapshot -r'' but I thought someone on the list said > that the ''-r'' wouldn''t work until b63... hmmm... > > Well, realistically, all of us new to this should probably know how to > patch our system before we put any useful data on it anyway, right? :) > > Thanks, > Mal > > On 5/25/07, *Constantin Gonzalez* <Constantin.Gonzalez at sun.com > <mailto:Constantin.Gonzalez at sun.com>> wrote: > > Hi Malachi, > > Malachi de ?lfweald wrote: > > I''m actually wondering the same thing because I have b62 w/ the ZFS > > bits; but need the snapshot''s "-r" functionality. > > you''re lucky, it''s already there. From my b62 machine''s "man zfs": > > zfs snapshot [-r] filesystem at name|volume at name > > Creates a snapshot with the given name. See the > "Snapshots" section for details. > > -r Recursively create snapshots of all descendant > datasets. Snapshots are taken atomically, so that > all recursive snapshots correspond to the same > moment in time. > > Or did you mean send -r? > > Best regards, > Constantin > > > -- > Constantin Gonzalez Sun Microsystems > GmbH, Germany > Platform Technology Group, Global Systems > Engineering http://www.sun.de/ > Tel.: +49 89/4 60 08-25 91 > http://blogs.sun.com/constantin/ <http://blogs.sun.com/constantin/> > > Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 > Kirchheim-Heimstetten > Amtsgericht Muenchen: HRB 161028 > Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland > Boemer > Vorsitzender des Aufsichtsrates: Martin Haering > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
Jason King
2007-May-31 18:38 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
I''ve had at least some success (tried it once so far) doing a BFU to cloned filesystem from a b62 zfs root system, I could probably document that if there is interest. I have not tried taking a new ISO and installing the new packages ontop of a cloned fileystem though. On 5/31/07, Lori Alt <Lori.Alt at sun.com> wrote:> > zfs-boot crowd: > > I said I''d try to come up with a procedure for liveupgrading > the netinstalled zfs-root setup, but I haven''t found time to > do so yet (I''m focusing on getting this supported in install > for real). So while I hate to retreat into the "I never said > you could upgrade this configuration" excuse, that''s what > I''m going to do, at least for now. I might get a chance > to work on a liveupgrade procedure in the next couple of > weeks. In the meantime, if someone else wants to take > a shot at it and post the results, go ahead. > > Lori > > Malachi de ?lfweald wrote: > > No, I did mean ''snapshot -r'' but I thought someone on the list said > > that the ''-r'' wouldn''t work until b63... hmmm... > > > > Well, realistically, all of us new to this should probably know how to > > patch our system before we put any useful data on it anyway, right? :) > > > > Thanks, > > Mal > > > > On 5/25/07, *Constantin Gonzalez* <Constantin.Gonzalez at sun.com > > <mailto: Constantin.Gonzalez at sun.com>> wrote: > > > > Hi Malachi, > > > > Malachi de ?lfweald wrote: > > > I''m actually wondering the same thing because I have b62 w/ the > ZFS > > > bits; but need the snapshot''s "-r" functionality. > > > > you''re lucky, it''s already there. From my b62 machine''s "man zfs": > > > > zfs snapshot [-r] filesystem at name|volume at name > > > > Creates a snapshot with the given name. See the > > "Snapshots" section for details. > > > > -r Recursively create snapshots of all descendant > > datasets. Snapshots are taken atomically, so that > > all recursive snapshots correspond to the same > > moment in time. > > > > Or did you mean send -r? > > > > Best regards, > > Constantin > > > > > > -- > > Constantin Gonzalez Sun Microsystems > > GmbH, Germany > > Platform Technology Group, Global Systems > > Engineering http://www.sun.de/ > > Tel.: +49 89/4 60 08-25 91 > > http://blogs.sun.com/constantin/ <http://blogs.sun.com/constantin/ > > > > > Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 > > Kirchheim-Heimstetten > > Amtsgericht Muenchen: HRB 161028 > > Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland > > Boemer > > Vorsitzender des Aufsichtsrates: Martin Haering > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > zfs-discuss mailing list > > zfs-discuss at opensolaris.org > > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20070531/ffaa32c5/attachment.html>
Tim Foster
2007-May-31 19:35 UTC
[zfs-discuss] ZFS boot: Now, how can I do a pseudo live upgrade?
Jason King wrote:> I''ve had at least some success (tried it once so far) doing a BFU to > cloned filesystem from a b62 zfs root system, I could probably document > that if there is interest.Yep, been there too, weather''s nice :-) http://blogs.sun.com/timf/entry/an_easy_way_to_manage (and previously http://blogs.sun.com/timf/entry/zfs_mountrootadm )> I have not tried taking a new ISO and installing the new packages ontop > of a cloned fileystem though.I seem to remember trying something like that before, didn''t work. I suspect there''s more to it than that unfortunately - would love to have the time to play about more with upgrade hacks. cheers, tim> > On 5/31/07, *Lori Alt* < Lori.Alt at sun.com <mailto:Lori.Alt at sun.com>> wrote: > > zfs-boot crowd: > > I said I''d try to come up with a procedure for liveupgrading > the netinstalled zfs-root setup, but I haven''t found time to > do so yet (I''m focusing on getting this supported in install > for real). So while I hate to retreat into the "I never said > you could upgrade this configuration" excuse, that''s what > I''m going to do, at least for now. I might get a chance > to work on a liveupgrade procedure in the next couple of > weeks. In the meantime, if someone else wants to take > a shot at it and post the results, go ahead. > > Lori > > Malachi de ?lfweald wrote: > > No, I did mean ''snapshot -r'' but I thought someone on the list said > > that the ''-r'' wouldn''t work until b63... hmmm... > > > > Well, realistically, all of us new to this should probably know how to > > patch our system before we put any useful data on it anyway, > right? :) > > > > Thanks, > > Mal > > > > On 5/25/07, *Constantin Gonzalez* <Constantin.Gonzalez at sun.com > <mailto:Constantin.Gonzalez at sun.com> > > <mailto: Constantin.Gonzalez at sun.com > <mailto:Constantin.Gonzalez at sun.com>>> wrote: > > > > Hi Malachi, > > > > Malachi de ?lfweald wrote: > > > I''m actually wondering the same thing because I have b62 w/ > the ZFS > > > bits; but need the snapshot''s "-r" functionality. > > > > you''re lucky, it''s already there. From my b62 machine''s "man zfs": > > > > zfs snapshot [-r] filesystem at name|volume at name > > > > Creates a snapshot with the given name. See the > > "Snapshots" section for details. > > > > -r Recursively create snapshots of all descendant > > datasets. Snapshots are taken atomically, so that > > all recursive snapshots correspond to the same > > moment in time. > > > > Or did you mean send -r? > > > > Best regards, > > Constantin > > > > > > -- > > Constantin Gonzalez Sun Microsystems > > GmbH, Germany > > Platform Technology Group, Global Systems > > Engineering http://www.sun.de/ > > Tel.: +49 89/4 60 08-25 91 > > http://blogs.sun.com/constantin/ > <http://blogs.sun.com/constantin/> <http://blogs.sun.com/constantin/ > <http://blogs.sun.com/constantin/>> > > > > Sitz d. Ges.: Sun Microsystems GmbH, Sonnenallee 1, 85551 > > Kirchheim-Heimstetten > > Amtsgericht Muenchen: HRB 161028 > > Geschaeftsfuehrer: Marcel Schneider, Wolfgang Engels, Dr. Roland > > Boemer > > Vorsitzender des Aufsichtsrates: Martin Haering > > > > > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > zfs-discuss mailing list > > zfs-discuss at opensolaris.org <mailto:zfs-discuss at opensolaris.org> > > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > <http://mail.opensolaris.org/mailman/listinfo/zfs-discuss> > > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org <mailto:zfs-discuss at opensolaris.org> > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss > > > > ------------------------------------------------------------------------ > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Tim Foster, Sun Microsystems Inc, Solaris Engineering Ops http://blogs.sun.com/timf