martes, 13 de enero de 2009

How to expand a file system in AIX

for those who have AIX but are no experts here is a simple way to expand a file system

chlv where lp_size is the new logical partitions size you can check how big is it by typing lsvg or lslv

after it has been increased you can just type:
chfs -a size=

That's all for aix

lunes, 12 de enero de 2009

Can veritas use disks of 540Gb

Good Morning
THis morning I found a question in my email, can veritas use 540GB metaluns? I never used so big disks to create/migrate disks

the version I am using solaris 8 with veritas 3.5, is quite old, so wer are about to migrate from one frame to another, now the way to do it is using vxevac, so inorder to have another 173 disks added is to use larger metaluns so we are going to use 540GB disks to migrate.

Here is the link to the answers I found


According to the document veritas can tag 127Pb (Petabytes) big. So you can use a 540GB disk into your disk group

jueves, 8 de enero de 2009

Duplicate entries in a jumpstart server

Just for the new jumpstarters folks, if the rules file has 2 or more entries with the same server, the applied rules will be the first it gets so I recommend to have one entry per server, even if you use temporary names for it. That happenned to me earlier. Also, please block your san storage if you have any attached to your server, other wise it will report that it did not find a rule.

Regards

miércoles, 7 de enero de 2009

booting with zfs

Solaris 10 10/08 has the ability to boot with ZFS, I have tested it without any issues but here are some comments from experienced users who have used it for a while

Here is a comment from Reginald Beardsley
My initial install of 10/08 over the top of an old 11/06 system was
unbootable. There was a warning about changing the BIOS boot device,
but doing that had no effect. After I blanked the first 1 MB of the
disk w/ dd, the install worked fine. No BIOS fiddle required.

My initial recommendation would be: Use i in the lab and play with it, don't use it in porduction because is very new, let's wait for another year or two

Best Regards

tired of modifying the explorer configuration file on a bunch of sun servers

When having a lot of sun servers to mantain, and we have a template to apply on all sun servers across your network perhaps this single line inside a for loop can help you out.
Using ssh with sudo and using regular expressions to help adapt your explorer configuration template file to every single sun server can be done in minutes in stead of days
your template must be copied to all servers before executing this line

"sudo ssh $host 'hi=`hostid`; cat /tmp/template|sed -e "s//tmp/newtemp;vers=`/usr/bin/pkginfo -l SUNWexplo | grep -i version | cut -f2 -d:|cut -f1 -d, | cut -f1 -d,|sed -e "s/ //g"`;cat /tmp/newtemp | sed -e "s/EXP_DEF_VERSION=\".\...\"/EXP_DEF_VERSION=\"$vers\"/g">/tmp/newtemp2;sn=`/usr/sbin/eeprom oem-banner | cut -f2 -d:`;cat /tmp/newtemp2 | sed -e "s/EXP_SERIAL_$hi=\"/EXP_SERIAL_$hi=\"$sn/g">/tmp/explorer.new; mv /etc/opt/SUNWexplo/default /etc/opt/SUNWexplo/default.old; mkdir /etc/opt/SUNWexplo/default; chmod 555 /etc/opt/SUNWexplo/default; cp -p /tmp/explorer.new /etc/opt/SUNWexplo/default/explorer'"

How to increment the size of /tmp on a solaris box

In order to do this just type as root
#mount -F tmpfs -o size=512m -O /tmp
This overlay the new tmpfs over the old one, this one will be unaccesible.
This can be done online
Hope this helps