Re: Upgrading in the same RELENG without shutdown ?



From what I have read so far I guess I'll stick to the 'classic' procedure and boot in single user to do the merging things.

A little trip to my Data Center //


Thanks.

Le 16 oct. 06 à 20:01, david coder a écrit :

i save myself some time by removing files from subdirectories of / etc whose
contents i never modify, & using the "-i" option to mergemaster the 2nd time.
you might (or might not) find the following scripts useful, edited to meet
your needs (the 2nd is obviously intended to be run in single-user):

# cat buildsys
rm -rf /usr/obj && \
cd /usr/src && \
make buildworld && \
make kernel KERNCONF=KEROUAC

# cat installsys
mount -u / && \
mount -a && \
cd /usr/src && \
mergemaster -p && \
make installworld && \
rm -rf /etc/bluetooth/* && \
rm -rf /etc/defaults/* && \
rm -rf /etc/gnats/* && \
rm -rf /etc/isdn/* && \
rm -rf /etc/mtree/* && \
rm -rf /etc/pam.d/* && \
rm -rf /etc/periodic/* && \
rm -rf /etc/ppp/* && \
rm -rf /etc/rc.d/* && \
rm -rf /etc/security/* && \
rm -rf /etc/skel/* && \
rm -rf /etc/ssl/* && \
mergemaster -i && \
rm -rf /usr/obj/*

i guess it's obvious that the 2nd script is designed to be run in single user
& that the point of concatenating the commands in each script is to stop the
proceedings cold in case there's a failure at any stage.

at the very least, i'd reboot after running the 1st script to make sure the
kernel works. you might have problems w/ a new system & an old kernel.

+++ Jonathan Horne [16/10/06 12:40 -0500]:
Hello,


I have CVS-UP configured to follow RELENG_5_4

I was wondering if there is a way to patch (upgrading from 5.4-
RELEASE-p8 to a higher version) my system without going into the
classic :

# make -j4 buildworld
# make -j4 buildkernel
# make -j4 installkernel
# shutdown now

And booting in single user //

# fsck -p
# mount -u /
# mount -a -t ufs
# swapon -a

# cd /usr/src
# mergemaster -p



My system is in production and I am not onsite so this is a problem
for me to have to boot in single user mode.

Is there a way to keep the system in multi-user mode while doing this ?

And what are the risks if any ?



Sincerly yours.


________________________________________________
????????????????????????????????????????????????
????????????????????????????????????????????????
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
________________________________________________
????????????????????????????????????????????????
????????????????????????????????????????????????

P "Please consider your environmental responsibility before printing
this e-mail"


it can be done, but it is NOT guaranteed safe. i do it, but your might
not be the same as mine. my system is a *low* traffic system, and i am
the only user. the system is however running apache2, mysql, and some
other daemons.

again, your mileage may vary, this is what i do:

1) make buildworld, and make buildkernel.
2) make installkernel
3) cd /usr/src, mergemaster -p, make installworld, mergemaster.
4) reboot.

hth,
jonathan

_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- unsubscribe@xxxxxxxxxxx"

--
David Coder
Network Engineer Emeritus, Verio/NTT
Telluride, CO & Washington, DC _______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- unsubscribe@xxxxxxxxxxx"

________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯
Gregober ---> PGP ID --> 0x1BA3C2FD
bsd @at@ todoo.biz
________________________________________________
«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§«?»¥«?»§
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯

P "Please consider your environmental responsibility before printing this e-mail"


_______________________________________________
freebsd-questions@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: Havent been able to make world in about a year
    ... That's a call to 'script' to run, telling it where to put the resulting ... Could you explain the logic of running mergemaster -p, ... take a look at the handbook for the sequence that things should occur ... He means to run mergemaster -p before make installworld, ...
    (freebsd-questions)
  • Re: error when doing make installworld
    ... because of an error while doing make installworld. ... mergemaster -i and then reboot. ... The filesystem is not mounted in single user mode. ... *** Error code 1 ...
    (freebsd-questions)
  • Re: Upgrading in the same RELENG without shutdown ?
    ... i guess it's obvious that the 2nd script is designed to be run in single user ... cd /usr/src, mergemaster -p, make installworld, mergemaster. ...
    (freebsd-questions)
  • Re: dev/random
    ... crying that their installworld has frozen. ... # reboot to single user ...
    (freebsd-current)
  • Re: Havent been able to make world in about a year
    ... mergemaster -p ... make installworld ... Also I've revised my sequence: ... That's a call to 'script' to run, telling it where to put the resulting ...
    (freebsd-questions)

Quantcast