«前の日記(Monday 23 November, 2009 ) 最新 次の日記(Sunday 06 December, 2009 )» 編集

ここに日記はありません


Tuesday 24 November, 2009 [長年日記]

_ [PC][BSD] 仕事サーバーのOS Upgrade

FreeBSDで動かしているLinux emulationは現在のデフォルトであるlinux_base-fc4であるがこれをUpgradeしてみるテスト。/usr/ports/UPDATINGSには
20090401:
  AFFECTS: users of linux Fedora 8 infrastructure ports
  AUTHOR: bsam@FreeBSD.org
 
  ATTENTION! Those ports are not default for any version of FreeBSD for now
  and may be used with FreeBSD versions 7.2 and above (8-CURRENT is better)
  using compat.linux.osrelease=2.6.16 and linux_base-f8. Please, note that
  2.6.16 is not fully supported on 7.x (ex., some syscalls are missing
  and cannot be MFCed due to a native FreeBSD ABI breakage).
 
  For more information about transition please read item "20070327: AFFECTS:
  users of emulators/linux_base-fc6". That note may be used for upgrading
  to linux_base-f8 and linux Fedora 8 infrastructure ports as well.
 
  If you want to switch to linux-f8 ports, please define at /etc/make.conf:
 
        OVERRIDE_LINUX_BASE_PORT=f8
        OVERRIDE_LINUX_NONBASE_PORTS=f8
とあるので職場で使っている勝手サーバーでやってみることにした。 とりあえず20070327の記述にある
1. Make sure there are no running linux applications.
  2. Unmount linprocfs (umount /compat/linux/proc)
  3. Uninstall your current linux_base port
  4. Set appropriate sysctl (sysctl compat.linux.osrelease=2.6.16)
  5. Install emulators/linux_base-fc6
  6  Remount linprocfs (mount /compat/linux/proc)
  7. Add compat.linux.osrelease=2.6.16 to etc/sysctl.conf
  8. Add OVERRIDE_LINUX_BASE_PORT=fc6 to /etc/make.conf
で"fc6"のところを"f10"にして作業を済ませる。動作確認は後でやろう。 ついでにまだ正式アナウンスは無いが、FreeBSDの8.0-RELEASEが出たようなので8.0-RELEASEに上げてみる。
tag=RELENG_8_0_0_RELEASE
を指定してcsupする。そのまま
% make buildworld && make buildkernel 
を実行する。
% make installkernel
(reboot)
% make installworld
% mergemaster
と通常の手順で
% uname -srpi
FreeBSD 8.0-RELEASE i386 GENERIC
と無事に終了した。

_ [Book] 購入/ソムリエ・ワインアドバイザー・ワインエキスパート 日本ソムリエ協会教本〈2009〉

https://www.amazon.co.jp/dp/4780100321

ENOTECA Online(ワイン通販 エノテカ・オンライン) 29980円パソコン工房
リンクシェア アフィリエイト紹介プログラム