setaOffice

Unix Intelligence Gathering

Posts Tagged ‘aix’

AIX Volume Group can’t properly display the Logical Volume Type

Posted by Emerson Takahashi on October 13, 2009

Listing the logical volumes inside the volume group. AIX can’t determine the LV type.

root@aix:/ # lsvg -l oravg
oravg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
oravg_lg            ??? 1     1     1    closed/syncd  N/A
ora_lv              ??? 1064  1064  2    closed/syncd  N/A

To solve this problem we’ll export then reimport the VG. But first we’ll need to deactivate it.

root@aix:/ # varyoffvg oravg

And we need at least one disk that is part of the volume group because it has the information needed to import.

root@aix:/ # lspv | grep oravg
hdisk251
00c5f1d097cc8a6e                   oravg
hdisk221
00c5f1d0a7bffede                    oravg

Now we run exportvg and the server will no longer know it once had the volume group.

root@aix:/ # exportvg oravg

Let’s list all the volume groups the server is aware that exists.

root@aix:/ # lsvg
rootvg
datavg
cache01vg
cache02vg

Only the rootvg is currently imported and active.

root@aix:/ # lsvg -o
rootvg

Let’s reimport the volume group. We need to declare one of the disks we listed before to reimport the volume group.

root@aix:/ # importvg -y oravg hdisk251
oravg

Next, we activate the volume group

root@aix:/ # varyonvg oravg

Listing the Volume Group. Volume Group TYPE listed.

root@aix:/ # lsvg -l oravg
oravg:
LV NAME             TYPE       LPs   PPs   PVs  LV STATE      MOUNT POINT
oravg_lg            jfs2log    1     1     1    closed/syncd  N/A
ora_lv              jfs2       1064  1064  2    closed/syncd  /u01

Posted in AIX | Tagged: , , | Leave a Comment »

AIX Error Code 0503-003 geninstall: The specified device is not a valid device or file.

Posted by Emerson Takahashi on February 28, 2009

I had the following error when trying to upgrade AIX Maintenance Level: 0503-003 geninstall:  The specified device /tmp/patches is not a valid device or file.

What happened is that my .toc file was empty and I needed to recreate it using inutoc /tmp/patches. After that the upgrade went smoothly.

root@aix53:/ # instfix -i | grep ML
All filesets for 5.3.0.0_AIX_ML were found.
All filesets for 5300-01_AIX_ML were found.
All filesets for 5300-02_AIX_ML were found.
All filesets for 5300-03_AIX_ML were found.
All filesets for 5300-04_AIX_ML were found.
All filesets for 5300-05_AIX_ML were found.
All filesets for 5300-06_AIX_ML were found.
All filesets for 5300-07_AIX_ML were found.
All filesets for 5300-08_AIX_ML were found.
All filesets for 5300-09_AIX_ML were found.

Posted in AIX | Tagged: , | Leave a Comment »

How to make public authentication work in SSH

Posted by Emerson Takahashi on August 28, 2007

After you set up the public key authentication in any Unix server, if it keeps asking for your password even after you put your public key in the ~/.ssh/authorized_keys file you need to check the file permissions.

To fix this problem, check if the owner and the file permission is set right on:
Home directory (700)
.ssh directory (700)
authorized_keys file (600)

Posted in Security | Tagged: , , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 250 other followers