Re: lost network during freebsd-update install
Bas Smeelen wrote: It would be nice if freebsd-update had the same command sequence (without the build parts) as in a source upgrade. First fetch of course, then freebsd-update installkernel with a message to reboot on succes or rollback on failure, then after reboot freebsd-update installworld, with a check if the new kernel is actually loaded, after that and rebuilding ports freebsd-update delete-old-libs This is not helpful directly, but zfs to the rescue in these circumstances. It makes updates and early/deep boot failures a lot easier to recover from. Transactional binary updates is a very nice thing ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 03/10/2011 04:24 PM, Tom Worster wrote: > before resorting to cd. Hi, I've read your last post, this sucks. I missed a point which you have thought about (see below) The best thing would have been either rollback or reboot and continue, see below. > the handbook describes a procedure: > > A) 1st freebsd-update install: The kernel and kernel modules will be > patched > > B) reboot > > C) 2nd freebsd-update install: The state of the process has been saved and > thus,freebsd-update will not start from the beginning, but will remove all > old shared libraries and object files > > > i'm just guessing... A) did not complete because its shell exited. i was > left with a half-patched kernel. when i did "freebsd-update install" > again, instead of doing A) over from scratch, it attempted C) and started > dumping cores all over the carpet. result: system can't get the kernel up > properly. > > or another guess... A) did complete while i was disconnected. when i > repeated "freebsd-update install" it attempted C) but because the old > kernel was still running it didn't work and started dumping cores all over > the carpet. result: system hangs attempting to start some userland part. I guess you're right here. When ssh disconnects the shell does not immediatly exit, it takes some minutes. So freebsd-update succesfully installed the kernel and when you got connected again and ran install the second time it tried to install a new userland on top of the old running kernel which in case of this major version upgrade did not work. Why so much stuff is missing though is not clear to me, I would think that freebsd-update just overwrites the old binaries. > it seems a pity now that freebsd-update chose to use the same command verb > for both A and C. It would be nice if freebsd-update had the same command sequence (without the build parts) as in a source upgrade. First fetch of course, then freebsd-update installkernel with a message to reboot on succes or rollback on failure, then after reboot freebsd-update installworld, with a check if the new kernel is actually loaded, after that and rebuilding ports freebsd-update delete-old-libs I would like to know how others think about this approach, or am I thinking completely wrong here? > real hw. > > i'm considering going to the clouds. i could easily restore from a vm > snapshot. but for that i need to learn linux, another big time sink. > > add votes here: > http://feedback.rackspacecloud.com/forums/71021-product-feedback/suggestion > s/989519-create-a-freebsd-image Voted. I run FreeBSD on real hardware and in virtual machines, both work fine over the years. Hope you have your server up and running again and from your posts I trust you have good backups and a reliable fast way to restore. DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. If you have received it by mistake please let us know by reply and then delete it from your system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 3/10/11 12:48 PM, "Jason Helfman" wrote: >Good idea. Rollback does work, and has worked for me in a very similar >situation, and hopefully will work for you as well. After the rollback, >reboot, and start again from your initial upgrade command. I would highly >recommend using tmux, and also installing a remote console/management card >for your system so you can control it remotely. The cost of the card is >probably less than remote-hands cost on one support call. so my support person called and said that it did boot to single user mode but was in a dreadful mess and rollback didn't work. loads of really basic programs, stuff that freebsd-update uses, were missing, like id(1). oh well. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On Thu, Mar 10, 2011 at 10:24:30AM -0500, Tom Worster thus spake: On 3/10/11 9:13 AM, "Bas Smeelen" wrote: On 03/10/2011 03:03 PM, Tom Worster wrote: at this stage, i have no remote access. even if i could gain access, i wouldn't know what state it's in or how to proceed. it's probably best now to pay for the hosting company to install 8.1 from cd. Well if this is an option. But before paying and with a bit of bad luck getting the same problem in 8.1 it would be nice to know what's the cause. You do not have remote console access and a way to mount a virtual cdrom? no. if i can't ssh then i need local help. i'll ask them to try rollback before resorting to cd. Good idea. Rollback does work, and has worked for me in a very similar situation, and hopefully will work for you as well. After the rollback, reboot, and start again from your initial upgrade command. I would highly recommend using tmux, and also installing a remote console/management card for your system so you can control it remotely. The cost of the card is probably less than remote-hands cost on one support call. -jgh -- Jason Helfman System Administrator experts-exchange.com http://www.experts-exchange.com/M_4830110.html E4AD 7CF1 1396 27F6 79DD 4342 5E92 AD66 8C8C FBA5 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 3/10/11 9:13 AM, "Bas Smeelen" wrote: >On 03/10/2011 03:03 PM, Tom Worster wrote: >>at this stage, i have no remote access. even if i could gain access, i >>wouldn't know what state it's in or how to proceed. it's probably best >>now >>to pay for the hosting company to install 8.1 from cd. >Well if this is an option. But before paying and with a bit of bad luck >getting the same problem in 8.1 it would be nice to know what's the cause. >You do not have remote console access and a way to mount a virtual cdrom? no. if i can't ssh then i need local help. i'll ask them to try rollback before resorting to cd. >It sounds more like kernel and userland are not in sync or something else. >This shouldn't be a problem caused by freeb-update though. the handbook describes a procedure: A) 1st freebsd-update install: The kernel and kernel modules will be patched B) reboot C) 2nd freebsd-update install: The state of the process has been saved and thus,freebsd-update will not start from the beginning, but will remove all old shared libraries and object files i'm just guessing... A) did not complete because its shell exited. i was left with a half-patched kernel. when i did "freebsd-update install" again, instead of doing A) over from scratch, it attempted C) and started dumping cores all over the carpet. result: system can't get the kernel up properly. or another guess... A) did complete while i was disconnected. when i repeated "freebsd-update install" it attempted C) but because the old kernel was still running it didn't work and started dumping cores all over the carpet. result: system hangs attempting to start some userland part. it seems a pity now that freebsd-update chose to use the same command verb for both A and C. >Maybe someone has a clue about this? >Is this on real hardware or hosted in a virtual machine setup? real hw. i'm considering going to the clouds. i could easily restore from a vm snapshot. but for that i need to learn linux, another big time sink. add votes here: http://feedback.rackspacecloud.com/forums/71021-product-feedback/suggestion s/989519-create-a-freebsd-image >I haven't have this happen with about 30 servers the last three years >going >from 6 to 7 and to 8, the latter with freebsd-update, rebooting with >GENERIC >and then building a custom kernel. i haven't done so many but i've had good luck with freebsd-update in the past too. but i haven't had the network fail during the process before. and i didn't have the foresight to use screen. i guess using that is a bit like following the admonitions when reflashing your firmware to have a fully charged battery AND be plugged into the wall. perhaps the handbook could suggest it. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On Thu, Mar 10, 2011 at 2:54 PM, Bas Smeelen wrote: > On 03/10/2011 02:37 PM, Tom Worster wrote: > BTW Yes I mean sysutils/screen > There is also TMUX http://www.freshports.org/sysutils/tmux/ ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 03/10/2011 03:03 PM, Tom Worster wrote: > at this stage, i have no remote access. even if i could gain access, i > wouldn't know what state it's in or how to proceed. it's probably best now > to pay for the hosting company to install 8.1 from cd. Well if this is an option. But before paying and with a bit of bad luck getting the same problem in 8.1 it would be nice to know what's the cause. You do not have remote console access and a way to mount a virtual cdrom? It sounds more like kernel and userland are not in sync or something else. This shouldn't be a problem caused by freeb-update though. Maybe someone has a clue about this? Is this on real hardware or hosted in a virtual machine setup? I haven't have this happen with about 30 servers the last three years going from 6 to 7 and to 8, the latter with freebsd-update, rebooting with GENERIC and then building a custom kernel. DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. If you have received it by mistake please let us know by reply and then delete it from your system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
at this stage, i have no remote access. even if i could gain access, i wouldn't know what state it's in or how to proceed. it's probably best now to pay for the hosting company to install 8.1 from cd. On 3/10/11 8:54 AM, "Bas Smeelen" wrote: >On 03/10/2011 02:37 PM, Tom Worster wrote: >> freebsd-update install >> Installing updates...Bad system call (core dumped) >But your server is running and other services are ok? > >Is your kernel still 7.1 ? >I guess it should be. (uname -a) > >Looks like either a newer version of freebsd-update already got installed >which is not compatible with some library or the other way around. >I have never gone from 7.1 to 8.1 directly and I haven't lost my >connection >during the updates. > >Does freebsd-update rollback work? >I guess maybe not but it's worth a try. > >Then it's time to dive into the exact workings of freebsd-update when >going >from 7.1 to 8.1 I guess. > > >BTW Yes I mean sysutils/screen > > >DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, >disclosure, copying, >distribution or reliance on any of it by anyone else is prohibited. If >you have received it >by mistake please let us know by reply and then delete it from your >system. > >___ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to >"freebsd-questions-unsubscr...@freebsd.org" ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 03/10/2011 02:37 PM, Tom Worster wrote: > freebsd-update install > Installing updates...Bad system call (core dumped) But your server is running and other services are ok? Is your kernel still 7.1 ? I guess it should be. (uname -a) Looks like either a newer version of freebsd-update already got installed which is not compatible with some library or the other way around. I have never gone from 7.1 to 8.1 directly and I haven't lost my connection during the updates. Does freebsd-update rollback work? I guess maybe not but it's worth a try. Then it's time to dive into the exact workings of freebsd-update when going from 7.1 to 8.1 I guess. BTW Yes I mean sysutils/screen DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. If you have received it by mistake please let us know by reply and then delete it from your system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 3/10/11 8:01 AM, "Bas Smeelen" wrote: >On 03/10/2011 01:52 PM, Tom Worster wrote: >>i was upgrading a remote machine from 7.1 to 8.1 with freebsd-update. >> >>the "freebsd-update -r 8.1-RELEASE upgrade" phase was complete and i had >>given: >> >># freebsd-update install >>Installing updates... >> >>when the wifi on my local computer went away. eventually i restarted the >>wifi interface but the ssh session didn't recover. >> >> >>i don't know if the freebsd-update command completed or not. or how to >>find out. and if it did not, what to do next. >> >>i'd be most grateful for any help. >>tom >You should be able to connect to your server (new ssh session) because at >this stage freebsd-update is installing the new kernel. >Then just repeat the freebsd-update install step and you should be fine >and >continue with it following the steps listed in the handbook doesn't look good: # freebsd-update install Installing updates...Bad system call (core dumped) Bad system call (core dumped) Bad system call (core dumped) Bad system call (core dumped) ... and the terminal buffer is filling up with those fast. >Also screen (1) can be your friend for doing things on remote servers. do you mean ports/sysutils/screen ? ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
Re: lost network during freebsd-update install
On 03/10/2011 01:52 PM, Tom Worster wrote: > i was upgrading a remote machine from 7.1 to 8.1 with freebsd-update. > > the "freebsd-update -r 8.1-RELEASE upgrade" phase was complete and i had > given: > > # freebsd-update install > Installing updates... > > when the wifi on my local computer went away. eventually i restarted the > wifi interface but the ssh session didn't recover. > > > i don't know if the freebsd-update command completed or not. or how to > find out. and if it did not, what to do next. > > i'd be most grateful for any help. > tom You should be able to connect to your server (new ssh session) because at this stage freebsd-update is installing the new kernel. Then just repeat the freebsd-update install step and you should be fine and continue with it following the steps listed in the handbook Also screen (1) can be your friend for doing things on remote servers. DISCLAIMER: This e-mail is for the intended recipient(s) only. Access, disclosure, copying, distribution or reliance on any of it by anyone else is prohibited. If you have received it by mistake please let us know by reply and then delete it from your system. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"
lost network during freebsd-update install
i was upgrading a remote machine from 7.1 to 8.1 with freebsd-update. the "freebsd-update -r 8.1-RELEASE upgrade" phase was complete and i had given: # freebsd-update install Installing updates... when the wifi on my local computer went away. eventually i restarted the wifi interface but the ssh session didn't recover. i don't know if the freebsd-update command completed or not. or how to find out. and if it did not, what to do next. i'd be most grateful for any help. tom ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "freebsd-questions-unsubscr...@freebsd.org"