hi
may be boot a livecd then export and import the zpool?
regards

On 8/27/2010 8:27 AM, Rainer Orth wrote:
For quite some time I'm bitten by the fact that on my laptop (currently
running self-built snv_147) zpool status rpool and format disagree about
the device name of the root disk:

r...@masaya 14>  zpool status rpool
   pool: rpool
  state: ONLINE
status: The pool is formatted using an older on-disk format.  The pool can
         still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
         pool will no longer be accessible on older software versions.
  scan: none requested
config:

         NAME        STATE     READ WRITE CKSUM
         rpool       ONLINE       0     0     0
           c1t0d0s3  ONLINE       0     0     0

errors: No known data errors

r...@masaya 3 # format -e
Searching for disks...done


AVAILABLE DISK SELECTIONS:
        0. c3t0d134583970<drive type unknown>
           /p...@0,0/pci8086,2...@1e/pci17aa,2...@0,2/blk...@0
        1. c11t0d0<ATA    -ST9160821AS    -C    cyl 19454 alt 2 hd 255 sec 63>
           /p...@0,0/pci17aa,2...@1f,2/d...@0,0
Specify disk (enter its number):

zpool status thinks rpool is on c1t0d0s3, while format (and the kernel)
correctly believe it's c11t0d0(s3) instead.

This has the unfortunate consequence that beadm activate<newbe>  fails
in a quite non-obvious way.

Running it under truss, I find that it invokes installgrub, which
fails.  The manual equivalent is

r...@masaya 266 # installgrub /a/boot/grub/stage1 /a/boot/grub/stage2 
/dev/rdsk/c1t0d0s3
cannot read MBR on /dev/rdsk/c1t0d0p0
open: No such file or directory
r...@masaya 267 # installgrub /a/boot/grub/stage1 /a/boot/grub/stage2 
/dev/rdsk/c11t0d0s3
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 273 sectors starting at 50 (abs 16115)

For the time being, I'm working around this by replacing installgrub by
a script, but obviously this shouldn't happen and the problem isn't easy
to find.

I thought I'd seen a zfs CR for this, but cannot find it right now,
especially with search on bugs.opensolaris.org being only partially
functional.

Any suggestions?

Thanks.
        Rainer

<<attachment: laotsao.vcf>>

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

Reply via email to