[EMAIL PROTECTED] wrote:
> Evan Layton wrote:
>> Hello Gerard,
>>
>> What does the command "zpool status" show you? It appears that
>> update_grub thinks that /dev/dsk/c5t1d0s0 is attached to the
>> root pool as part of a mirror and it's that device that looks
>> like it's getting all the errors. What does fdisk show for
>> /dev/dsk/c5t1d0s0?
>>
>> It would also be helpful to see what "zfs list" shows.
>>
> 
> here are the infos:
> 
> -bash-3.2# zpool status
>    pool: rpool
>   state: ONLINE
>   scrub: none requested
> config:
> 
>          NAME          STATE     READ WRITE CKSUM
>          rpool         ONLINE       0     0     0
>            mirror      ONLINE       0     0     0
>              c5t0d0s0  ONLINE       0     0     0
>              c5t1d0s0  ONLINE       0     0     0
> 
> errors: No known data errors
> 
> 
> -bash-3.2# format
> Searching for disks...done
> 
> 
> AVAILABLE DISK SELECTIONS:
>         0. c5t0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
>         1. c5t1d0 <ATA-ST380815AS-B-74.53GB>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
> 
> selecting c5t0d0
> [disk formatted]
> /dev/dsk/c5t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
> /dev/dsk/c5t0d0s1 is currently used by swap. Please see swap(1M).
> 
> partition> p
> Current partition table (original):
> Total disk cylinders available: 9726 + 2 (reserved cylinders)
> 
> Part      Tag    Flag     Cylinders        Size            Blocks
>    0       root    wm     262 - 9725       72.50GB    (9464/0/0) 152039160
>    1       swap    wu       1 -  261        2.00GB    (261/0/0)    4192965
>    2     backup    wu       0 - 9725       74.50GB    (9726/0/0) 156248190
>    3 unassigned    wm       0               0         (0/0/0)            0
>    4 unassigned    wm       0               0         (0/0/0)            0
>    5 unassigned    wm       0               0         (0/0/0)            0
>    6 unassigned    wm       0               0         (0/0/0)            0
>    7 unassigned    wm       0               0         (0/0/0)            0
>    8       boot    wu       0 -    0        7.84MB    (1/0/0)        16065
>    9 unassigned    wm       0               0         (0/0/0)            0
> 
> Specify disk (enter its number): 1
> selecting c5t1d0
> [disk formatted]
> /dev/dsk/c5t1d0s0 is part of active ZFS pool rpool. Please see zpool(1M).
> partition> p
> Current partition table (original):
> Total disk sectors available: 156285070 + 16384 (reserved sectors)
> 
> 
> Part      Tag    Flag     First Sector         Size         Last Sector
>    0        usr    wm               256       74.52GB          156285070
>    1 unassigned    wm                 0           0               0
>    2 unassigned    wm                 0           0               0
>    3 unassigned    wm                 0           0               0
>    4 unassigned    wm                 0           0               0
>    5 unassigned    wm                 0           0               0
>    6 unassigned    wm                 0           0               0
>    8   reserved    wm         156285071        8.00MB          156301454
> 
> 
> it seems that the second doesn't contains the same inforamtion than the 
> first one. The mirror was created at indiana installation.

The OpenSolaris installer is not capable of creating the mirror at install
time. The mirror had to have been created my hand after the installation
with a "zfs attach" command. It appears that there may be a problem with
the way ZFS did the attach when this was first created and several others
have seen similar issues (along with the fdisk partition being set to EFI).


> 
> -bash-3.2# zfs list
> NAME                                                        USED  AVAIL 
>   REFER  MOUNTPOINT
> rpool                                                      45.9G  25.0G 
>     60K  /rpool
> [EMAIL PROTECTED]                                              19.5K      - 
>     55K  -
> rpool/ROOT                                                 6.43G  25.0G 
>     18K  /rpool/ROOT
> rpool/[EMAIL PROTECTED]                                             0      - 
>     18K  -
> rpool/ROOT/opensolaris                                     8.40M  25.0G 
>   2.75G  legacy
> rpool/ROOT/opensolaris-1                                   4.29G  25.0G 
>   2.92G  legacy
> rpool/ROOT/[EMAIL PROTECTED]                           59.9M      - 
>   2.22G  -
> rpool/ROOT/[EMAIL PROTECTED]:-:2008-05-30-05:29:40       406M      - 
>   2.75G  -
> rpool/ROOT/[EMAIL PROTECTED]:-:2008-08-20-12:06:34       165M      - 
>   2.64G  -
> rpool/ROOT/opensolaris-1/opt                                709M  25.0G 
>    709M  /opt
> rpool/ROOT/opensolaris-1/[EMAIL PROTECTED]                         72K      - 
>   3.60M  -
> rpool/ROOT/opensolaris-1/[EMAIL PROTECTED]:-:2008-05-30-05:29:40    38K      
> - 
>    595M  -
> rpool/ROOT/opensolaris-1/[EMAIL PROTECTED]:-:2008-08-20-12:06:34      0      
> - 
>    709M  -
> rpool/ROOT/opensolaris-2                                   2.12G  25.0G 
>   3.01G  legacy
> rpool/ROOT/opensolaris-2/opt                                 32K  25.0G 
>    709M  /opt
> rpool/ROOT/opensolaris/opt                                   79K  25.0G 
>    595M  /opt
> 
> AVAILABLE DISK SELECTIONS:
>         0. c5t0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
>         1. c5t1d0 <ATA-ST380815AS-B-74.53GB>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
> Specify disk (enter its number): 0
> selecting c5t0d0
> [disk formatted]
>               Total disk size is 9729 cylinders
>               Cylinder size is 16065 (512 byte) blocks
> 
>                                                 Cylinders
>        Partition   Status    Type          Start   End   Length    %
>        =========   ======    ============  =====   ===   ======   ===
>            1       Active    Solaris2          1  9728    9728    100
> 
> -bash-3.2# format
> Searching for disks...done
> 
> 
> AVAILABLE DISK SELECTIONS:
>         0. c5t0d0 <DEFAULT cyl 9726 alt 2 hd 255 sec 63>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
>         1. c5t1d0 <ATA-ST380815AS-B-74.53GB>
>            /[EMAIL PROTECTED],0/pci108e,[EMAIL PROTECTED]/[EMAIL PROTECTED],0
> Specify disk (enter its number): 0
> selecting c5t0d0
> [disk formatted]
>               Total disk size is 9729 cylinders
>               Cylinder size is 16065 (512 byte) blocks
> 
>                                                 Cylinders
>        Partition   Status    Type          Start   End   Length    %
>        =========   ======    ============  =====   ===   ======   ===
>            1       Active    Solaris2          1  9728    9728    100

The fdisk output for c5t1d0 is missing. The output above shows c5t0d0
in both cases. It might still be useful to see the fdisk info for
c5t1d0 but it probably isn't the problem here. What I believe may be
the problem is that grub expects to put stage1 and stage2 on the device
starting at partition 0 sector 0 but on this disk (c5t1d0) there is no
partition starting at 0. I think what you may have to do is detach
c5t1d0s0 from the mirror and use format to add a partition starting at
0 (probably using 0 - 255) and then attach c5t1d0s0 to the mirror again.

However there have also been some issues with doing a ZFS detach and re-attach 
of disks to the morror so you may want to follow the steps that Dan price sent 
out last week.

I hope this is helpful!

-evan


Dan's suggested steps:

If you want to remove an EFI labelled disk from your root pool, my advice
to you would be to do the following.  Note that I have not tested this
particular sequence, but I think it will work.  Hah.

0) Backup your data and settings.

1) 'zpool detach' the EFI labelled disk from your pool.  After you do this
     YOU MUST NOT REBOOT.  Your system is now in a fragile state.

2) Run 'zpool status' to ensure that your pool now has one disk.

3) Edit /etc/boot/solaris/filelist.ramdisk.  Remove the only line in the
     file:

        etc/zfs/zpool.cache

4) Delete /platform/i86pc/boot_archive and /platform/i86pc/amd64/boot_archive

5) Run 'bootadm update-archive' -- This rebuilds the boot archive,
     omitting the zpool.cache file.

It may also be necessary to do installgrub at this point.  Probably, and
it wouldn't hurt.

6) Reboot your system, to ensure that you have a working configuration.


> 
> 
> thanks for your help,
> 
> gerard
> 
> _______________________________________________
> indiana-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

_______________________________________________
indiana-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss

Reply via email to