1752679 Members
5150 Online
108789 Solutions
New Discussion юеВ

/etc/lvmconf too large

 
SOLVED
Go to solution
Test e Collaudo Dipart.
Occasional Advisor

/etc/lvmconf too large

Hi!
I have 277 vg configured on a production cluster and if I run vgcfgbackup for each vg the filesystem / becomes full, so I don't have a vgxx.conf for each VG and the root almost full!
I cannot extend the filesystem on line (contiguous allocation policy).
There are more solution for this problem,
here my suppositions:
1) Backup/restore vg00
2) pvmove lvol4 (but not all the system have more than 2 mirrored diks)
3) /etc/lvmconf as mountpoint for a new filesystem
4) a daily scheduled mv of all the vgxx.conf in the /etc/lvmconf directory

1,2,3 solutios need a LVM or system stop
4 is very unusual
I'd like to avoid any interruption

Any other idea?

...Is it possible to have /etc/lvmconf as a link?
Thank you!

Vale et valete
ZAMPO
7 REPLIES 7
Shaikh Imran
Honored Contributor

Re: /etc/lvmconf too large

Hi,
you can try using -f option with vgcfgbackup
-f option allows you to specify the backup directory other than default.
the syntax is
vgcfgbackup -f /tmp/vg00.conf vg00

Regards,
I'll sleep when i am dead.
Robert-Jan Goossens_1
Honored Contributor

Re: /etc/lvmconf too large

Hi,

How large is root filesystem and how large is the /etc/lvmconf? Did you check if there are other large unwanted files in root?

# du -kx / | sort -rn > /tmp/du.list
# find . -type f -size +1000 -xdev -exec ll {} \;

Just a thought :-)

Robert-Jan
Sunil Sharma_1
Honored Contributor

Re: /etc/lvmconf too large

Hi,

What about using -f with vgcfgbackup

/sbin/vgcfgbackup [-f vg_conf_path] [-u] vg_name


See man pages for more details


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Prashant Zanwar_4
Respected Contributor
Solution

Re: /etc/lvmconf too large

Hi,
Try and get rid of the stuff which is unuseful. Try and see of there are any core, text, doc, pdf, log files which can be easily removed.
And I would suggest to create a link to specified directory.

Say create some directory where ample space is available and create a link across, so your actual data is at different location while vgcfgbackup sees it the same location.

ln -s /var/adm/crash/etc_lvmconf /etc/lvmconf, make sure to have mirrored copies of the same.

Thanks
Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
Test e Collaudo Dipart.
Occasional Advisor

Re: /etc/lvmconf too large

Thanks to everybody!
But my root filesystem is about 300 Mb and about 50% is full.
Each vgxx.conf is about 1,5 Mb; 277 vg configured... 415,5 Mb...
Each time a vg is modified, the vgxx.conf is produced, and the old one is renamed as .old!
Is it possible to set as default another directory? (not a manually backup usign vgcfgbackup)
The /etc/lvmconf is busyed by the cmlvmd deamon; are there any counterindication to have a link instead of a directory as Prashant suggest?

Vale et valete
ZAMPO
Pete Randall
Outstanding Contributor

Re: /etc/lvmconf too large

Replace /etc/lvmconf with a link to another location where you have sufficient room. That should solve your problem.


Pete

Pete
Test e Collaudo Dipart.
Occasional Advisor

Re: /etc/lvmconf too large

Ok, many thanks to all!
I've made an external filesystem where to store all the vgxx.conf and to the next system reboot I will substitute the /etc/lvmconf directory with a link to that filesystem

Vale et valete
ZAMPO