Tuesday, May 24, 2011

solaris zfs mirroring root and grub issue

16:49] can you add a drive to mirror the os root in sol10?
[16:49] yet if you `kill -ALRM ` it catches it
[16:49] == AlasAway has changed nick to Alasdairrr
[16:49] without messgin with hardware raid
[16:49] megaraid makes me stabby
[16:49] bug_zapper; yes. are you running with a zfs rootvg ?
[16:49] or with ufs ?
[16:52] sasy rool something
[16:52] says
[16:52] rpool
[16:52] so I think ufs?
[16:52] rpool .... k, if c1t0d0 is your current rpool device, and c1t1d0 is the drive you wanna mirror to?
[16:52] zpool attach rpool c1t0d0s0 c1t1d0s0
[16:53] == psychonate [~nathan@c-98-235-191-51.hsd1.pa.comcast.net] has quit [Ping timeout: 246 seconds]
[16:53] rpool/ROOT/blah
[16:53] is /
[16:53] wow that ez?
[16:53] right.
[16:53] so my / is on zfs already?
[16:53] is this x86 or sparc?
[16:53] x86
[16:53] yes, rpool is the root zpool
[16:53] um, you also need to install grub on the 2nd disk, like installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d1s0
[16:54] errr, no, I guess, installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d0s0
[16:54] I mean, installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
[16:54] == derchris^ [~derchris@78-86-128-162.zone2.bethere.co.uk] has joined #solaris
[16:54] oh crap
[16:54] do I need to configure it?
[16:54] [replace c1txdx with your actual dissk, of course]
[16:55] huh?
[16:55] configure what?
[16:55] grub
[16:55] == derchris [~derchris@78-86-128-162.zone2.bethere.co.uk] has quit [Ping timeout: 246 seconds]
[16:55] grub is already configured, isn't it?
[16:55] yes
[16:55] then you just need to install it on the 2nd disk so you can boot if disk0 fails
[16:55] anyways, i gotta dash out. have fun!
[16:55] installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1d0s0 ?
[16:56] i think its c1t1d0s0 if thats your 2nd disk.
[16:56] the names change on different systems
[16:56] "zpool status rpool" will show what your current rpool is.
[16:58] k
[16:58] thx
[16:58] im kinda nervous about this

No comments: