Error encountered in creating a filesystem

Hi experts,

Need help on the below error please.
I am creating Filesystem and it fails with the below errors :frowning:

Command: failed        stdout: yes           stderr: no
Before command completion, additional instructions may appear below.
0518-506 odmget: Cannot open object class PdAt
        Check path name and permissions.
3001-101 The Trusted Computing Base is not enabled on this machine.
        To enable the Trusted Computing Base, you must reinstall and
        set the 'Install Trusted Computing Base' option to YES.
        No checking is being performed.
0516-1734 mklv: Warning, savebase failed.  Please manually run 'savebase' before rebooting.
logform: getattr failed: No such file or directory
logform: lvname:loglv00, conferrno:6
0518-506 odmget: Cannot open object class PdAt
        Check path name and permissions.
0518-506 odmget: Cannot open object class SWservAt
        Check path name and permissions.
0518-506 odmget: Cannot open object class SWservAt
        Check path name and permissions.
3001-101 The Trusted Computing Base is not enabled on this machine.
        To enable the Trusted Computing Base, you must reinstall and
        set the 'Install Trusted Computing Base' option to YES.
        No checking is being performed.
rmlv: Logical volume loglv00 is removed.
0516-1734 rmlv: Warning, savebase failed.  Please manually run 'savebase' before rebooting.

What exactly did you select in smit (can check smit.script and smit.log for the issued commands)?
What OS level is it ( oslevel -s ? Seems there is problems reading and writing to the ODM. No clue why it talks about the TCB.

Did it work ever before? If yes, what has been changed on the system?

Just to make sure it is not some effect of Secure by Default (available from AIX 6.1 or higher) - could you also post the output of

odmget -q "attribute like SbD_STATE" PdAt

if there is any? Thanks.

Hi zaxxon,

 
#  oslevel -s
6100-04-04-1014
 
 
#  odmget -q "attribute like SbD_STATE" PdAt
0518-506 odmget: Cannot open object class PdAt
        Check path name and permissions.
 

but if i am a single user, i can see the details below

 
$ odmget -q "attribute like SbD_STATE" PdAt
PdAt:
        uniquetype = ""
        attribute = "SbD_STATE"
        deflt = "sbd_disabled"
        values = ""
        width = ""
        type = ""
        generic = ""
        rep = ""
        nls_index = 0
 

-Rhea-

Ok, at least it is no Secure by Default installation. On the other hand for some reason your root user is not able to access the ODM while another simple user can.
Looks like some strange permission problem. Is there any permissions being set with RBAC?

What about the other questions I asked? :slight_smile: :
Did it work ever before? If yes, what has been changed on the system?

No, I just actually built it a few days ago...i am just creating the FS today... :frowning:
I didnt change any configurations on the systems...

and i was just checking

 
#  bootlist -m normal -o
-
-
-
-

doesnt show the bootlist...

That's not good.

Issue following please:

lsvg rootvg

lsvg -l rootvg

lspv| grep rootvg

for a in $(lspv| awk '/rootvg/ {print $1}'); do lsdev -Ccdisk -l $a; done

ls -la /etc/objrepos
#  lsvg rootvg
VOLUME GROUP:       rootvg                   VG IDENTIFIER:  00ca12b400004c000000012fba411559
VG STATE:           active                   PP SIZE:        64 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      555 (35520 megabytes)
MAX LVs:            256                      FREE PPs:       345 (22080 megabytes)
LVs:                12                       USED PPs:       210 (13440 megabytes)
OPEN LVs:           11                       QUORUM:         2 (Enabled)
TOTAL PVs:          1                        VG DESCRIPTORS: 2
STALE PVs:          0                        STALE PPs:      0
ACTIVE PVs:         1                        AUTO ON:        yes
MAX PPs per VG:     32512                                     
MAX PPs per PV:     1016                     MAX PVs:        32
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable 
#  lsvg -l rootvg
rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     32      32      1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       2       2       1    open/syncd    /
hd2                 jfs2       32      32      1    open/syncd    /usr
hd9var              jfs2       32      32      1    open/syncd    /var
hd3                 jfs2       32      32      1    open/syncd    /tmp
hd1                 jfs2       32      32      1    open/syncd    /lhome
hd10opt             jfs2       32      32      1    open/syncd    /opt
hd11admin           jfs2       2       2       1    open/syncd    /admin
livedump            jfs2       4       4       1    open/syncd    /var/adm/ras/livedump
lg_dumplv           sysdump    8       8       1    open/syncd    N/A
#  lspv| grep rootvg
hdisk0          00ca12b4bfaf3bbf                    rootvg          active
 #  for a in $(lspv| awk '/rootvg/ {print $1}'); do lsdev -Ccdisk -l $a; done
hdisk0 Available  Virtual SCSI Disk Drive

#  ls -la /etc/objrepos
total 2328
drwxrwxr-x    2 root     system         4096 May  4 20:19 .
drwxr-xr-x   30 root     system         8192 May 18 10:22 ..
-rw-r--r--    1 bin      bin            4096 May  4 10:24 ATM_PVC
-rw-r--r--    1 root     system         4096 May  4 11:23 CDiagAtt
-rw-r--r--    1 root     system         4096 May  4 11:23 CDiagAtt.vc
-rw-r--r--    1 root     system         4096 May  4 10:06 CDiagDev
-rw-r--r--    1 root     system        16384 May  4 11:19 Config_Rules
-rw-r--r--    1 root     system        12288 May 18 06:41 CuAt
-rw-r--r--    1 root     system         4096 May 18 06:41 CuAt.vc
-rw-------    1 root     system         4096 May  4 11:22 CuData
-rw-------    1 root     system         4096 May  4 11:22 CuData.vc
-rw-r--r--    1 root     system         4096 May 18 06:41 CuDep
-rw-r--r--    1 root     system         8192 May 18 06:41 CuDv
-rw-r--r--    1 root     system        32768 May 18 06:41 CuDvDr
-rw-r--r--    1 root     system         4096 May  4 11:22 CuPath
-rw-r--r--    1 root     system         4096 May  4 11:22 CuPath.vc
-rw-r--r--    1 root     system         4096 May  4 11:22 CuPathAt
-rw-r--r--    1 root     system         4096 May  4 11:22 CuPathAt.vc
-rw-r--r--    1 root     system         8192 May  4 11:22 CuVPD
-rw-r--r--    1 root     system         4096 May  4 11:22 CuWxt
-rw-r--r--    1 root     system         4096 May  4 10:06 DAVars
lrwxrwxrwx    1 root     system           28 May  4 10:07 DSMOptions -> /usr/lib/objrepos/DSMOptions
lrwxrwxrwx    1 root     system           31 May  4 10:07 DSMOptions.vc -> /usr/lib/objrepos/DSMOptions.vc
lrwxrwxrwx    1 root     system           24 May  4 10:07 DSMenu -> /usr/lib/objrepos/DSMenu
-rw-r--r--    1 root     system         4096 May  4 10:06 FRUB
-rw-r--r--    1 root     system         4096 May  4 10:06 FRUB_SRC
-rw-r--r--    1 root     system         4096 May  4 10:06 FRUs
-rw-r--r--    1 root     system         4096 May  4 10:06 FRUs_src
-rw-r--r--    1 root     system         4096 May  4 10:06 MenuGoal
lrwxrwxrwx    1 root     system           26 May  4 10:07 PDiagAtt -> /usr/lib/objrepos/PDiagAtt
lrwxrwxrwx    1 root     system           29 May  4 10:07 PDiagAtt.vc -> /usr/lib/objrepos/PDiagAtt.vc
lrwxrwxrwx    1 root     system           26 May  4 10:07 PDiagDev -> /usr/lib/objrepos/PDiagDev
lrwxrwxrwx    1 root     system           29 May  4 10:07 PDiagDev.vc -> /usr/lib/objrepos/PDiagDev.vc
lrwxrwxrwx    1 root     system           26 May  4 10:07 PDiagRes -> /usr/lib/objrepos/PDiagRes
lrwxrwxrwx    1 root     system           29 May  4 10:07 PDiagRes.vc -> /usr/lib/objrepos/PDiagRes.vc
lrwxrwxrwx    1 root     system           27 May  4 10:07 PDiagTask -> /usr/lib/objrepos/PDiagTask
lrwxrwxrwx    1 root     system           30 May  4 10:07 PDiagTask.vc -> /usr/lib/objrepos/PDiagTask.vc
lrwxrwxrwx    1 root     system           22 May  4 10:07 PdAt -> /usr/lib/objrepos/PdAt
lrwxrwxrwx    1 root     system           25 May  4 10:07 PdAt.vc -> /usr/lib/objrepos/PdAt.vc
lrwxrwxrwx    1 root     system           25 May  4 10:07 PdAtXtd -> /usr/lib/objrepos/PdAtXtd
lrwxrwxrwx    1 root     system           28 May  4 10:07 PdAtXtd.vc -> /usr/lib/objrepos/PdAtXtd.vc
lrwxrwxrwx    1 root     system           22 May  4 10:07 PdCn -> /usr/lib/objrepos/PdCn
lrwxrwxrwx    1 root     system           22 May  4 10:07 PdDv -> /usr/lib/objrepos/PdDv
lrwxrwxrwx    1 root     system           25 May  4 10:07 PdDv.vc -> /usr/lib/objrepos/PdDv.vc
lrwxrwxrwx    1 root     system           26 May  4 10:07 PdPathAt -> /usr/lib/objrepos/PdPathAt
lrwxrwxrwx    1 root     system           29 May  4 10:07 PdPathAt.vc -> /usr/lib/objrepos/PdPathAt.vc
-rw-rw-r--    1 root     system         4096 May  4 10:06 SRCextmeth
-rw-rw-r--    1 root     system         4096 May  4 10:52 SRCnotify
-r--r--r--    1 root     system            0 May  4 10:16 SRCodmlock
-rw-rw-r--    1 root     system         4096 May  4 10:52 SRCsubsvr
-rw-rw-r--    1 root     system       380928 May  4 11:22 SRCsubsys
-rw-rw-r--    1 root     system        12288 May  4 11:23 SWservAt
-rw-rw-r--    1 root     system        16384 May  4 11:23 SWservAt.vc
-rw-r--r--    1 root     system         4096 May  4 10:06 TMInput
-r--r--r--    1 root     system            0 May  4 10:07 config_lock
lrwxrwxrwx    1 root     system           31 May  4 10:25 crypto_module -> /usr/lib/objrepos/crypto_module
lrwxrwxrwx    1 root     system           34 May  4 10:25 crypto_module.vc -> /usr/lib/objrepos/crypto_module.vc
-rw-rw-r--    1 root     system        20480 May  4 11:22 errnotify
-rw-rw-r--    1 root     system        57344 May 12 10:37 history
-rw-rw-r--    1 root     system         4096 May 12 10:37 history.vc
-rw-rw-r--    1 root     system       278528 May  4 11:19 inventory
-rw-rw-r--    1 root     system         4096 May  4 11:19 inventory.vc
-rw-rw-r--    1 root     system        53248 May 12 10:37 lpp
-rw-rw-r--    1 root     system        12288 May 12 10:37 lpp.vc
-rw-rw-r--    1 root     system        90112 May 12 10:37 product
-rw-rw-r--    1 root     system        57344 May 12 10:37 product.vc
-rw-rw-r--    1 root     system         4096 May  4 20:19 usilc
-rw-rw-r--    1 root     system         4096 May  4 20:19 usilc.vc

Ok, so your rootvg looks intact, and it is placed on a virtual disk, I guess being supplied by a Virtual I/O Server (VIOS). Also your ODM files are there, which is a good sign but must be the case anyway, since the other user was able to retrieve information from it.

You didn't write yet, what smit.log and smit.script contained when you issued the failing option from SMIT.

Try if the following works as root:

bootlist -m normal hdisk0
bosboot -ad /dev/hdisk0

If you have additional boot devices but hdisk0 add them seprated by spaces to the bootlist command.
Post any error messages from the commands.

Try following:

root@somehost:/> mklv -c1 -tjfs2 -y lvtest rootvg 1
lvtest
root@somehost:/> crfs -vjfs2 -d /dev/lvtest -m /test
File system created successfully.
130864 kilobytes total disk space.
New File System size is 262144
root@somehost:/> mount /test
root@somehost:/> df /test
Filesystem    1024-blocks      Used      Free %Used    Iused    Ifree %Iused Mounted on
/dev/lvtest        131072       348    130724    1%        4    29077     1% /test
root@somehost:/> touch /test/bla
root@somehost:/> ls -la /test
total 8
drwxr-xr-x    3 root     system          256 May 18 12:38 .
drwxr-xr-x   33 root     system         4096 Mar 26 16:35 ..
-rw-r--r--    1 root     system            0 May 18 12:38 bla
drwxr-xr-x    2 root     system          256 May 18 12:38 lost+found
root@somehost:/> umount /test
root@somehost:/> rmfs /test
rmlv: Logical volume lvtest is removed.

Post any error messages as well.

Don't forget to use code tags :slight_smile:

#  bootlist -m normal -o
-
-
-
-
 
#  bosboot -ad /dev/hdisk0
bosboot: Boot image is 42994 512 byte blocks.
#  mklv -c1 -tjfs2 -y lvtest rootvg 1
0518-506 odmget: Cannot open object class PdAt
        Check path name and permissions.
3001-101 The Trusted Computing Base is not enabled on this machine.
        To enable the Trusted Computing Base, you must reinstall and
        set the 'Install Trusted Computing Base' option to YES.
        No checking is being performed.
lvtest

0516-1734 mklv: Warning, savebase failed. Please manually run 'savebase' before rebooting.
#
[/CODE]

thats the exact error when i create lv as well, but even though got error, lv was created...

while creating FS, (below) the odm error is not there already...

#  crfs -vjfs2 -d /dev/lvtest -m /test
File system created successfully.
65328 kilobytes total disk space.
New File System size is 131072
0516-1734 chlv: Warning, savebase failed.  Please manually run 'savebase' before rebooting.

---------- Post updated at 06:05 AM ---------- Previous update was at 05:58 AM ----------

Heres the continuation as i forgot to mount the fs

#  mount /test
df /test
Filesystem    512-blocks      Free %Used    Iused %Iused Mounted on
/dev/lvtest       131072    130392    1%        4     1% /test
/rr57104 RC=0 [IDENbuild] root@fdcicgoptaa01c#  touch /test/bla
/rr57104 RC=0 [IDENbuild] root@fdcicgoptaa01c#  ls -la /test
total 8
drwxr-xr-x    3 root     system          256 May 18 12:03 .
drwxr-xr-x   23 root     system         4096 May 18 11:56 ..
-rw-r--r--    1 root     system            0 May 18 12:03 bla
drwxr-xr-x    2 root     system          256 May 18 11:56 lost+found
#  umount /test
#  rmfs /test
0518-506 odmget: Cannot open object class PdAt
        Check path name and permissions.
0518-506 odmget: Cannot open object class SWservAt
        Check path name and permissions.
0518-506 odmget: Cannot open object class SWservAt
        Check path name and permissions.
3001-101 The Trusted Computing Base is not enabled on this machine.
        To enable the Trusted Computing Base, you must reinstall and
        set the 'Install Trusted Computing Base' option to YES.
        No checking is being performed.
rmlv: Logical volume lvtest is removed.
0516-1734 rmlv: Warning, savebase failed.  Please manually run 'savebase' before rebooting.

the error appears again on removng lv

I meant you to write the bootlist, not just show it. Nevermind I think I know what is wrong:
In the environment of root there is ODMDIR=/etc/objrepos missing. I don't know how this could happen, but you should assure, that you have following entry in /etc/environment :

ODMDIR=/etc/objrepos

After this root should be able to do the things you want to do. Don't forget to write your bootlist:

bootlist -m normal hdisk0
savebase
1 Like

Great...

I works now...The error is totally gone...

Many Thanks :slight_smile: