savebase error while exteding filesystem on AIX

Posted on 2009-02-19
Medium Priority
Last Modified: 2013-11-17
Hi guys,

Got the following savebase error on asiaprd02 server when extending /t24_arease filesystem using smit.

Whats the impact?
Is this serious?

-- start ----

0516-1734 extendlv: Warning, savebase failed.  Please manually run 'savebase' be
fore rebooting.
Filesystem size changed to 125829120

---- end ----
Question by:aojha
  • 4
  • 3
LVL 68

Expert Comment

ID: 23690146
Hi again aojha,
don't panic - unless you're going to reboot nothing will happen.
We will have to analyze this in a step-by-step process.
Did you do something besides 'extendlv'? Changing/adding/removing disks in rootvg?
Anyway, at very first I need the output of  

ls -l /dev/hd*  
ls -l /dev/ipl*
lsvg -p rootvg
lsvg -l rootvg

and, for every hdisk found in lsvg -p rootvg
lspv -l [hdiskx]

Background is that your /dev/ipldevice entry might have got lost, or that there is something wrong with hd5 on your rootvg hdisks.
LVL 68

Expert Comment

ID: 23690181
... and, before all, make sure that you are really root when doing the extendlv!

Author Comment

ID: 23708279
Hi wmp, nice to see you again below are the outputs for the commands you requested. Thanks Atap
# ls -l /dev/hd*
brw-rw----    1 root     system       10,  8 Feb 12 19:35 /dev/hd1
brw-rw----    1 root     system       10,  9 Dec 18 16:29 /dev/hd10opt
brw-rw----    1 root     system       10,  5 Dec 18 16:27 /dev/hd2
brw-rw----    1 root     system       10,  7 Dec 18 16:28 /dev/hd3
brw-rw----    1 root     system       10,  4 Dec 18 16:27 /dev/hd4
brw-rw----    1 root     system       10,  1 Feb 19 12:56 /dev/hd5
brw-rw----    1 root     system       10,  2 Nov 25 11:51 /dev/hd6
brw-rw----    1 root     system       10,  3 Dec 18 16:26 /dev/hd8
brw-rw----    1 root     system       10,  6 Dec 18 16:28 /dev/hd9var
brw-------    1 root     system       19,  0 Nov 25 11:30 /dev/hdisk0
brw-------    1 root     system       19,  1 Nov 25 11:30 /dev/hdisk1

# ls -l /dev/ipl*
crw-rw----    2 root     system       10,  1 Nov 25 11:30 /dev/ipl_blv
crw-------    2 root     system       19,  0 Nov 25 11:30 /dev/ipldevice

# lsvg -p rootvg
hdisk0            active            546         164         109..15..00..00..40
hdisk1            active            546         164         11..00..00..44..109

# lsvg -l rootvg
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       2       2    closed/syncd  N/A
hd6                 paging     36      72      2    open/syncd    N/A
hd8                 jfs2log    1       2       2    open/syncd    N/A
hd4                 jfs2       8       16      2    open/syncd    /
hd2                 jfs2       20      40      2    open/syncd    /usr
hd9var              jfs2       1       2       2    open/syncd    /var
hd3                 jfs2       8       16      2    open/syncd    /tmp
hd1                 jfs2       3       6       2    open/syncd    /home
hd10opt             jfs2       8       16      2    open/syncd    /opt
lg_dumplv           sysdump    8       16      2    open/syncd    N/A
fslv00              jfs2       40      80      2    open/syncd    /software
fslv01              jfs2       240     480     2    open/syncd    /t24
secdumplv           sysdump    8       16      2    closed/syncd  N/A

# lspv -l hdisk0
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
hd2                   20      20      00..00..20..00..00    /usr
hd4                   8       8       00..00..08..00..00    /
hd8                   1       1       00..00..01..00..00    N/A
hd6                   36      36      00..36..00..00..00    N/A
hd10opt               8       8       00..00..08..00..00    /opt
hd1                   3       3       00..02..01..00..00    /home
hd3                   8       8       00..00..08..00..00    /tmp
hd9var                1       1       00..00..01..00..00    /var
fslv00                40      40      00..40..00..00..00    /software
hd5                   1       1       01..00..00..00..00    N/A
fslv01                240     240     00..00..62..109..69   /t24
secdumplv             8       8       00..08..00..00..00    N/A
lg_dumplv             8       8       00..08..00..00..00    N/A

# lspv -l hdisk1
LV NAME               LPs     PPs     DISTRIBUTION          MOUNT POINT
hd2                   20      20      20..00..00..00..00    /usr
hd4                   8       8       08..00..00..00..00    /
hd8                   1       1       01..00..00..00..00    N/A
hd6                   36      36      36..00..00..00..00    N/A
hd10opt               8       8       08..00..00..00..00    /opt
hd1                   3       3       00..00..00..03..00    /home
hd3                   8       8       08..00..00..00..00    /tmp
hd9var                1       1       01..00..00..00..00    /var
fslv00                40      40      00..40..00..00..00    /software
hd5                   1       1       01..00..00..00..00    N/A
fslv01                240     240     00..69..109..62..00   /t24
secdumplv             8       8       08..00..00..00..00    N/A
lg_dumplv             8       8       08..00..00..00..00    N/A
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

LVL 68

Expert Comment

ID: 23709198
Looks rather good.
How do you run your command?
You must be 'root', not only a member of the 'system' group.
If you use 'sudo', don't use 'sudo ksh'! Use e.g. 'sudo su -' instead.
Having considered this, please issue 'savebase'. Should it fail again, check your setting for ODMDIR (issue 'set' or 'printenv').
ODMDIR should point to /etc/objrepos.
If this is the case, try a 'bosboot -a -d hdisk0' and 'bosboot -a -d hdisk1'  Any error messages?


Author Comment

ID: 23710747
Hi wmp,

I run the command as root. I first login as aojha then su - to root.
Also I ran savebase -v on the server and it complete suceesfully so I think if I reboot then it should be fine. please let me know your thoughts.
Why would you think the error happened in the first place ? i extetnded the filesystem using smitty. could this be the issue.
LVL 68

Accepted Solution

woolmilkporc earned 2000 total points
ID: 23710990
Hi atap,
since the savebase ran successfuly I won't suspect any problems anymore. I don't even think you'll have to reboot.
Are the results of the initial 'extendlv'  as you expected them to be?
And no, smitty can't be the issue, given you ran it as root, too.
Some causes for savebase failing (they all seem not to be true in your case) -
- insufficient permissions
- /dev/ipldevice missing
- /dev/ipl_blv missing
- ODMDIR=/etc/objrepos missing
- hd5 corrupt in rootvg
The only thing I could imagine is that you accidentally typed 'su' alone instead of 'su -'. This would lead to root's environment not being setup correctly, especially ODMDIR.
Another theory could be that you ran into a 'race condition' with savebase starting too early (while extendlv had not yet completed).
Anyway, things should be fine now.
Cheers, and have fun!
Norbert (wmp)

Author Comment

ID: 23717814
your correct. it seems that the ODMDIR variable is not being set when I log in as myself and run sudo -i -u but when I export the variables as su - the path /etc/objrepos is being set.

ur a genious mate :-)



Featured Post

Upgrade your Question Security!

Add Premium security features to your question to ensure its privacy or anonymity. Learn more about your ability to control Question Security today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
I have been running these systems for a few years now and I am just very happy with them.   I just wanted to share the manual that I have created for upgrades and other things.  Oooh yes! FreeBSD makes me happy (as a server), no maintenance and I al…
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
Suggested Courses

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question