Local filesystem mounts not visible with ownCloud 5.0.6

May 20th, 2013 by Andre van Eyssen

Fault Description: Local filesystem mounts do not present on ownCloud 5.0.6.

Platform: Solaris 10; SPARC; PCOWstack32; sjsws7; MariaDB; PHP 5.4.15.

Evidence 1: ownCloud log shows:  {“app”:”cache”,”message”:”Insert to cache failed: MDB2 Error: null value violates not-null constraint”,”level”:3,”time”:1369039803}

Evidence 2: DB transaction log shows: INSERT INTO `oc_filecache`(`mimepart`, `mimetype`, `mtime`, `size`, `etag`, `path_hash`, `path`, `parent`, `name`, `encrypted`, `storage`) VALUES(?, ?, ?, ?, ?, ?
, ?, ?, ?, ?, ?)

Notes: Fault is not evident with sqlite default install.

Cause: Pretty obvious. Looks like that constraint shouldn’t exist.

Fix: https://github.com/owncloud/core/pull/2389/files

Fix details: edit db.php, add to mysql section: $options['portability'] = $options['portability'] – MDB2_PORTABILITY_EMPTY_TO_NULL;

 

Posted in Uncategorized | No Comments »

Solaris 10 on x86 refuses to boot after exporting raw iSCSI volumes

April 28th, 2013 by Andre van Eyssen

Quick case notes for those who run into the same thing:

Export some raw devices through iSCSI. All are functional and well behaved. Create a zpool on said LUNs from the client machine. Still functional. Reboot the server, locks before displaying grub menu. Notably, these LUNs previously had a zpool on them.

There appears to be an issue with grub’s attempt to locate the root filesystem using  findroot.

The LUNs were previously used (and labelled) by zpool during testing. The combination of partial zpool and the EFI label seems to be the problem. Clean the partition off and replace with a SOLARIS2 partition tag and try again; the grub problem goes away.

There’s obviously room for deeper analysis here, but I’m just throwing this note up in case somebody else hits the same oddity.

Posted in Solaris, UNIX | No Comments »

Illumos-Joyent patch tree – Joyent releases a slab of code for Illumos

April 16th, 2011 by Andre van Eyssen

For those not lurking the mailing lists, Joyent have opened their first real
block of code. New features include:

* ZFS I/O fair-share scheduling for zones
* the Joyent brand, which can be used as a template for other non-SysVR4 or
IPS zone brands
* Reintroduction of sparse zone images
* Crossbow vnics on demand for zones & non-unique vnic naming (unique per
zone, not per system)
* svcs enhancements ( svcs -Z/-z for interrogating zone services, -L for
outputting log files directly (no more ls /var/svc/log | grep… ))
* vfsstat and iostat tweaks and ziostat, iostat(1M) for ZFS I/O
* more per-zone IO kstats
* the zonemon utility for zone kernel state troubleshooting
* DTrace enhancements such as llquantize

You can get digging through the code at:
http://github.com/joyent/illumos-joyent

Posted in Illumos, OpenSolaris, Solaris, UNIX | Comments Off

Solaris 11 Express AI Notes

December 15th, 2010 by Andre van Eyssen

My Automated Installer notes are available now. You can grab them from: http://mexico.purplecow.org/static/ai1.pdf.

This was presented at the final MSOSUG meeting for 2010; thanks to everyone for an entertaining year and looking forwarding to kicking off again in January. Look forward to comments and/or corrections.

Update: This document uses my new document base style; please drop a comment on the layout!

Posted in MSOSUG, OpenIndiana, OpenSolaris, Solaris, UNIX | 7 Comments »

Fix backspace/delete on Solaris 11 Express text console

November 24th, 2010 by Boyd Adamson

As a place to work on my IPS packages, I have a minimal Solaris 11 x86 VM under VirtualBox. By minimal, I mean the “server_install” set that you get by default from the text installer.

I’d like to ssh to it from my normal terminal emulator but I have to use the text console since the bridged networking makes my laptop unstable. Probably an interaction with VPN clients on the machine.

Alas, the out-of-the-box experience on the text console is … suboptimal. Pressing the key on the top right of the keyboard (normally “Backspace” but labeled “delete” on my Mac) sends the “^H” character to the session, while the default terminal device settings from stty(1) expect the delete (^?) character. The upshot of this is that pressing Backspace at the login prompt prints ^H. Nice.

It’s also less than ideal for an emacs user, since ^H (C-h in emacs parlance) is the help key. This can be fixed, but seriously, should I have to?

Anyway, I’ve found a minimal workaround that seems to work for me. Maybe it will help others.

We need to swap the backspace and delete keys on the keyboard. So, first we find which keys backspace and delete are on:

eleven# dumpkeys | grep '\\\\b'
key 11    base h shift H caps H ctrl '\\b' altg nop
key 42   all '\\b'
eleven# dumpkeys | grep '\\\\177'
key 76  all '\\177'

So, Backspace is on key 42 and key 11 (the “H” key) with Control held down. Delete is on key 76. So, for my purposes it’s good enough to swap those two keys.

Turns out that’s surprisingly easy:

#!/usr/bin/loadkeys
# Swap backspace and delete
swap 42 with 76

Just chmod +x that file and run it (as a user logged on at the console) and we’re finished!

To make this persistent across reboots is not much harder. First find the type and layout of your keyboard:

eleven# kbd -l
type=6
layout=33 (0x21)
delay(ms)=500
rate(ms)=40

The layout for this keyboard is defined in /usr/share/lib/keytables/type_6/layout_21.

Personally I’ve not made this change persistent since it’s not clear to me that editing these files is supported. Also, I’m not sure what would happen in the case of an upgrade of the system/data/keyboard/keytables package that contains them.

Now, if only someone can help me with getting the meta key to work…

Posted in Solaris | Comments Off

LaTeX/Beamer MSOSUG Slides

November 18th, 2010 by Andre van Eyssen

Forgot to put these up earlier!

http://mexico.purplecow.org/static/beamer1.pdf

Posted in LaTeX, MSOSUG | Comments Off

Colour man pages on Solaris

November 17th, 2010 by Andre van Eyssen

In followup to a discussion with Boyd, here’s how to make man pages more visually pleasing on Solaris – well, at least more colourful. This should work on other platforms with less available, too — but I’ve only tested on Solaris.

First up, set your pager to be “less”:

  • PAGER=/usr/bin/less

Then set up some environment variables to instruct less to cope with colour

  • LESS_TERMCAP_mb=$’\E[01;33m’ # blink, start
  • LESS_TERMCAP_md=$’\E[01;31m’ # bold, start
  • LESS_TERMCAP_me=$’\E[0m’ # end mode
  • LESS_TERMCAP_se=$’\E[0m’ # standout-mode,end
  • LESS_TERMCAP_so=$’\E[01;41;33m’ # standout-mode,start
  • LESS_TERMCAP_ue=$’\E[0m’ # underline, end
  • LESS_TERMCAP_us=$’\E[01;32m’ # underline, start

Before:

less monochrome

After:

less colour

Posted in Solaris, Uncategorized, UNIX | Comments Off

MSOSUG Slides — Illumos

August 20th, 2010 by Andre van Eyssen

Since people are asking.

http://mexico.purplecow.org/tmp/illumos-msosug.pdf

Posted in Illumos, MSOSUG | Comments Off

Getting into Illumos

August 5th, 2010 by Andre van Eyssen

Now that Illumos has launched, it’s time to get involved. Register for the website and participate in the forums and don’t forget to subscribe to the mailing lists.

Posted in Illumos | Comments Off

Alternate feeds for Illumos announcement

August 3rd, 2010 by Andre van Eyssen

cut&paste:

Unofficial audio streams

It is recommended you connect from a Windows or MacOS as gotomeeting is known to work well over these platforms.

If you cannot for some reason, Matt Lewandowsky is setting up an audio broadcast stream at
http://www.greenviolet.net/articles/illumos-announcement-stream.gv

Posted in Illumos | Comments Off

« Previous Entries