Archive for February, 2012

Solaris SVM usage step by step

Notes: need create svm env for Prod patch test. actually zfs is much convinent now. still the requirement issue. we can’t take advantage of zfs in Solaris 9/8

Step 1.
create VM with 2 drives. c0t0d0 & c0t1d0

Step 2.
Duet to hardware limit, we use x86, Install Solaris 10 with option 4. install with Text console. we install OS on one disk

Step 3.
Create SVM
Read the rest of this entry »

,

No Comments

how to fix vxdisk/dmp state disabled

sometime you add new disk. will notice vxdisk list show path state=disabled.

vxdisk list c2t0d63s2
Multipathing information:
numpaths: 2
c2t0d63s2 state=disabled
c3t0d63s2 state=disabled

vxdmpadm enable path=c2t0d63s2
vxdmpadm enable path=c3t0d63s2

then it goes to
numpaths: 2
c2t0d63s2 state=enabled
c3t0d63s2 state=enabled

,

No Comments

Grub2: fix dual boot issue

Trying boot from livecd to fix the dual boot issue.
ubuntu@ubuntu:~$ sudo grub-install /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).

Solution:
set the /boot/grub path
root@ubuntu:~# mkdir /a; mount /dev/sda1 /a # sda1 is the root you installed linux
root@ubuntu:~# grub-install /dev/sda –boot-directory=/a/boot/grub
Installation finished. No error reported.

,

No Comments

System Management: Soft collection

Pulp vs Spacewalk

Puppet vs Chef vs Cfengine

No Comments

Ruby: Cipher is not a module

This mostly happened on CentOS 64

Solution:
rpm -qi ruby
Name : ruby Relocations: (not relocatable)
Version : 1.8.7.299 Vendor: AegisCo
then get the source package with the same version.
cd /usr/src/redhat/SOURCES/ruby-1.8.7-p299/ext/openssl/
ruby extconf.rb
make
make install

,

No Comments

VCS: fix dg disabled. cannot open " " for quotactl

root@myhost1# vxdisk list
DEVICE TYPE DISK GROUP STATUS
sdbu auto:cdsdisk emc1XXX DB_PRD online dgdisabled
sdbv auto:cdsdisk emc1XXX DBarc_PRD online dgdisabled

root@myhost1# vxdg deport DB_PRD
VxVM vxdg ERROR V-5-1-584 Disk group DB_PRD: Some volumes in the disk group are in use
Read the rest of this entry »

No Comments

VCS: fix dg disabled. cannot open ” ” for quotactl

root@myhost1# vxdisk list
DEVICE TYPE DISK GROUP STATUS
sdbu auto:cdsdisk emc1XXX DB_PRD online dgdisabled
sdbv auto:cdsdisk emc1XXX DBarc_PRD online dgdisabled

root@myhost1# vxdg deport DB_PRD
VxVM vxdg ERROR V-5-1-584 Disk group DB_PRD: Some volumes in the disk group are in use
Read the rest of this entry »

No Comments