Hi

I was running OpenSolaris 2008.05 and after doing a hard shutdown of
my laptop, after restart, Grub showed up fine, as soon as I pressed
enter for OpenSolaris 2008.05's grub menu entry, it showed an error -
"Inconsistent Filesystem Structure", and didn't show any shell. I
asked for help on opensolaris-discuss and ug-bosug. I mounted the ZFS
partition from a Live CD, but even a zpool scrub did not solve the
problem. Folks over at ug-bosug believe that it is a bug in the GRUB
implementation of fsys_zfs.c. Please raise the bug in the appropriate
bug category.

Thread: http://opensolaris.org/jive/thread.jspa?threadID=68244&tstart=0

Regards.

On Wed, Aug 6, 2008 at 12:19 AM, Angad Singh <[EMAIL PROTECTED]> wrote:
> Hi Ananth,
>
> Sure. If you think its a bug I'm reporting it now to zfs-discuss.
>
> Thanks for the grok idea. I think directly inspecting the code is a
> much better way (though a much bolder way, since I don't know much
> about opensolaris code) to solve the problem in the future :)
>
> Regards.
>
> On Mon, Aug 4, 2008 at 12:42 AM, Ananth Shrinivas <[EMAIL PROTECTED]> wrote:
>>>
>>> It worked. It did find the pools on the disk and I was able to mount
>>> rpool the way you've suggested.
>>>
>>> The only problem being that scrub didn't fix the error and now I have
>>> had to reinstall opensolaris. Oh well, now it has given me a chance to
>>> come back to SXCE. Failsafe is there atleast.
>>
>> This likely indicates a bug in the GRUB implementation of fsys_zfs.c. You
>> might want to raise a bug on bugs.opensolaris.org or let zfs-discuss know.
>>
>> Ananth
>>
>>
>>> On Sun, Aug 3, 2008 at 5:50 PM, Moinak Ghosh <[EMAIL PROTECTED]> wrote:
>>> > On Sun, Aug 3, 2008 at 4:54 PM, Angad Singh <[EMAIL PROTECTED]> wrote:
>>> >> (sorry for the cross-posting)
>>> >>
>>> >> On Sat, Aug 2, 2008 at 9:06 PM, Sriram Narayanan <[EMAIL PROTECTED]>
>>> >> wrote:
>>> >>> On Sat, Aug 2, 2008 at 7:38 PM, Angad Singh <[EMAIL PROTECTED]>
>>> >>> wrote:
>>> >>>> I am running OpenSolaris 2008.05. I did a hard shutdown of my laptop,
>>> >>>> I had to since Sun Studio had gone into an infinite loop (some bug).
>>> >>>>
>>> >>>> After restart, Grub showed up fine, as soon as I press enter for
>>> >>>> OpenSolaris 2008.05's grub menu entry, it shows an error -
>>> >>>> "Inconsistent Filesystem Structure".
>>> >>>>
>>> >>>> And It doesn't show any shell !
>>> >>>>
>>> >>>> Does anyone know how to fix this? I atleast need a shell prompt to be
>>> >>>> able to do anything with it. Other way around could possible be
>>> >>>> booting from the LiveCD and doing something?
>>> >>>>
>>> >>>
>>> >>> Boot from the LiveCD, and see if it mounts the file systems on the
>>> >>> laptop. Since you're using 2008.5, the filesystem would be zfs, and
>>> >>> you should be able to fix this.
>>> >>>
>>> >>
>>> >> I booted from the Live CD. It doesn't automatically mount the solaris
>>> >> partition.
>>> >>
>>> >> If I do it manually like so:
>>> >>
>>> >> [EMAIL PROTECTED]:/mnt# mount -F zfs /dev/dsk/c5d0p1 /mnt/sol
>>> >>
>>> >> It gives error:
>>> >> cannot open '/dev/dsk/c5d0p1': invalid dataset name
>>> >>
>>> >> What is the proper way of mounting the opensolaris 2008.05 partition
>>> >> from another one?
>>> >
>>> >   Mounting ZFS is different from other mounting FS-es.
>>> >   Run  zpool import  without arguments. It will print existing pool
>>> >   names. for OpenSolaris 2008.05 it will be "rpool".
>>> >
>>> >   Now run
>>> >   zpool import -R /mnt -f rpool
>>> >
>>> >   The pool on harddisk will be imported temporarily rooted at /mnt.
>>> >   Now run  zfs list  to view all the datasets in the pool. The root
>>> >   dataset  rpool/ROOT/opensolaris will not be mounted since it is
>>> >   a "legacy" mount. You will have to mount that explicitly:
>>> >
>>> >   mkdir /hdroot
>>> >   mount -F zfs rpool/ROOT/opensolaris /hdroot
>>> >
>>> >   If all goes well you can run:
>>> >   /mnt/boot/solaris/bin/update_grub -R /mnt
>>> >   and then reboot back into harddisk.
>>> >
>>> >   Otherwise you can try running
>>> >   zpool scrub rpool.
>>> >
>>> >   The scrub command is vaguely similar to fsck. Execute
>>> >   zpool status  periodically to see whether errors were found.
>>> >
>>> > Regards,
>>> > Moinak.
>>> >
>>> >> _______________________________________________
>>> >> ug-bosug mailing list
>>> >> List-Unsubscribe: mailto:[EMAIL PROTECTED]
>>> >> List-Owner: mailto:[EMAIL PROTECTED]
>>> >> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>>> >>
>>> >
>>> >
>>> >
>>> > --
>>> > ================================
>>> > http://www.belenix.org/
>>> > http://moinakg.wordpress.com/
>>> > _______________________________________________
>>> > ug-bosug mailing list
>>> > List-Unsubscribe: mailto:[EMAIL PROTECTED]
>>> > List-Owner: mailto:[EMAIL PROTECTED]
>>> > List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>>> >
>>>
>>>
>>>
>>> --
>>> Angad Singh
>>> http://blogs.sun.com/angad
>>> Sun Campus Ambassador Tech Lead
>>> _______________________________________________
>>> ug-bosug mailing list
>>> List-Unsubscribe: mailto:[EMAIL PROTECTED]
>>> List-Owner: mailto:[EMAIL PROTECTED]
>>> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>>
>>
>> _______________________________________________
>> ug-bosug mailing list
>> List-Unsubscribe: mailto:[EMAIL PROTECTED]
>> List-Owner: mailto:[EMAIL PROTECTED]
>> List-Archives: http://www.opensolaris.org/jive/forum.jspa?forumID=54
>>
>
>
> --
> Angad Singh
> http://blogs.sun.com/angad
> Sun Campus Ambassador Tech Lead
>



-- 
Angad Singh
http://blogs.sun.com/angad
Sun Campus Ambassador Tech Lead
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to