Ubuntu tips: grub rescue and apparmor

Installed Ubuntu on Old laptop for testing new thing like Docker. met 2 issue.

Issue 1. Update the disk partition table caused the grub confused.
I have 4 slice of my harddisk, /dev/sda1 for Windows. /dev/sda5 for windows 2nd partition. /dev/sda6 for Ubuntu./dev/sda7 for Ubuntu swap.
when I need more space for linux, I remove /dev/sda5. then /dev/sda6 become /dev/sda5 …. that confused grub. because grub still hold the record /dev/sda6 is the linux partition.

Fix: grub rescue>ls
grub rescue>set
Read the rest of this entry »

,

No Comments

Solution: how to use perl convert XLSX to csv

We need xls2csv and Spreadsheet::ParseXLSX
get xls2csv from cpan
https://metacpan.org/release/Spreadsheet-ParseXLSX

Make modification on xls2csv

## add option -t means type. xls or xlsx.
< getopts('x:b:t:c:a:qshvWw:n:f', %O); Read the rest of this entry »

No Comments

Solution: how to use perl convert XLSX to csv

We need xls2csv and Spreadsheet::ParseXLSX
get xls2csv from cpan
https://metacpan.org/release/Spreadsheet-ParseXLSX

Make modification on xls2csv

## add option -t means type. xls or xlsx.
< getopts('x:b:t:c:a:qshvWw:n:f', \%O); Read the rest of this entry »

No Comments

update single esxi host from 5.1 to 5.5

1. download the latest esxi offline bundle.
ESXi 5.5 Update 1 Offline Bundle
File size: 624 MB File type: zip

2. upload the offline bundle to esxi host with client or scp

3. update the esxi with ssh
~ # esxcli software profile update -d /vmfs/volumes/vmdata/iso/update-from-esxi5.5-5.5_update01.zip -p ESXi-5.5.0-20140302001-standard
Update Result
Message: The update completed successfully, but the system needs to be rebooted for the changes to be effective.
Reboot Required: true
VIBs Installed: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.550.0.0.1331820 …
VIBs Removed: VMware_bootbank_ata-pata-amd_0.3.10-3vmw.510.0.0.799733 …

Btw, -p means profile name. you can get the profile name from offline bundle zip. file. update-from-esxi5.5-5.5_update01.zip->metadata.zip->profiles

,

No Comments

Install Virtualbox 4.3.10 Addons for RHEL7

When trying to play new Redhat release, RHEL7 as my working desktop.
You may hit following error when you install Virtualbox addons


/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c: In function ‘rtR0MemObjNativeMapUser’:
/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.c:1542:26: error: ‘struct mm_struct’ has no member named ‘numa_next_reset’
pTask->mm->numa_next_reset = jiffies + 0x7fffffffffffffffUL;
^
make[2]: *** [/tmp/vbox.0/r0drv/linux/memobj-r0drv-linux.o] Error 1
make[1]: *** [_module_/tmp/vbox.0] Error 2
make: *** [vboxguest] Error 2

you need update memobj-r0drv-linux.c,
tips: you can quick cp /tmp/vbox.0 out when it decompress completed. then copy the new file in.
Ref: https://www.virtualbox.org/ticket/12638

No Comments

Quick guide: How to change Vcenter IP

Simple way, update before you move it away.
Admininstrate -> vCenter Server setting -> Advanced Settings.

I installed Vcenter on a VM. so I did clone. but the IP need to be updated.

because the SSO still try to find the old IP. updated many configuration files, still stucks.
Read the rest of this entry »

No Comments

Veritas Cluster Server CP server install and configuration guide

When you read this article, i assume you already know the split-brain issue in Cluster. VCS have CP server to avoid the split-brain issue. also you can use SCSI3-PR func if your SAN storage support that.

We mainly focus on CP server setup and Configure the cluster to use CP servers.

=== Part 1, Setup CPS server ===
CP server setup. you can install SFHA all package. which include the CPS server

VRTScps All Cluster Server – Coordination Point Server

# Quick Steps:
/opt/VRTS/install/installvcs61 -configcps

# Manual Steps without VCS, because CPS can run alone.
# Once you installed, create CPS configuration.

root@salt/etc/VRTScps/db/current:$ cat /etc/vxcps.conf
cps_name=salt
vip=[10.x.x.x] # update x.x.x to your VIP
port=14250
security=0
db=/etc/VRTScps/db

Read the rest of this entry »

No Comments

(Fixed) Oracle RAC Issue – cssd

Issue 1: cssd can’t start up during reboot. GC startup block cssd startup. disable GC auto start fixed the issue.

root@host_name# /ora/product/11.1.0.6a/bin/crsctl check crs
Failure 1 contacting Cluster Synchronization Services daemon
Cannot communicate with Cluster Ready Services
Cannot communicate with Event Manager

root@host_name# /ora/product/11.1.0.6a/bin/crsctl start crs
Read the rest of this entry »

,

1 Comment

UltraMonkey-L7 Quick Setup Guides

# OS: CentOS 6.4 x86_64 with minimal installation.

# Enable EPEL
rpm -ivh http://mirror.pnl.gov/epel/6/i386/epel-release-6-8.noarch.rpm

# Install necessary packages
yum install -y boost-thread.x86_64 boost-system.x86_64 boost-regex.x86_64 boost-serialization.x86_64 log4cxx apr-util apr perl-IO-Socket-INET6 perl-libwww-perl perl-Time-HiRes perl-Socket6 net-snmp-libs

# Copy the sample configuration
cp /etc/ha.d/conf/l7directord.cf.sample /etc/ha.d/conf/l7directord.cf
Read the rest of this entry »

No Comments

syslog simple notes

configure the syslog send to central log server

Reminder:
For historical reasons, the key, not a simple blank space, is used to define white space between the selector on the left side of the line and the action on the right side. Throughout the Log Analysis configuration documents, we’ve used the to remind you of this — but of course, when you look at the file, you’ll only see white space.

# Solaris
*.debug;mail,lpr,news,uucp,local0,local1,local2@remote_log_server
# Linux
*.crit,auth.*,mark.*,user.notice,local3.*,local5.*,local6.*,local7.*,syslog.*,authpriv.*,daemon.*@remote_log_server

# Bounce syslog
Read the rest of this entry »

No Comments