Monday, February 26, 2007

LVM information crash with ODM

It is a nightmare. I found that one of the AIX server cannot build a mirror of the rootvg. After investigation, it even failed to extend a new disk (PV) to rootvg. Then I tried "odmget" command and found something strange: ODM indicated that there were 2 PVs in rootvg already.

Therefore, the situation is the ODM and LVM records are not consistent. What should I do? Luckily, I got a wonderful command - synclvodm

I ran "synclvodm -v rootvg", that's all. The new PV was added to rootvg and I could just happily build the mirror (smitty mirrorvg). Bravo !!!!

Ref: Man page of synclvodm

Tuesday, February 13, 2007

How to add a swap file in Solaris

  1. # mkfile 10m /tmp2/swapfile
  2. # swap -a /tmp2/swapfile
  3. # swap -l
    • swapfile             dev  swaplo blocks   free
      /dev/dsk/c0d0s1 102,1 8 303400 303400
      /dev/dsk/c0d1s6 102,70 8 21160 21160
      /tmp2/swapfile - 8 20472 20472
  4. (Optional, if need to make the change permanent)
    1. Edit /etc/vfstab
              /tmp2/swapfile  -       -       swap    -       no      -
    2. reboot

Monday, February 05, 2007

ODF Add-in for Microsoft Word

Finally, we can read and save document as open document format from Microsoft Word. It means that everyone can use an open, unique standard format with different programs.

Ref: http://odf-converter.sourceforge.net/

Monday, January 29, 2007

AIX LVM Quick Refrence

Quick reference only. Assumed the reader is familiar with the concept of AIX LVM

Action

smitty command

Command line

Remarks

Create a VG

smitty mkvg

mkvg -y '' -s '128'


Create a LV

smitty mklv

mklv -t jfs -y ''

jfs2 is preferred

Create a filesystem

smitty crfs

crfs -v jfs -a bf=true -d -m -A

jfs2 is preferred

Resize FS

smitty chfs

chfs -a size=+


Extend a VG

smitty extendvg

extendvg ...


Reduce a VG

smitty reducevg

reducevg


Move PV data

smitty migratepv

migratepv -l


Online a vg

smitty varyonvg

varyonvg


Offline a vg

smitty varyoffvg

varyoffvg


Export a VG

smitty exportvg

exportvg


Import a VG

smitty importvg

importvg -y


Remove a filesystem

smitty rmfs

Not recommend to use CLI


Make a lvcopy

smitty mklvcopy


Mirror a LV

Remove a lvcopy

smitty rmlvcopy


Remove the mirror of a LV

Split a lvcopy

No smitty

splitlvcopy -y 1

Mirror a vg

smitty mirrorvg

mirrorvg


Unmirror a vg

smitty unmirrorvg

Not recommend to use CLI


Saturday, January 27, 2007

The World is Flat

Recently I am reading the book "The World is Flat". I am shocked by the changes of the 21 century.

Nowadays information technology shortens the distance between people. Anybody who know how to use the IT skill can join the platform and interact with others. This is so called the 'Flat World'. The author mentioned some companies start outsourcing some jobs or tasks to India, China, or other developing countries. This would reduce the cost as well as improve the efficiency. Because of a task of my company, I just communicated with a India support and completed the task. Apart from the language issue, there are no difference whether I was working with a local or a remote support. Perhaps you will find all the back end support will be in Indea, China, or somewhere you cannot imagine. Just as what the author said, the world is becoming flat.

Nevertheless, language is still a issue for me. It is not an easy task for me to speak in English with the Indian. Perhaps I still have to improve my English.

Ref: The book in Amazon