reddragdiva: (Default)
[personal profile] reddragdiva

(If you're not a geek, the text below translates as "axle-maxle manglebratic geeble-geep.")

We have a shiny new T5120! Just getting the thing set up yesterday was a locked-room mystery — you have to set it up on the serial console, and the IT guy spent ages finding a USB serial adapter for his laptop. (No, SPARCs don't take KVMs. But thanks for providing one. Serial please kthx. Network management is way cool too.) But we got it up and running.

We're using the factory installation of Solaris 10 5/09. We're not bothering to wipe and reinstall, though I'm sorely tempted. The default installation is a 12GiB UFS / on c1t0d0s0 and an 8GiB swap on c1t0d0s1. The rest of c1t0d0 (a 146GB disk) is unused, as is c1t1d0. We also put in two more 146GB disks, c1t2d0 and c1t3d0.

We wanted to ZFS it as mirrors. So, on c1t0d0 and c1t1d0 I set up a 16GB rootpool, 30GB usrpool, 16GB varpool and the remaining 66GB as exportpool (which I'll attach c1t2d0 and c1t3d0 to at my leisure). Moved / to the rootpool successfully, mirrored it and made the mirror boot as well. We have mirrored ZFS boot, yay!

Now for the fun part: /usr and /var are on / and I want them on their own partitions. This is proving a locked-room mystery.

I tarred up /var and copied it to /zpool/var . I tried deleting /var and symlinking it to /zpool/var. No dice — /var/run is not deletable. Nor is it unmountable. I tried zfs set mountpoint=/var varpool and it refused to mount it there at boot because /var wasn't empty. /var/run isn't even umountable, even in single-user.

I haven't tried doing the same for /usr as yet — I'm suspecting I'll unlink a command I need to run.

So. How the hell do I move /usr and /var off / to point at their waiting zpools? Other than nuking and reinstalling. I suppose I could boot off a DVD. But there should be a way to solve the locked-room mystery.

(So how much of your job involves hacking into your own damn boxes? Too much of mine.)

Update: Downloading Sol 10u8 (10/09) SPARC DVD right now, to burn or jumpstart from on Monday. Though I'll try [livejournal.com profile] hauntedunix's suggestion just to see if it works.

Update 2: It works! (as Apache would say.) Didn't bother wiping and reinstalling, but I've certainly learnt a lot about the dance of disks in ZFS. I now have a 16GB / (including /usr), 16GB /var and the rest /export, all mirrored; and two 8GB raw slices being used as 16GB swap. And the default rootpool swap pool, which I've cut to 1GB. All looks damn fine and I will probably start installing actual stuff to run shortly.

(no subject)

Date: 2010-02-05 11:20 pm (UTC)
ideological_cuddle: (Default)
From: [personal profile] ideological_cuddle
You do it in single-user mode, having booted from media.

Or you *might* be able to do something with LiveUpgrade. It could certainly do this sort of split with UFS, so it may be able to do it with ZFS too.

Or, y'know, you take the 30 minutes it would've taken to just do a fresh install right at the start and save all of this stuffing about. An interactive Solaris install is *dead easy*.

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-05 11:24 pm (UTC) - Expand

(no subject)

From: [personal profile] gothgeekgirl - Date: 2010-02-07 08:49 am (UTC) - Expand

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-07 08:55 am (UTC) - Expand

(no subject)

From: [personal profile] gothgeekgirl - Date: 2010-02-07 09:10 am (UTC) - Expand

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-07 09:23 am (UTC) - Expand

(no subject)

From: [personal profile] gothgeekgirl - Date: 2010-02-07 10:05 am (UTC) - Expand

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-07 10:12 am (UTC) - Expand

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-07 10:13 am (UTC) - Expand

(no subject)

From: [personal profile] gothgeekgirl - Date: 2010-02-07 10:18 am (UTC) - Expand

(no subject)

From: [personal profile] ideological_cuddle - Date: 2010-02-07 10:24 am (UTC) - Expand

(no subject)

Date: 2010-02-07 09:00 am (UTC)
gothgeekgirl: (Default)
From: [personal profile] gothgeekgirl
Don't bother moving /usr out of /. There's no real disk size limit any more and it could even be downright dangerous. /bin is a link to /usr/bin, nothing's statically linked any more, and /sbin has links into /usr (just 3 commands, but they're there).

(no subject)

Date: 2010-02-05 08:37 pm (UTC)
From: [identity profile] ptomblin-lj.livejournal.com
Any way to boot from a CD or another disk image, so it isn't using /var while you're trying to fuck with it?

(no subject)

From: [identity profile] rasilon-x.livejournal.com - Date: 2010-02-05 08:53 pm (UTC) - Expand

(no subject)

From: [identity profile] rasilon-x.livejournal.com - Date: 2010-02-05 09:24 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 08:40 pm (UTC)
bob: (Default)
From: [personal profile] bob
id always nuke and reinstall anyway.

(no subject)

From: [personal profile] vampwillow - Date: 2010-02-05 11:24 pm (UTC) - Expand

(no subject)

From: [identity profile] blarglefiend.livejournal.com - Date: 2010-02-05 11:33 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-05 09:45 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-08 01:41 pm (UTC) - Expand

(no subject)

From: [identity profile] xlerb.livejournal.com - Date: 2010-02-06 02:33 am (UTC) - Expand

(no subject)

From: [identity profile] baljemmett.livejournal.com - Date: 2010-02-06 06:14 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 08:48 pm (UTC)
From: [identity profile] steer.livejournal.com
Hear you re zfs. I've wasted hours trying to do trivial crap on zfs. It's vexing because in theory zfs is a damn cool idea, it's just the practice which is shit.

Flatmate is zfs zealot despite having lost his entire company's data due to a bug in the BSD implementation of same.

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-05 08:55 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-05 09:01 pm (UTC) - Expand

(no subject)

From: [identity profile] hawkeviper.livejournal.com - Date: 2010-02-06 01:08 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 01:44 am (UTC) - Expand

(no subject)

From: [identity profile] hawkeviper.livejournal.com - Date: 2010-02-06 01:53 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 10:25 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 10:27 am (UTC) - Expand

(no subject)

Date: 2010-02-05 11:57 pm (UTC)
From: [identity profile] blarglefiend.livejournal.com
ZFS is lovely on Solaris. Everywhere else it's been hacked on top and not properly integrated. Anyone running ZFS in production on FreeBSD deserves to have their data eaten.

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 12:19 am (UTC) - Expand

(no subject)

From: [identity profile] blarglefiend.livejournal.com - Date: 2010-02-06 12:55 am (UTC) - Expand

(no subject)

From: [identity profile] rbarclay.livejournal.com - Date: 2010-02-06 01:06 am (UTC) - Expand

(no subject)

From: [identity profile] blarglefiend.livejournal.com - Date: 2010-02-06 01:31 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 01:41 am (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-06 04:12 pm (UTC) - Expand

(no subject)

From: [identity profile] steer.livejournal.com - Date: 2010-02-08 12:38 pm (UTC) - Expand

(no subject)

From: [identity profile] hirez.livejournal.com - Date: 2010-02-07 07:05 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 08:51 pm (UTC)
From: [identity profile] hauntedunix.livejournal.com
Why do you need multiple pools? Just have one root pool and multiple zfs filesystems. There's no advantage from using separate zpools in Sol10 if you're only using the same disks.

Anyway - you definitely *can* do this. What happens if you boot from a cd/pxe, then just chroot and manipulate the install that way? Hell - even if that doesn't, zfs set mountpoint=legacy and change the vfstab to the correct values should

(no subject)

From: [identity profile] hauntedunix.livejournal.com - Date: 2010-02-05 09:00 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 08:53 pm (UTC)
From: [identity profile] neuro42.livejournal.com
Single-user mode, I would assume.

(no subject)

From: [identity profile] neuro42.livejournal.com - Date: 2010-02-05 08:58 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 08:56 pm (UTC)
bob: (Default)
From: [personal profile] bob
i keeep a usb serial dongle in my rucksuck with my laptop for just suck occasions.
i also have a range of serial adapters

(no subject)

From: [personal profile] bob - Date: 2010-02-05 09:10 pm (UTC) - Expand

(no subject)

From: [personal profile] bob - Date: 2010-02-06 12:52 am (UTC) - Expand

(no subject)

From: [identity profile] rbarclay.livejournal.com - Date: 2010-02-06 01:08 am (UTC) - Expand

(no subject)

From: [identity profile] rasilon-x.livejournal.com - Date: 2010-02-05 09:28 pm (UTC) - Expand

(no subject)

Date: 2010-02-05 09:46 pm (UTC)
ext_8103: (Default)
From: [identity profile] ewx.livejournal.com
On Linux I’d say “edit fstab and reboot” but it’s 10 years since I even pretended to know how to run a Solaris system so for all I know that’s a laughably naïve suggestion.

(no subject)

Date: 2010-02-05 11:26 pm (UTC)
vampwillow: (Default)
From: [personal profile] vampwillow
SolX is - like a few other OSes - summat that wants to be "installed the way you want it fron the get-go" rather than permit changes down the line. (Hence why I have a pack of OS install disks in multiple flavours / releases and various CD readers

(no subject)

Date: 2010-02-05 11:44 pm (UTC)
From: [identity profile] blarglefiend.livejournal.com
My comment elsewhere suggesting LU was wrong, having looked at the lucreate manpage it doesn't support splitting with a ZFS BE. Oh well.

I'm really not at all sure you need separate *pools* here. That would be an extraordinarily unusual configuration and the installer won't help you do that. My guess is that what you want is separate *filesystems* within rpool, which the installer will help you with.

Also, splitting /usr off? How very 1991. Splitting /var makes sense, you can then apply a quota to it and make sure things like logs don't fill the disk, but /usr *should* be fairly static.

Also-also, 5/09? Grab yourself a copy of 10/09 and install that. And if you expect to build any more of these (or LDOMs on the same box) go read the manpage for 'flarcreate' once you've patched the thing with pca.

(no subject)

From: [identity profile] blarglefiend.livejournal.com - Date: 2010-02-06 12:12 am (UTC) - Expand

(no subject)

Date: 2010-02-06 12:16 am (UTC)
From: [identity profile] http://users.livejournal.com/_nicolai_/
(channelling my inner blunt Scandinavian)

Give up.
/usr must be accessible at boot in singleuser mode, so must /var. They must be accessible by simple UFS means, not ZFS.
Stop trying to overcomplicate things and use some UFS method eg DiskSuite to mirror /usr if you haven't got a raid controller.

(no subject)

From: [personal profile] bob - Date: 2010-02-06 12:53 am (UTC) - Expand

(no subject)

From: [identity profile] blarglefiend.livejournal.com - Date: 2010-02-06 12:58 am (UTC) - Expand

(no subject)

From: [identity profile] http://users.livejournal.com/_nicolai_/ - Date: 2010-02-06 09:02 am (UTC) - Expand

(no subject)

From: [identity profile] sbp.livejournal.com - Date: 2010-02-06 04:43 pm (UTC) - Expand
ext_3375: Banded Tussock (New Romantic Garden Tiger)
From: [identity profile] hairyears.livejournal.com
I am not a geek, I am a Visual Basic for Applications developer, and the text above translates as "Windows NT server works 'straight out of the box' with just a few mouse clicks'.