12.29.2017

NFS Service Guard packages

For a big NFS server:

grep -e ^NFSD_SERVERS -e ^MAX_STATD_THREADS /etc/default/nfs

 

ch_rc -a -p NFSD_SERVERS=400 /etc/default/nfs

ch_rc -a -p MAX_STATD_THREADS=1600 /etc/default/nfs

 


12.21.2017

ERROR: Retrieving Ignite-UX version on the server

New IGNITE server install.  Make_net_recovery on client fails with this: ERROR:   Retrieving Ignite-UX version on the server

 

Fix by:

swacl -l host -M 'any_other:-r--t'

swacl -l root -M 'any_other:-r--t'

 

then run make_recovery again.

 

12.29.2015

Google Now on Tap doesn't turn on

if Google Now on Tap (Android Marshmallow or better) doesn't turn on or turns on, but quickly turns off, then you probably have an account on google apps.  Your domain administrator needs to do the following (referenced from:  https://productforums.google.com/d/msg/websearch/hLazcAVC5MA/0kV53XllqFkJ)

open admin console (admin.google.com), then choose Apps, then Additional Google services. Then disable filter "Top featured services" near the top half of the page. This is important (!). When you turn filter off you will see a long list of google services, you have to find "Web history" and turn it on. 

10.08.2015

lp printer save / restore

if the restore don't work, make sure /var/sam/lp and contents are owned by lp:lp

10.04.2015

chrome / chromebook sync issues

try resetting the sync data stored on the cloud - "reset sync" button at bottom of this page:  https://www.google.com/settings/chrome/sync

9.24.2015

add web-site url to chrome shelf

add a website or url to the chome shelf:

basically go to the "hamburger" menu  in chrome browser, "more tools", "add to shelf"

8.31.2015

convert hex to binary in bash shell on linux

remember hex must be in uppercase for BC command on most linux / unix distros

echo "ibase=16;obase=2;000000004B817EFB" | bc
results:
1001011100000010111111011111011
space it out to make it easier to read:
alias spc=" sed 's/./& /g'"
echo "ibase=16;obase=2;000000004B817EFB" | bc | spc
1 0 0 1 0 1 1 1 0 0 0 0 0 0 1 0 1 1 1 1 1 1 0 1 1 1 1 1 0 1 1 

chrome remote desktop host component install for centos / rpm based distros

http://fedora-centos.blogspot.ca/2014/07/using-alien-to-convert-deb-to-rpm-and.html
basically convert the deb install file to rpm format using the alien tool, then rebuild the rpm file with rpmrebuild tool.

8.19.2015

find last ignite server used by client

find last ignite server used by client

file:  /var/opt/ignite/recovery/previews  contains information of last ignite recovery ( make_recovery / make_net_recovery ) completed or done on that server.

5.09.2015

swpackage error / copy depot bundle to file

ERROR:   The fileset XXXXX will not fit on the tape

         "/tmp/XXX.depot".  The fileset requires 4249089 Kbytes of

         tape space, but the tape provides only 1298828 Kbytes.  The

         fileset requires a larger tape.

 

Fix by:

swpackage -s /source/dir -x allow_large_serial_depot=true -x media_capacity=50000 -x target_type=tape @ /ignite/r11.depot bundle/package/etc


media_capacity=larger than depot file

4.10.2015

ldapclientd won't start hpux

mmap failed or messages like that on ldapclientd.rc startup ---

remove the status file:
/var/spool/ldapcltd/status

1.15.2015

sendmail errors: Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF

-----Q-ID----- --Size-- -----Q-Time----- ------------Sender/Recipient-----------
t0F800jK001682      255 Thu Jan 15 02:00 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
t0F7o3vI001264      704 Thu Jan 15 01:50 root
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root
t0F6F19E026586       58 Thu Jan 15 00:15 MAILER-DAEMON
                 (Deferred: local mailer (/usr/bin/rmail) exited with EX_TEMPF)
                                         root

it can't deliver local mail since the /var/mail didn't exist in this case....
/var/mail needs to be created and bin:mail ownership and 775 permissions

11.27.2014

ssh doesn't work after ignite recovery

ssh connections have errors after doing an ignite recovery. If the
following shows up in syslog:
sshd[14702]: error: openpty: No such file or directory
sshd[14704]: error: session_pty_req: session 0 alloc failed

check another server with ssh working using lsof and you'll find
/dev/ptmx reference:
sshd 22391 root 7u STR 156,0 0t41177 2935 /dev/ptmx->ptm

re-create the device file using mknod to this:
crw-rw-rw- 1 root root 72 0x00009c Nov 27 04:23 /dev/ptmx


Also /dev/klog was missing (as seen in syslog) after the ignite recovery:
crw------- 1 bin bin 189 0x000000 Dec 22 2010 /dev/klog

10.29.2014

Rosetta stone for unix OS

compare commands from different unix OSs:
http://bhami.com/rosetta.html

10.06.2014

headless ubuntu / linux

if you are running a headless ubuntu / linux server and have no remote
console at all and it's important for the OS to boot without requiring
interaction make sure you do this:

http://www.linuxquestions.org/questions/linux-newbie-8/grub-not-working-default-highlighted-but-timeout-doesn't-auto-select-4175490182/

set GRUB_RECORDFAIL_TIMEOUT=2 (or whatever timeout you want). and of
course, run update-grub.

This will prevent it from sitting / hanging at the grub menu because
of a power failure or whatever.....

10.05.2014

avio_stor and avio_lan on hpvm guest

slow network performance was fixed by changing the adapter type from
lan to avio_lan.


Here's a quick way to do it:

## where 0,0 is the bus,dev (found from hpvmstatus –P $vm_name )of
the disks -- may list multiple -m

hpvmmodify -P VM -m hba:avio_stor:0,0



## where 0,1 is the bus,dev (found from hpvmstatus -P $vm_name) and
lan2 is the vswitch name

hpvmmodify -P VM -m network:avio_lan:0,1:vswitch:lan2

9.30.2014

light UID on ciss0 controlers in HPUX

how to light the hard disk UID (unit identifier) on the ciss
controller (SAS SmartArray P410i RAID Controller) in HPUX:

find the wwn of the drive:
$ sautil /dev/ciss0 -s

$ saconfig /dev/ciss0 -I -p wwn of drive

drive LED will blink for 5 mins