Disks and LUNs
A disk (or LUN from a SAN) is the basic block device. Solaris presents them with controller/target IDs and slices.
Solaris · Storage Basics in Solaris
Solaris · Lesson 16
Understand disks, slices and device naming. VTOC and EFI labels. Using format utility. Preparing disks for ZFS.
ZFS hides many low-level details, but as a Solaris administrator you still need a clear mental model of disks, labels (VTOC/EFI), slices and device names before you create zpools.
In this lesson, you will learn how to use format, prtvtoc and df to understand your disks and ensure they are safe to use for new pools.
A disk (or LUN from a SAN) is the basic block device. Solaris presents them with controller/target IDs and slices.
Disks are labelled (VTOC or EFI). Labels define slices (s0, s1, s2…) which older tools use; ZFS generally uses whole disk (s2).
ZFS builds zpools on top of one or more whole disks or vdevs. A clean understanding here avoids data loss later.
Use these examples on your lab system to identify free disks for ZFS. Never relabel or destroy disks on production systems without a clear plan and backups.
format is the classic Solaris tool to view disks and labels. Use echo | format when you only want a summary and don’t need the interactive menu.
Older Solaris used VTOC (for smaller disks); modern systems typically use EFI labels for large disks. You can see label type from format or prtvtoc.
Solaris uses controller/target identifiers and slices. ZFS usually uses whole disks (s2) or by-id links from /dev/dsk.
Before using disks for ZFS, make sure they’re not in use by old filesystems, SVM, VXVM, etc. You can double-check with mount, df and format.
format → label or zpool create on a disk unless you are 100% sure it is free. These operations can destroy data.format and zpool status for documentation and recovery.In the next lessons, we will build on this foundation to create zpools and ZFS filesystems confidently.