[OmniOS-discuss] beadm activate issue (and pkg update fails to install boot files)

Tom Robinson tom.robinson at motec.com.au
Wed Sep 24 05:58:06 UTC 2014


On 24/09/14 15:47, Tom Robinson wrote:
> On 24/09/14 15:40, Tom Robinson wrote:
>> On 24/09/14 15:35, Dan McDonald wrote:
>>> On Sep 24, 2014, at 1:33 AM, Tom Robinson <tom.robinson at motec.com.au> wrote:
>>>
>>>> Thanks Dan, I can see where you're going with that idea. Should I pay any attention to:
>>>>
>>>> Partition 0 of the disk has an incorrect offset
>>>> Unable to gather device information for /dev/rdsk/c4t3d0s0
>>> That is a bit disturbing.
>>>
>>> What about the other one in the mirror?  c4t2d0s0 ?
>> Nothing reported by beadm. I'm not sure if c4t3d0s0 is first or last according to installgrub. Is
>> the only way to tell by running installgrub? I get nervous at this point. Also my next maintenance
>> window will most likely not be until next week.
>>
>> In theory, installgrub shouldn't have any influence on the currently booted system, right?
> Ok, since c4t3d0s0 IS failing to accept the installgrub here goes:
>
> # installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t3d0s0
> Partition 0 of the disk has an incorrect offset
> Unable to gather device information for /dev/rdsk/c4t3d0s0
>
> and
>
> # installgrub /mnt/boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c4t3d0s0
> Partition 0 of the disk has an incorrect offset
> Unable to gather device information for /dev/rdsk/c4t3d0s0
>
> I'm still nervous about running this on my (apparently) only bootable disk... (c4t2d0s0)
prtvtoc shows cylinders and accessible cylinders differ by one:

# prtvtoc /dev/rdsk/c4t3d0s0
* /dev/rdsk/c4t3d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*      56 sectors/track
*     224 tracks/cylinder
*   12544 sectors/cylinder
*   18689 cylinders
*   18687 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*           0     12544     12543
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00      12544 234384640 234397183
       2      5    01          0 234422272 234422271
       8      1    01          0     12544     12543

# prtvtoc /dev/rdsk/c4t2d0s0
* /dev/rdsk/c4t2d0s0 partition map
*
* Dimensions:
*     512 bytes/sector
*      56 sectors/track
*     224 tracks/cylinder
*   12544 sectors/cylinder
*   18688 cylinders
*   18686 accessible cylinders
*
* Flags:
*   1: unmountable
*  10: read-only
*
* Unallocated space:
*       First     Sector    Last
*       Sector     Count    Sector
*           0     12544     12543
*
*                          First     Sector    Last
* Partition  Tag  Flags    Sector     Count    Sector  Mount Directory
       0      2    00      12544 234384640 234397183
       2      5    01          0 234422272 234422271
       8      1    01          0     12544     12543

# prtvtoc /dev/rdsk/c4t3d0s0 > /tmp/prtvtoc-c4t3d0s0

# prtvtoc /dev/rdsk/c4t2d0s0 > /tmp/prtvtoc-c4t2d0s0

# diff /tmp/prtvtoc-c4t2d0s0 /tmp/prtvtoc-c4t3d0s0
1c1
< * /dev/rdsk/c4t2d0s0 partition map
---
> * /dev/rdsk/c4t3d0s0 partition map
8,9c8,9
< *   18688 cylinders
< *   18686 accessible cylinders
---
> *   18689 cylinders
> *   18687 accessible cylinders


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <https://omniosce.org/ml-archive/attachments/20140924/8ab75057/attachment.bin>


More information about the OmniOS-discuss mailing list