What I know about how ZFS actually handles spare disksLike many other RAID-oid systems, ZFS has a notion of spare disks;
you can add one or more spare disks to a pool, and ZFS will use them
as necessary in order to maintain pool redundancy in the face of disk
problems. For details, you can see the Well, sort of. Actually, how ZFS handles spare disks is significantly
different from how normal RAID systems handle them, and the pleasantly
bland and normal description of spares in the In a traditional RAID system with spares, spare handling is part of
the main RAID code in the kernel, with spares activated automatically
when needed. In Solaris this is not the case; the only thing that the
kernel ZFS code does is keep track of the list of spares and some state
information about them. Activating a spare is handled by user-level
code, which issues the equivalent of ' (Once zfs-retire activates the spare, the ZFS kernel code handles the
rest of the process, including marking the spare in use and setting up
the special 'this device is replaced with a spare' vdev. This means
that you can duplicate a spare activation by doing a ' In theory, using My primary sources for all of this are this Eric Shrock entry and the archives of the zfs-discuss mailing list. Examination of the OpenSolaris codebase has also been useful (although if you are tempted to do this, beware; it does not necessarily correspond with Solaris 10). Sidebar: what is required for spare activationIn order for a spare to be activated, a great many moving parts of your system have to all be working right. I feel like writing them down (at least the ones that I can think of):
A further side note on events: in an ideal world, there would be a 'ZFS vdev <X> has been degraded because of device <Y>' event that zfs-retire would listen for. If you think that Solaris lives in this world, I have bad news for you. (One comment.)
|
These are my WanderingThoughts GettingAround This is part of CSpace, and is written by ChrisSiebenmann. * * * Atom feeds are available; see the bottom of most pages. Categories: links, linux, programming, python, snark, solaris, spam, sysadmin, tech, unix, web |