Re: [zfs-discuss] How to increase rpool size in a VM?

2009-03-27 Thread Harry Putnam
bob netherton  writes:

> Bob Doolittle wrote:
>> Blake wrote:
>>> You need to use 'installgrub' to get the right boot pits in place on
>>> your new disk.
>>>   
>>
>> I did that, but it didn't help.
>> I ran:
>> installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t1d0s0
>>
>> Is it OK to run this before resilvering has completed?
>>
>
> You need to install GRUB in the master boot record (MBR). 

[...]

> Changing the boot order shouldn't be necessary (that's what findroot
> is supposed to
> help take care of).   It should only be necessary if the new disk
> wasn't seen by the BIOS
> in the first place or for some reason isn't selected as part of the
> normal BIOS boot sequence.

In some pc bios user is able to set master or slave on the controller
as the boot drive.  In that case would `findroot' override the bios
settings?

Perhaps Bob D needs to look at bios and see what is actually set
there.  I seemed to need to do that recently doing a very similar
operation. 

Old disk was on slave slot and was the booting os.  I added a mirror
disk in master slot, resilved, ran intallgrub but still had to change
the bios boot order so that now master was boot disk.

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to increase rpool size in a VM?

2009-03-26 Thread Bob Doolittle
Note that c4t1d0s0 is my *new* disk, not my old. I presume that's the 
right one to target with installgrub?


Thanks,
  Bob

Bob Doolittle wrote:

Blake wrote:

You need to use 'installgrub' to get the right boot pits in place on
your new disk.
  


I did that, but it didn't help.
I ran:
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t1d0s0

Is it OK to run this before resilvering has completed?

Do I need to change the disk boot order after doing the detach? Copy 
the boot partition via dd?


-Bob


The manpage for installgrub is pretty helpful.

On Wed, Mar 25, 2009 at 6:18 PM, Bob Doolittle 
 wrote:
 

Hi,

I have a build 109 system installed in a VM, and my rpool capacity is
getting close to full.

Since it's a VM, I can easily increase the size of the disk, or add 
another,

larger disk to the VM.

What's the easiest strategy for increasing my capacity?

I tried adding a 2nd larger disk, did a zpool attach, waited for 
resilvering

to complete, did a zpool detach of the 1st disk, but then it seemed it
couldn't find my grub menu... I couldn't figure out a way to simply 
add a

2nd disk to the rpool, it seems like it's limited to a single device.

Suggestions?

Please keep me on the reply list, I'm not subscribed to this list 
currently.


Thanks,
 Bob

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss







___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to increase rpool size in a VM?

2009-03-26 Thread bob netherton

Bob Doolittle wrote:

Blake wrote:

You need to use 'installgrub' to get the right boot pits in place on
your new disk.
  


I did that, but it didn't help.
I ran:
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t1d0s0

Is it OK to run this before resilvering has completed?



You need to install GRUB in the master boot record (MBR). 


# installgrub -m boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t1d0s0

And yes, it is safe to do while the resilvering is happening.   The 
master boot record

is outside of the block range of your pool.

Changing the boot order shouldn't be necessary (that's what findroot is 
supposed to
help take care of).   It should only be necessary if the new disk wasn't 
seen by the BIOS
in the first place or for some reason isn't selected as part of the 
normal BIOS boot sequence.


Bob
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to increase rpool size in a VM?

2009-03-26 Thread Bob Doolittle

Blake wrote:

You need to use 'installgrub' to get the right boot pits in place on
your new disk.
  


I did that, but it didn't help.
I ran:
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t1d0s0

Is it OK to run this before resilvering has completed?

Do I need to change the disk boot order after doing the detach? Copy the 
boot partition via dd?


-Bob


The manpage for installgrub is pretty helpful.

On Wed, Mar 25, 2009 at 6:18 PM, Bob Doolittle  wrote:
  

Hi,

I have a build 109 system installed in a VM, and my rpool capacity is
getting close to full.

Since it's a VM, I can easily increase the size of the disk, or add another,
larger disk to the VM.

What's the easiest strategy for increasing my capacity?

I tried adding a 2nd larger disk, did a zpool attach, waited for resilvering
to complete, did a zpool detach of the 1st disk, but then it seemed it
couldn't find my grub menu... I couldn't figure out a way to simply add a
2nd disk to the rpool, it seems like it's limited to a single device.

Suggestions?

Please keep me on the reply list, I'm not subscribed to this list currently.

Thanks,
 Bob

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss




___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to increase rpool size in a VM?

2009-03-25 Thread Blake
You need to use 'installgrub' to get the right boot pits in place on
your new disk.

The manpage for installgrub is pretty helpful.

On Wed, Mar 25, 2009 at 6:18 PM, Bob Doolittle  wrote:
> Hi,
>
> I have a build 109 system installed in a VM, and my rpool capacity is
> getting close to full.
>
> Since it's a VM, I can easily increase the size of the disk, or add another,
> larger disk to the VM.
>
> What's the easiest strategy for increasing my capacity?
>
> I tried adding a 2nd larger disk, did a zpool attach, waited for resilvering
> to complete, did a zpool detach of the 1st disk, but then it seemed it
> couldn't find my grub menu... I couldn't figure out a way to simply add a
> 2nd disk to the rpool, it seems like it's limited to a single device.
>
> Suggestions?
>
> Please keep me on the reply list, I'm not subscribed to this list currently.
>
> Thanks,
>  Bob
>
> ___
> zfs-discuss mailing list
> zfs-discuss@opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] How to increase rpool size in a VM?

2009-03-25 Thread Bob Doolittle

Hi,

I have a build 109 system installed in a VM, and my rpool capacity is 
getting close to full.


Since it's a VM, I can easily increase the size of the disk, or add 
another, larger disk to the VM.


What's the easiest strategy for increasing my capacity?

I tried adding a 2nd larger disk, did a zpool attach, waited for 
resilvering to complete, did a zpool detach of the 1st disk, but then it 
seemed it couldn't find my grub menu... I couldn't figure out a way to 
simply add a 2nd disk to the rpool, it seems like it's limited to a 
single device.


Suggestions?

Please keep me on the reply list, I'm not subscribed to this list currently.

Thanks,
  Bob

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss