haconf -dump doesn't update main.cf

book

Article ID: 100003291

calendar_today

Updated On:

Description

Error Message

no error shown

Cause

In this example, main.cf and main.cf.previous are hardlinks to the same file, so VCS always overwrites the main.cf  with the main.cf.previous when performing a dump.

Resolution

check inodes of main.cf*

#ls -lait

    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.previous
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.08Aug2010.17.28.41
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.06Aug2010.17.20.39
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.04Aug2010.14.58.26
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf

If the inodes for main.cf and main.cf.previous are the same then rename main.cf.previous to a different name:

#mv main.cf.previous main.cf.previous.save

 

then perform haconf -dump

#haconf -dump -makero

 

 


Issue/Introduction

haconf -dump creates a main.cf.date file but main.cf doesn't get updated. for example:
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.previous
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.08Aug2010.17.28.41
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.06Aug2010.17.20.39
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf.04Aug2010.14.58.26
    309251 -rw-------   5 root     root      278137 Sep 15 23:37 /etc/VRTSvcs/conf/config/main.cf
    227317 -rw-------   1 root     root      285657 Sep 15 23:39 /etc/VRTSvcs/conf/config/main.cf.15Sep2010.23.39.07
    227333 -rw-------   1 root     root      285669 Sep 15 23:41 /etc/VRTSvcs/conf/config/main.cf.15Sep2010.23.41.16
    227343 -rw-------   1 root     root      285669 Sep 15 23:41 /etc/VRTSvcs/conf/config/main.cf.15Sep2010.23.41.52
    229247 -rw-------   1 root     root      287027 Sep 16 10:48 /etc/VRTSvcs/conf/config/main.cf.16Sep2010.10.48.59
    230889 -rw-------   1 root     root      286994 Sep 16 17:54 /etc/VRTSvcs/conf/config/main.cf.16Sep2010.17.54.06
    227975 -rw-------   1 root     root      287006 Sep 19 07:31 /etc/VRTSvcs/conf/config/main.cf.19Sep2010.07.31.09
    228386 -rw-------   1 root     root      286994 Sep 19 10:07 /etc/VRTSvcs/conf/config/main.cf.19Sep2010.10.07.38
    263509 -rw-------   1 root     root      286994 Sep 19 10:50 /etc/VRTSvcs/conf/config/main.cf.19Sep2010.10.50.26
    290170 -rw-------   1 root     root      286994 Sep 19 12:29 /etc/VRTSvcs/conf/config/main.cf.19Sep2010.12.29.26
    290181 -rw-------   1 root     root      286994 Sep 19 12:36 /etc/VRTSvcs/conf/config/main.cf.19Sep2010.12.36.57
    273097 -rw-------   1 root     root      287982 Sep 20 10:33 /etc/VRTSvcs/conf/config/main.cf.20Sep2010.10.33.03
    273106 -rw-------   1 root     root      287982 Sep 20 10:35 /etc/VRTSvcs/conf/config/main.cf.20Sep2010.10.35.18
    273190 -rw-------   1 root     root      317679 Sep 20 11:09 /etc/VRTSvcs/conf/config/main.cf.20Sep2010.11.09.21
    273200 -rw-------   1 root     root      315369 Sep 20 11:14 /etc/VRTSvcs/conf/config/main.cf.20Sep2010.11.14.36
    273209 -rw-------   1 root     root      317679 Sep 20 11:15 /etc/VRTSvcs/conf/config/main.cf.20Sep2010.11.15.07