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/