Re: [OpenIndiana-discuss] disk problem

2020-04-14 Thread Marc Lobelle
Indeed, after creating an empty gpt empty partition table with an ubuntu 
bootable usb key, I was able to add the disk to the mirror. the mirror 
appeared to work fine after resilvering. The situation was then that I 
had a mirror rpool with an original 2TB disk and a resilvered 4 TB disk 
of which only 2 TB are used. Then I tried to reboot on the 2 TB disk 
and, during booting, I got  lot of messages about read errors on a disk 
at sector 7.814.037.168.


Warning: /pci@0,0/pci-ide@1f,2/ide@1f,2/ide@1/cmdk@O,O (Disk3):

    Error for command "read sector' Error level: Fatal

    Requested block 7 814 037 168, Error block 7 814 037 168

    Sense key: ID not found

    Vendor 'Gen-ATA' error code: 0x5



If I check the gpt table with format/verify, I get

format> verify
Reading the primary EFI GPT label failed.  Using backup label.
Use the 'backup' command to restore the primary label.

Volume name = <    >
ascii name  = ZGY5QJC9-0001-3.64TB>

bytes/sector    =  512
sectors = 7813951487
accessible sectors = 7813951454
Part  Tag    Flag First Sector  Size  Last Sector
  0    usr    wm   256 3.64TB 7813935070
  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    7813935071 8.00MB 7813951454

format>
Thus, the faulty sector is beyond the end of the disk.

So why is  the GPT label unreadable in the first place and why does 
openindiana (2016.04) try to read so far on the disk ?


Here are the properties of the pool ?

root@spitfire:~# zpool get all
NAME   PROPERTY VALUE  SOURCE
rpool  size 1,81T  -
rpool  capacity 86%    -
rpool  altroot -  default
rpool  health DEGRADED   -
rpool  guid   04648509983196 default
rpool  version -  default
rpool  bootfs rpool/ROOT/openindiana-2   local
rpool  delegation on default
rpool  autoreplace off    default
rpool  cachefile -  default
rpool  failmode wait   default
rpool  listsnapshots off    default
rpool */autoexpand on    local/*
rpool  dedupditto 0  default
rpool  dedupratio 1.00x  -
rpool  free 246G   -
rpool  allocated 1,57T  -
rpool  readonly off    -
rpool  comment -  default
rpool  expandsize -  -
rpool  freeing 0  default
rpool  fragmentation 41%    -
rpool  leaked 0  default
rpool  bootsize -  default
rpool  feature@async_destroy  enabled  local
rpool  feature@empty_bpobj    active local
rpool  feature@lz4_compre      active local
rpool  feature@multi_vdev_crash_dump enabled    local
rpool  feature@spacemap_histogram active local
rpool  feature@enabled_txg active local
rpool  feature@hole_birth active local
rpool  feature@extensible_dataset enabled    local
rpool  feature@embedded_data active local
rpool  feature@bookmarks enabled    local
rpool  feature@filesystem_limits enabled    local
rpool  feature@large_blocks enabled    local
rpool  feature@sha512 enabled    local
rpool  feature@skein enabled    local
rpool  feature@edonr enabled    local
root@spitfire:~#

I tried to set autoexpand to off and rebooted. The error messages were 
still there and the system could not finish booting. the, I removed 
physicalle the 4TB disk and the system could boot but without the mirror.


Can anybody help me with this ?

Thanks in advance


Marc


On 6/04/20 00:51, Reginald Beardsley via openindiana-discuss wrote:

  I had to use Linux (CentOS 6.7) to write a Sun label and create a gpt 
partition table with parted before either Hipster 2017.10 or Solaris 10 would 
recognize a 3 TB disk on my Z400s.

On Sol 10 u8 "format -e" dumped core. On Hipster 2017.10 it simply did not see the disk. 
But once I labeled it with Linux I had no further trouble. "format -e" happily made a 
proper Sun label on Sol 10. I don't think that there was anything special about CentOS 6.7. It 

Re: [OpenIndiana-discuss] Upgraded to lastest hipster release today - pkg broken

2020-04-14 Thread Thomas Wagner
Russell,

I'm maintaining the SFE packages.

could you please verify something for me, once you have the
suggested workaround applied (moving symlink /usr/gnu/lib/amd64/libstdc++.so.6 
out of the way)

The version of these packages is interesting to me: 
please run the command and paste the output lines.

   pkg info gcc-runtime osnet-incorporation | grep FMRI


And then please see if you can upgrade gcc-runtime from the SFE
publisher to the gcc 7.5.0 version with the command:

pfexec pkg update -v sfe/system/library/gcc-runtime@7.5.0

If the "pkg" command still works afterwards, that would be good.
Please paste the output of the pkg update command as well.


The "pkg fix" command from the other email might restore the
moved away symlink of /usr/gnu/lib/amd64/libstdc++.so.6, so 
I would not recommend using pkg fix this time.

Regards,
Thomas

On Sun, Apr 05, 2020 at 12:00:40AM +0100, russell wrote:
> Hi
> 
> Performed a pkg upgrade today creating a new BE, now when I use pkg I get
> the following error
> 
> # pkg refresh --full
> Traceback (most recent call last):
>   File "/usr/bin/pkg", line 87, in 
>     import pkg.actions as actions
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/__init__.py", line
> 68, in 
>     globals(), locals(), [modname])
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/signature.py", line
> 37, in 
>     from . import generic
>   File "/usr/lib/python3.5/vendor-packages/pkg/actions/generic.py", line 49,
> in 
>     import pkg.variant as variant
>   File "/usr/lib/python3.5/vendor-packages/pkg/variant.py", line 36, in
> 
>     from pkg.misc import EmptyI
>   File "/usr/lib/python3.5/vendor-packages/pkg/misc.py", line 76, in
> 
>     import pkg.json as json
>   File "/usr/lib/python3.5/vendor-packages/pkg/json.py", line 24, in
> 
>     from rapidjson import loads, load, dumps, dump, JSONDecodeError
> ImportError: ld.so.1: python3.5: fatal: relocation error: file
> /usr/lib/python3.5/vendor-packages/rapidjson.cpython-35m.so: symbol
> __gxx_personality_v0: referenced symbol not found
> 
> How can I fix this or should I just activate the previous BE and delete the
> current boot environment?
> 
> TIA
> 
> 
> 
> ___
> openindiana-discuss mailing list
> openindiana-discuss@openindiana.org
> https://openindiana.org/mailman/listinfo/openindiana-discuss

-- 


New Work!
Service rund um UNIX(TM), Wagner Network Services, Thomas Wagner
Solaris(TM), Linux(TM)Eschenweg 21, 89174 Altheim, Germany
Windows(TM)   TEL: +49-7340-919196, FAX: +49-731-9807711
VoIP, Netzwerke,  MOBILE/CELL: +49-175-2926064
Internet-Security EMAIL: wag...@wagner-net.com

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] zpool completes resilver with no errors and then starts resilvering again

2020-04-14 Thread russell

Hi,

I have six disk raidz2, originally all disks were 3TB, swapped one 3TB 
for a 6TB, waited for the resilver to complete but then it immediately 
starts the next.


# zpool status uhome
  pool: uhome
 state: ONLINE
status: One or more devices is currently being resilvered.  The pool will
    continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
  scan: resilver in progress since Tue Apr 14 17:11:49 2020
    3.51T scanned at 3.32G/s, 1.03G issued at 2.14M/s, 13.9T total
    0 resilvered, 0.01% done, no estimated completion time
config:

    NAME   STATE READ WRITE CKSUM
    uhome  ONLINE   0 0 0
  raidz2-0 ONLINE   0 0 0
    c7t8d1p0   ONLINE   0 0 0
    c7t9d1p0   ONLINE   0 0 0
    c7t10d1p0  ONLINE   0 0 0
    c7t11d1p0  ONLINE   0 0 0  (awaiting resilver)
    c7t12d1p0  ONLINE   0 0 0
    c7t13d1p0  ONLINE   0 0 0

errors: No known data errors

I left the computer on all day and it took around 10 hours to complete a 
resilver then it started again.


No errors are being produced, any suggestions how to resolve this?

Russell


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss