savebase error while exteding filesystem on AIX

Posted on 2009-02-19
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
    LVL 68

    Expert Comment

    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

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

    Author Comment

    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
    LVL 68

    Expert Comment

    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

    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

    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

    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 :-)



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
    I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

    737 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now