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

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 PostgreSQLからTiDBへ、稼働中SaaSで進める段階的DB移行の実践と再設計への展望 9月7日 6:30 機能安全開発におけるGoogleTestの活用を支援!「Parasoft C/C++test CT」で実現する効率化&AI連携 4月14日 6:30 【CNDW2025】Grafanaが明かす「オブザーバビリティの哲学」ー最小限の労力で実用的なインサイトを得るには 1月23日 6:30 【CNDW2025】プロダクト急増に備える基盤刷新 ーウェルスナビがECSからEKSへの移行で得た知見とは 1月15日 6:30 【CNDW2025】250環境を5人で運用、構築時間は30分に ーKINTOテクノロジーズが語るインフラ基盤組織の作り方 2025年12月18日 6:30 新たな自動化で熱視線! AIエージェントの「推論能力」を支える2つのコンポーネントとは? 2025年11月28日 6:30