[email protected] writes:

[...]

>
>>Is there a better way?
>
>
> Yes.


[...]


>       zpool pool attach olddevice newdevice (make a mirror)
>
> and later, after a reboot from the new mirror (and after installing grub)
>
>       zpool pool detach pool olddevice


Well, I'm still having trouble here.  No surprise I guess.

Following the recipe above fails right off the bat:

  zpool rpool attach c3d1s0 c3d0s0

 unrecognized command 'rpool'
 usage: zpool command args ...
 [...]

So man zpool seem to indicate it should be:
 
    zpool attach rpool c3d1s0 c3d0s0

That also fails complining that c3d0s0 is not a device.

    zpool  attach  rpool c3d1s0 c3d0s0
  cannot open '/dev/dsk/c3d0s0': No such device or address

But there is such a device (wrapped for mail):

   ls -l /dev/dsk/c3d0s0
  lrwxrwxrwx 1 root root 48 [...] /dev/dsk/c3d0s0 -> \
    ../../devices/p...@0,0/pci-...@f/i...@0/c...@0,0:a

and `format/fdisk' seems to confirm:

  format
 Searching for disks...done

 AVAILABLE DISK SELECTIONS:
       0. c3d0 <DEFAULT cyl 60797 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@f/i...@0/c...@0,0
       1. c3d1 <DEFAULT cyl 3273 alt 2 hd 255 sec 63>
          /p...@0,0/pci-...@f/i...@0/c...@1,0
[...]

  Specify disk (enter its number): 0
  selecting c3d0
  Controller working list found
  [disk formatted, defect list found]

  fdisk
             Total disk size is 60800 cylinders
             Cylinder size is 16065 (512 byte) blocks

                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ===
          1                 Solaris2          1  60799    60799    100


=====     *     =====     *     =====     *     =====
 
If I try to use c3d1 and c3d0

  zpool  attach  rpool c3d1 c3d0

 cannot label 'c3d0': EFI labeled devices are not 
 supported on root pools.

But fdisk appears to show its a solaris2 partition.

According to examples I've seen, fdisking a 100 % solaris2 partition
is all I need to do.

Do I have to do more with `format/partition'?

If so, I'm wondering why `partition' doesn't allow me to chose the
size by cylinder or percent, instead demanding mb or gb.

Of course giving it 500gb fails... just seems silly to have to figure
out what 500 gb in store bragging is in reality.

But really I don't need to fool with `format/partition' do I?

Is something else wrong here?

_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to