FreeBSDで、GPT+ZFSを使ってブートする環境を構築したんだけど、だいぶ試行錯誤したので自分用メモ。 実はまだ環境構築終わってないんだけど、とりあえず起動して環境準備はほぼ終わっているのでこれでいいかな。 なにせ、ufs+ZFSでブートするとか、GPTの話は探すとあるんだけど、GPT+ZFSで環境を1から仕込み、さらにいろいろとやろうとすると途端に資料がないんだよねー。ってことでメモ書き。 ここでの前提としては、新規のHDDに、USBメモリからFreeBSDを無理やりインストールすることを想定しているので、しくってもいいHDDでやりましょう。現に私も試行錯誤を数日やりましたので。 1. まず、FreeBSD 8か9の環境を準備して、/etc/make.conf に、LOADER_ZFS_SUPPORT=yes とでも書いて、make buildworld & make buildk
前回からの続き。 とりあえず、結論から言うと、データの救出は可能でした。 画像ファイルもほとんどすべて戻ってきました。 よかった! てなわけで、一応最初からまとめた状態で今回のトラブルをまとめてみましょう。 FreeBSD におけるディスククラッシュからの救出のサンプルにはなるでしょう。 また、fsck する部分以外は他の OS でのクラッシュ時も応用がききそうです。 Windows のクラッシュしたディスクも、FreeBSD マシンに接続して、 この方法である程度復旧できる可能性もあるんじゃないかな? 1 年と少し後になりましたが、 このノウハウの応用で BIOS からさえ認識されなくなったディスクから、 Windows XP の NTFS パーティションを救出しました。 詳しくはこちらのページをご覧下さい (2004/03/14 追記) さらにこの辺によると、最近は dd(1) の i
0.カーネルの再構築 quotaはFreeBSDに標準で装備されていますが、オプションという扱いですので、quotaを使用するオプションをカーネルに組み込まなければなりません。つまりカーネルの再構築が必要です。 GENERICをBSとしてコピーして、編集します。 #cd /usr/src/sys/i386/conf #cp GENERIC BS #vi BS # $FreeBSD: src/sys/i386/conf/GENERIC,v 1.246.2.43 2002/05/23 17:04:01 obrien Exp $ machine i386 cpu I386_CPU cpu I486_CPU cpu I586_CPU cpu I686_CPU ident BS maxusers 0 中略 options P1003_1B #Posix P1003_1B real-time exte
2-1. ¼«Æ°µ¯Æ°ÀßÄê † ¡¡½é´ü¾õÂÖ¤Ç¤Ï vsftpd ¤¬Æþ¤Ã¤Æ¤¤¤Æ¤â¡¢¤½¤Î¤Þ¤Þ¤Î¾õÂÖ¤ÇÍѤ¤¤ë¤³¤È¤Ï½ÐÍè¤Þ¤»¤ó¡£ ¡¡chkconfig ¥³¥Þ¥ó¥É¤Ç³Îǧ¤ò¤¹¤ë¤È¡¢ # /sbin/chkconfig --list vsftpd vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off ¡¡¤³¤Î¤è¤¦¤ËÁ´¤Æ¤Î¥é¥ó¥ì¥Ù¥ë¤Ç off ¤Ë¤µ¤ì¤Æ¤¤¤ë»ö¤¬³Îǧ¤Ç¤¤Þ¤¹¡£ ¡¡¥³¥Þ¥ó¥É¡Ú /sbin/chkconfig vsftpd on ¡Û¤ÈÆþÎϤ·¤Æ¡¢¥µ¡¼¥Ðµ¯Æ°»þ¤Ë¼«Æ°¤Ç vsftpd ¥Ç¡¼¥â¥ó¤¬µ¯Æ°¤¹¤ë¤è¤¦¤ËÄ´À°¤·¤Þ¤¹¡£
突然ですが、LS-S250L を入手しました。もちろん普通の NAS として使うきはさらさらありませんので、違う OS を入れて遊んでみたいと思います。 なにぶん初めての経験なので、以下の操作には間違っている箇所があるかもしれません。また動作させるまでには色々な人に助けて頂きました。この場を借りてありがとう。 BUFFALO Link Station Mini 省エネモデル 250GB LS-S250L 出版社/メーカー: バッファロー発売日: 2009/07/02メディア: Personal Computers クリック: 12回この商品を含むブログ (2件) を見る シリアルコンソール 当然ですが、シリアルコンソールがあるとないとでは作業の難易度が段違いです。基板上にはシリアルコンソール用のパターンがあり、玄人志向のシリアルコンソールキットが使えます。コネクタをハンダ付けしてしまいまし
Show Your Support: This site is primarily supported by advertisements. Ads are what have allowed this site to be maintained on a daily basis for the past 19+ years. We do our best to ensure only clean, relevant ads are shown, when any nasty ads are detected, we work to remove them ASAP. If you would like to view the site without ads while still supporting our work, please consider our ad-free Phor
Ubuntu Linux+Xenを試してみる過程でsparse fileの存在を知ったので、少し調べてみました。結論としては、VMwareのようにVM側で圧縮したディスクイメージを扱える場合は別として、現状のcoLinuxやXenではディスクスペースの節約手段としてsparse fileの利用が有効そうです (coLinuxの場合は「圧縮ファイル」の方が良いかも)。 Sparse fileについての情報源 UNIXの部屋 検索:穴あきファイル: sparse file全般の説明と落し穴、Perlのseek()によるsparse file作成方法 TRPG: memo - sparse file: ddコマンド、RubyのFile#trancateによるsparse fileの作成 Did you ever wonder how some files got bigger when copi
前回、ノートPCのハードディスクをSSDに変えて、2週間くらい概ね順調に軽快に動作していましたが、やはりプチフリらしき動作が散見されました。 大体発生後、長い時で30秒くらい操作が止まる感じがあります。 そんな中、Microsoftがフリーソフトとして提供しているSteadyStateというソフトをインストールするとよいというSSDメーカの1つのフォーラムにたどりつきました。 このソフトは、元々公共施設に置くPCは、当然誰彼ともなく使うわけですが、不特定多数の人が行った更新をリブート後、元に戻すしくみを提供するためにつくられたようです。 要するにディスクへの書き込みをフックして、キャッシュファイルに一度書いてから、本当のディスクに反映させるという仕組みです。 オプションとして、リブート時に書き込み内容を捨てるのではなく、その都度本当のディスクに書き込むモードも用意されています。 つまり、こ
2008年第4四半期に発売されるSSDについての情報をまとめておきます(一部8月中に発売されたものも含む)。 製品はすべて2.5インチSATAタイプです。また、保証期間はリテール品のものです。バルク品の保証はそれより短いので注意してください。 なお、一覧表のRead/Writeの表はメーカが公表しているシーケンシャルリード・ライトの値です。 以前は価格情報を記していましたが、管理人は基本的に無精な上にSSDは値動きが激しいので、最新の価格が分かるようにBestgateへのリンクに変更しました。 用語やSSDの特性についての解説は、前回のエントリをご覧ください。 随時更新予定です。誤植の指摘や情報提供などしていただけるとありがたいです。 *11月22日 全面的に書き換え。 *12月6日 JMF602軍団の追加と、OCZ・Photofastの新型情報を追加。 *12月15日 OCZ,Photo
Mac OS Xの「Time Machine」バックアップはすこぶる便利です。機能としては非常に使いやすいのですが、容量を使い切るまでバックアップを続けるので、古いデータは削除したいな、と思いました。 最初、ハードディスクから直接、該当するファイルをゴミ箱に入れてみたのですが、なんだかとても「Time Machine」の調子が悪くなってしまったので何か方法があるはず、と思ったら、やっばりありました。 削除したいデータのところで↑の画面のようにアイコンをクリックすると「バックアップを削除」というメニューが出てきますので、これで削除が可能です。 またはファイルを選択しておくと、それだけ削除するということも可能です。 なんだかTimeMachineで“○○に保存するためのアクセス権がありません”と表示されバックアップできない問題というエントリーも書いたのですが、まだ調子が悪い感じなんですよねー。
NTFS-3Gプロジェクトは22日 (米国時間)、オープンソースのNTFSドライバ最新版「NTFS-3G 2009.1.1」をリリースした。対応プラットフォームはLinuxやMac OS Xなど各種UNIX系OS、動作にはユーザランドファイルシステムのFUSE、およびMacFUSEなどの移植版が必要。 バージョン命名ルールの変更後初のリリースとなる今回は、ビルトインの機能としてUTF-8の透過変換を実装。これまでマウント時に指定していた「locale=」は必要なくなり、常にUTF-8が使用されるよう仕様が変更された。一部のファイルにアクセスできないことがあるなど、マルチバイト文字を含むファイル名に起因する問題も解決されている。 Mac OS Xへの対応も強化。タイムスタンプ機能がサポートされ、ファイル作成時における日付設定や作成後の日付情報取得が可能になった。 NTFS-3Gは、FUSE
使うな まぁうちの使い方が、ソフトウェアRAID + LVM + Xen + JFSという使い方だからかも知れないけど。こう書くと変態的な構成に見えるけど、やってみればことさらに変わった構成ではないと思う。要するにXenの上でJFSを動かしているだけだし、RAIDやLVMなんてのも、仮想化する環境にはありがちの構成だろうし。てか、CPUを仮想化したら、ディスクも仮想化しとかないとメリット半減どころじゃないよ。仮想化環境のボリュームをファイルで構成する時も、そのファイルが載ってるボリュームはLVMにしといた方が、いろいろ都合がいい。だいたいsnap shotが取れるということだけでも、運用をいろいろ楽にする。 で、この組合せだと、高負荷をかけた時にJFSが破壊される。ズタズタって程じゃないけど、いくつかのファイルが飛んでファイルシステムがリードオンリーになるということが、突発的に発生する。何
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く