ZFS and DTrace make management easy

What is ZFS boot file system? In our last article - 3: Package management of OpenSolaris (http://www.thinkit.co.jp/article/82/3/), a new feature adde

Shoji Haraguchi

2008年6月25日 20:00

What is ZFS boot file system?

 In our last article - 3: Package management of OpenSolaris (http://www.thinkit.co.jp/article/82/3/), a new feature added to the OpenSolaris 2008.05. In the last article of this series, I introduce management features, or OpenSolaris 2008.05's standout features.

 OpenSolaris 2008.05 quickly and easily manages Solaris ZFS (ZFS) as the default file system. All files under root (/) can be managed with ZFS, which helped dramatically improve system reliability and scalability.

 ZFS makes it easy to expand file systems simply by adding more hard disk drives, and also allows for extension of storage redundancy (mirroring or RAID-Z). Therefore, developers no longer need to worry about disk space being allocated or the building of partition sizes during initial installation.

 For example, ZFS makes it quicker to take snapshots (backups) of file systems including a boot environment (BE), to roll back a file system, and to create a clone of a file system from a secured snapshot.

 Snapshots guarantee quick recovery from a system or security failure. Unless you have used a ZFS file system with OpenSolaris 2008.05, you will be surprised how quickly it can implement these processes.

File system configuration and administration

 Now, let's look at the OpenSolaris 2008.05 file system illustrated in Figure 1. When OpenSolaris is installed on a hard disk, a ZFS storage pool named rpool is created.

 Two ZFS file systems are created in a storage pool called "rpool": one is a BE consisting of system files under root (/) and the other is a data space (under /export) that can be shared by multiple BEs The /rpool/boot directory that is created independently of these directories contains the GRUB startup menu used to manage multiple BEs.

 The independence of system space including BEs as a file system makes system management more flexible.

 Let me introduce an example of using ZFS to manage a file system. For example, when creating a database that requires large storage capacity, file systems can be managed in a more reliable, system-independent scheme by creating a storage pool with redundancy separately from rpool and building a database file system on it.

 For example, to create a RAID-Z pool, or db_pool storage pool, and a ZFS file system named /db_pool/mysql_data with four hard disks attached to a system, the following can be used. With ZFS, you can easily create highly reliable file systems in this way.

# zpool create -f db_pool raidz c1t1d0 c1t2d0 c1t3do c1t4d0
# zfs create db_pool/mysql_data

人気記事トップ10

人気記事ランキングをもっと見る

企画広告も役立つ情報バッチリ! Sponsored

複雑化するIT基盤を束ね、ハイブリッド環境で"選ぶ自由"と"運用のしやすさ"を両立する 6:35 現場に即応するオンプレミスの「推論基盤」が、AIモデルを業務の成果につなげる 11月26日 6:30 サーバやOSの保守期限、VMware環境の見直しといった節目に考える、Oracle AI Databaseの次期基盤。オンプレ継続・AWS・OCIそれぞれの特性と留意点を整理するWebセミナー 11月19日 16:00 AIエージェントの“見えないリスク”に備えてアイデンティティを「関係」で統制する 11月17日 6:25 AI生成コードをどう安全に使うか――決定論的検証とAutoFixで築く品質保証ワークフロー 11月16日 6:30 デジタル主権時代、データとモデルの持ち方は企業が主体的に定める 11月13日 6:25 ClickHouse Cloudが実現した広告運用SaaS「ATOM」のデータ基盤革新、パフォーマンスを向上しながら、運用負荷とコストを削減 11月11日 6:20 AIで開発が加速する時代、品質保証はどう変わる? Tricentisが示すAIエージェント活用の実像 11月9日 6:45 悪用までの猶予が「1分」に迫るフロンティアAI時代に開発と本番を貫く脆弱性管理が必要 10月29日 8:30 欧州CRA対応とSBOM運用。AI生成コードのOSS混入問題の対策とは ――スニペット単位で検出する「FossID」「Insignary Clarity」によるSBOM運用 9月16日 6:40