Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 23 Mar 2006 09:25:13 +0100
From:      "Philippe Lang" <philippe.lang@attiksystem.ch>
To:        <freebsd-questions@freebsd.org>
Subject:   Make installworld in single-user mode all the time?
Message-ID:  <6C0CF58A187DA5479245E0830AF84F421D0AA4@poweredge.attiksystem.ch>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_009D_01C64E5B.B0811D80
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: 7bit

Hi,

I'd like to patch a production server, with about 10 jails, running FreeBSD
6.0 Release, in order to get FreeBSD 6.0-p6.

Since this server is being hosted on a remote location, rebooting in
single-user mode before doing the installworld requires me to move to the
hosting center.

Documentation mentions that a reboot in single-user mode is necessary. But
on the opposite, /usr/src/UPDATING says:

> Also, when doing a major release upgrade, it is required that
> you boot into single user mode to do the installworld.

Since this is no "major release upgrade", does that mean I can do the
installworld in multi-user mode?

I have tested that on a smaller test server yesterday evening, I have even
done the installworld in running jails, and it worked just fine. Was I lucky
maybe?

Does anyone have a definitive guide to update FreeBSD correctly?

Here is what I did:

----------

1) Cleaning
> cd /usr/obj 
> chflags -R noschg * 
> rm -rf 

2) Buildworld & Kernel
> cd /usr/src 
> make buildworld (/usr/src/UPDATING mentions we should avoid the -j option)
> make kernel KERNCONF=<MY_KERNEL_CONF>

4) When doing a major release upgrade:
> reboot in single-user mode
> fsck -p 
> mount -u / 
> mount -a -t ufs 
> swapon -a 
> adjkerntz -i 

6) Installworld
> cd /usr/src 
> mergemaster -p 
> make installworld 
> mergemaster 
 
7) Update jail1
> mergemaster -p -D /usr/jails/my_jail1
> make installworld DESTDIR=/usr/jails/my_jail1
> mergemaster -D /usr/jails/my_jail1
 
8) Update jail2
> mergemaster -p -D /usr/jails/my_jail2
> make installworld DESTDIR=/usr/jails/my_jail2
> mergemaster -D /usr/jails/my_jail2

9) Reboot

----------

Regards,

----------------------------------
Philippe Lang, Ing. Dipl. EPFL
Attik System
rte de la Fonderie 2
1700 Fribourg
Switzerland
http://www.attiksystem.ch

Tel:      +41 (26) 422 13 75 
Fax:      +41 (26) 422 13 76
Email:    philippe.lang@attiksystem.ch

------=_NextPart_000_009D_01C64E5B.B0811D80
Content-Type: application/x-pkcs7-signature;
	name="smime.p7s"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
	filename="smime.p7s"

MIAGCSqGSIb3DQEHAqCAMIACAQExCzAJBgUrDgMCGgUAMIAGCSqGSIb3DQEHAQAAoIII/zCCAocw
ggHwoAMCAQICEFpaIYarXomyBeuKGjRG04swDQYJKoZIhvcNAQEEBQAwYjELMAkGA1UEBhMCWkEx
JTAjBgNVBAoTHFRoYXd0ZSBDb25zdWx0aW5nIChQdHkpIEx0ZC4xLDAqBgNVBAMTI1RoYXd0ZSBQ
ZXJzb25hbCBGcmVlbWFpbCBJc3N1aW5nIENBMB4XDTA1MTIyMDEzNDAyNloXDTA2MTIyMDEzNDAy
NlowZzENMAsGA1UEBBMETGFuZzERMA8GA1UEKhMIUGhpbGlwcGUxFjAUBgNVBAMTDVBoaWxpcHBl
IExhbmcxKzApBgkqhkiG9w0BCQEWHHBoaWxpcHBlLmxhbmdAYXR0aWtzeXN0ZW0uY2gwgZ8wDQYJ
KoZIhvcNAQEBBQADgY0AMIGJAoGBAJsLuUD6Q3LdQfy6UKzYyhLAyhzocE3Lj7oaJLBvFQk0rQHf
j14K6A39OW5pBil2aw/B93JalSJVkasS3FsjAFs1LvQS8xY0mgB2CtthT3FajV0bB424LQdZ2KhG
tHbPEm/68S0ARXlTZaD4I5ixwFX+Zaa0uuPFhWfZems0B7nBAgMBAAGjOTA3MCcGA1UdEQQgMB6B
HHBoaWxpcHBlLmxhbmdAYXR0aWtzeXN0ZW0uY2gwDAYDVR0TAQH/BAIwADANBgkqhkiG9w0BAQQF
AAOBgQA3w0be0GoD+dBCQ0JuV0l2gpBC8KcKaym1zGiRLn7C1ojGuXsw/TShxor7f63H3CUZq+aL
zdLtUpFm4a/L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UEljJ2XxVYN/IZ5/IQNHGXRm1SjYo7/G7pt7
xLShgPmwsQofhKnnUJE6SghxcbgO8bovOzAGVuKt5w4BUlkS9fNLduvPp61958w2ZugBG8ihsn2C
jwIvdIEVnKonM/HUZWit1tpinHMDo/upFRrDibbThk35d509Da8XGscAAAAAAAA=

------=_NextPart_000_009D_01C64E5B.B0811D80--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6C0CF58A187DA5479245E0830AF84F421D0AA4>