InformationPhotography |
Thursday, July 13. 2006Solaris 10 Partitioning, RAID, and ZFSTrackbacks
Trackback specific URI for this entry
No Trackbacks
Comments
Display comments as
(Linear | Threaded)
A few comments.
although it's increasingly common to join /usr and /, it doesn't cause any problems (or any work) to keep them separate. I've been building SunOS/Solaris systems for 15 years, and I always and still insist on separation. I don't recall that partitions need to match exactly for metadisk mirroring, although you get optimal space usage if they do. Maybe this has changed more recently, though. Your prtvtoc | fmthard approach is exactly the ideal way to match VTOCs in Solaris, but only works if the disks have the same capacity and cylinder count (which usually means being the same model). If that's not your situation you can still approximate by interactive partitioning in format(1M), but (as above) your partitions may not be exactly the same size, and some space may be lost. Sun Volume Manager (formerly DiskSuite) is actually quite nice in many respects, although it does require a bit of zombie organ-cranking in the setup commands. But you can easily dash out shell loops for this if you take the right strategy with metadevice naming (for example, using d0-d7 to indicate mirrors for partitions 0-7, and d11 for stripe 1 on SCSI target 1, etc.) I've used DiskSuite to build a disk factory for churning out prebuilt system boot disks, for example. Just insert disk, metattach, sync, metadetach, unplug, repeat. metadbs. You need a quorum (minimum 3) of replicas to operate, but you can install multiple replicas in a single partition. I typically put 3 replicas in slice 7 of each disk in my mirrored root volume set, so there are 6 replicas total, and my system remains sane if I pull one of the disks. Be sure not to mirror the metadb slice. :) But all that aside, yeah: ZFS is really sweet. I'm a dyed-in-the-wool Solaris partisan, but I'm excited to see ZFS becoming available for other platforms, too.
I too used to keep /usr separate from / on Solaris until recently. I discovered if you transfer a Solaris boot disk from one machine to another and the hardware does not match precisely, you can end up in a situation where you can boot and access the root partition, but /usr is unavailable because the symlinks have not been created in /dev It then becomes impossible to do a reconfigure boot, and you have to devise clever ways to repopulate your /dev directory to get your system booted. It's not impossible, but it creates work where it's not necessary.
[same coward here]
Oh, and thanks for the writeup. I like reading howtos.
To make an AMD system (in my case a Sun Fire X2100M2) bootable I also did the following steps;
To /etc/system I added these lines: set md:mirrored_root_flag=1 set md_mirror:md_resync_bufsz = 2048 To /boot/solaris/bootenv.rc: setprop altbootpath '/pci@0,0/pci-ide@5/ide@1/cmdk@0,0:a' Make the partitions on both discs active (format->fdisk).
Great article.
Solaris is still a strange world to me, and i am learning more and more. This bit was great to set up raid on my sunfire V480 .. although i wish i would have read the comments about more than 2 metadbs so i can still function with one disk (the 480 on has room for 2 internal) also, if someone could clarify, what does all the d#'s do? d11, d20 d20, etc ...
If you're doing a new install of Solaris you better use ZFS raid or mirror. Solaris can now boot from a ZFS disk.
|
QuicksearchLexiyntax @ Twitter
Categories |