29 December, 2004

Solaris, solaris, solaris!

Boy, I have gotten rusty on my Solaris skills. Been doing a lot of lvm. I guess I had just gotten used to the linux lvm, which at the time, was suitably different from solaris lvm that I guess I wound up forgetting everything.

I'm not really sure how you'd set up an lvm mirror of your root disk in linux, and then subsequently boot off it. I know how I'd go and create a logical (mirrored) volume that looks just like root, but I suspect I couldn't boot off it. In solaris, we do:

metadb -af [whatever]
metainit -f d11 1 1 c1t0d0s0
metainit -f d12 1 1 c1t1d0s0
metainit d1 -m d11
metaroot d1
lockfs -fa
reboot
metattach d1 d12

where c1t0d0s0 is of course root and c1t1d0s0 is the mirror.

That, to me doesn't look particularly intuitive. I'm much happier with the vgcreate/pvcreate/lvcreate/e2fsadm approach. However, Sun's meta* commands have been around a lot longer, and I think there's been a sort of "lvm renaissance" since Sun started doing it. I'm anxious to see the Solaris 10 approach. In their defense, the sccli commands are somewhat more intuitive.

Lesson learned: if I don't keep my skills sharp (eg spend a year in a linux shop), they wither. I should probably avoid doing this in the future. On the other hand, having big piles of hardware in my living room sucked a whole lot.