Saturday, August 16, 2008

Things that i miss

Things that i miss while in India(not in particular order)

1. Naruto
2. Friendster
3. Yahoo mail
4. Streaming
5. Window shopping
6. Privacy
7. Loud music
8. Bloghopping
9. Concerts
10. Beers!!!

Most of all i really miss my girl, rachel :)

Wednesday, August 13, 2008

Configuring clients users home directory in NIS using Solaris 10

In this setup, my server also serves as the Network Information Service(NIS) server and NFS indirect sharing for user's home directory.

Checking my server's NFS shares
Sun Microsystems Inc.   SunOS 5.10      Generic January 2005
-bash-3.00# share
-               /jumpstart   ro,anon=0   ""
-               /installer   ro,anon=0   ""
-               /export/home   rw   ""

My passwd file as an input file for NIS Makefile
-bash-3.00# more /etc/nis_etc/passwd

Auto_master file
-bash-3.00# more /etc/auto_master
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# ident "@(#)auto_master        1.8     03/04/28 SMI"
# Master map for automounter
/net            -hosts          -nosuid,nobrowse
#/home          auto_home       -nobrowse
/home           auto.home

Auto_home file. server1 is the NIS and NFS server
-bash-3.00# more /etc/auto_home
# Copyright 2003 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
# ident "@(#)auto_home  1.6     03/04/28 SMI"
# Home directory map for automounter
chris   server1:/export/home/chris

Makefile in /var/yp

all: passwd group hosts ipnodes ethers networks rpc services protocols \
netgroup bootparams aliases publickey netid netmasks c2secure \
timezone auto.master auto.home ageing \
auth.attr exec.attr prof.attr user.attr audit.user

auto.master.time:  $(DIR)/auto_master
-@if [ -f $(DIR)/auto_master ]; then \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_master \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.master; \
touch auto.master.time; \
echo "updated auto.master"; \
if [ ! $(NOPUSH) ]; then \
$(YPPUSH) auto.master; \
echo "pushed auto.master"; \
else \
: ; \
fi \
else \
echo "couldn't find $(DIR)/auto_master"; \

auto.home.time:  $(DIR)/auto_home
-@if [ -f $(DIR)/auto_home ]; then \
sed -e "/^#/d" -e s/#.*$$// $(DIR)/auto_home \
| $(MAKEDBM) - $(YPDBDIR)/$(DOM)/auto.home; \
touch auto.home.time; \
echo "updated auto.home"; \
if [ ! $(NOPUSH) ]; then \

Configure NIS maps using 'make'
-bash-3.00# pwd
-bash-3.00# /usr/ccs/bin/make

Checking auto.master and auto.home maps
-bash-3.00# ypcat -k auto.master
/home auto.home
/net -hosts             -nosuid,nobrowse
-bash-3.00# ypcat -k auto.home
chris server1:/export/home/chris

Configure /etc/nsswitch.conf automount of your clients
automount:  files nis

Monday, August 11, 2008

Penoi's Veritas Volume Manager Notes

This is my personal notes on Veritas Volume Manager. This page is a continuing notes of frequent commands that i use in VxVM


Disk initialization
/usr/lib/vxvm/bin/vxdisksetup -iv [device_tag][attributes]

#/usr/lib/vxvm/vxdisksetup -iv c2t0d0

Create initial disk group
vxdg init [diskgroup] [disk_name=device_tag]

#vxdg init newdg disk1=c2t0d0

Add more disk to the Disk Group
vxdg -g [disk_group] adddisk [disk_name=device_tag]

#vxdg -g newdg adddisk disk2=c2t1d0

Volume Creation

Concatenated Volume

vxassist -g [disk group] make [volume_name] [size]


#vxassist -g newdg make newvol 500m

Concatenated Volume by specifying the disk

# vxassist -g newdg make newvol disk02 disk03

Striped Volume

vxassist -g [disk group] make [volume_name] [length] layout=stripe ncol=n stripeunit=size


#vxassist -g newdg make newvol 500m layout=stripe

Mirrored Volume

#vxassist -g newdg make newvol 500m layout=mirror

Viewing VxVM

View Disk Group disk info
#vxdisk -o alldgs list

View Sub disk
#vxprint -ls

View Plexes
#vxprint -lp

View Volumes
#vxprint -lv


Friday, August 8, 2008

Adding RTL8111B/RTL8111C network driver to Solaris Jumpstart

My jumpstart client has a builtin RTL8111B/RTL8111C network card. When i boot up the client thru PXE booting it gives me an error "no driver was found for the interface used to boot jumpstart"

Download the updated SUNWrge package, this holds the driver for rge

My Jumpstart image is shared thru NFS in /installer directory
#cd /installer/boot

Create a temporary miniroot directory
#mkdir x86.miniroot-rge.unpacked

Unpack the existing miniroot to the temp miniroot directory
#/boot/solaris/bin/root_archive unpack ./x86.miniroot ./x86.miniroot-rge.unpacked

Remove the existing SUNWrge package
#pkgrm SUNWrge

Add the updated SUNWrge package
#cd /export/home/john
#gunzip SUNWrge.tar.gz
#tar xvf SUNWrge.tar
#pkgadd -d . SUNWrge

Check the new aliases
#grep rge /etc/name_to_major /etc/driver_aliases
/etc/driver_aliases:rge "pci10ec,8169"
/etc/driver_aliases:rge "pci10ec,8110"
/etc/driver_aliases:rge "pci10ec,8168"
/etc/driver_aliases:rge "pci10ec,8111"

Remove the existing rge driver in the jumpstart miniroot
#cd /installer/boot
#/usr/sbin/rem_drv -b ./x86.miniroot-rge.unpacked/ rge

Add the new driver
#/usr/sbin/add_drv -b ./x86.miniroot-rge.unpacked  -n -v -m '* 0600 root sys' -i '"pci10ec,8169" "pci10ec,8110" "pci10ec,8168" "pci10ec,8111"' rge

Reboot client to install driver.
Driver (rge) installed.

Backup original miniroot
#mv x86.miniroot x86.miniroot.orig

Compress the new Jumpstart miniroot
#/boot/solaris/bin/root_archive pack ./x86.miniroot ./x86.miniroot-rge.unpacked/

Jeff's Solaris Admin blog

General Solaris 10 discussion

Wednesday, August 6, 2008

Kama Supra

There's a new guy in the guest house. Oh, how i miss the privacy of my room where you can do anything. Still weeks to go!!!!

Tuesday, August 5, 2008

Two year domestic mandatory service for professionals

Filipino registered professionals will be required to render at least two years service within the country prior to any employment abroad under this bill filed in the House of Representatives.

ngayon ang tanong... " may programa ba o kaya ay magandang trabahong maiibigay ang gobyerno para sa mga propesyonal na pilipino??"  OFW: Bagong bayaning Pilipino????