1827286 Members
1669 Online
109717 Solutions
New Discussion

Re: LVM files

 
SOLVED
Go to solution
Daniel Caçador
Regular Advisor

LVM files

Hi!

Which archives are used to configure or to modify the LVM?

Thank'S!
28 REPLIES 28
Torsten.
Acclaimed Contributor

Re: LVM files

an easy way to change LVM stuff is to use SAM -> disk and file systems.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: LVM files

You question is far from clear. The actual configuration data are stored in the the LVM disks themselves. The data necessary to restore the LVM metadata are created by the vgcfgbackup and are stored, by default, in /etc/lvmconf. There is also a binary file, /etc/lvmtab, that contains LVM data. You can partially examine its contents via "strings /etc/lvmtab". Essentially all of the commands that begin with "vg", "pv", and "lv" are used to create or modify LVM related structures. Start with "man vgcreate, pvcreate, and lvcreate" and the man pages themselves will point to the other commands.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Yes, but...lvmtab? inetd.conf? inittab....

it does not intervene?

Thanks
Daniel Caçador
Regular Advisor

Re: LVM files

I say all about this why I can not mount any LVOL....
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

LVOL's are not mounted; filesystems which might be housed on an LVOL are mounted. However, I think you may need to activate the volume group.

e.g. vgchange -a y /dev/vg01

Man vgchange for details.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Please! Look this screen shot.
Chan 007
Honored Contributor

Re: LVM files

Can you see any files in /dev/vg01 directory?
I guess you have exported your /dev/vg01.

find the map file and go an import
vgchnage -a n /dev/vg01
vgimport -m /dev/vg01 /dev/dsk/cxtydz
vgchangy -a y /dev/vg01
mount -a
chan
Daniel Caçador
Regular Advisor

Re: LVM files

Hi!
forgives mine little experience..

How I find the mapfile?

thank's
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

Post the output of this command:

vgdisplay -v /dev/vg00

and it's easier if you simply cut and paste the text rather than a screenshot.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Thank's!

Look the screen shot.
Daniel Caçador
Regular Advisor

Re: LVM files

I stay using the web console, only screen shot...sorry
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

I said vgdisplay -v /dev/vg00 and DO NOT use a screenshot -- copy and paste the output itself into your posting -- as text. I need the complete output and also do an ls -l /dev/vg00 and post that.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Sorry....I try but via web console has don't possible to mark the text and paste..

Very sorry...

But if you want to know about the lvol's..Yes, all OK.

Please, look the sreen shot off ls -l.


Thank's
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

Okay, I see your problem:

Under /dev/vg00 your greoup file has minor device number 0x010000 this means that all the LVOL device nodes must begin with 0x01 as well but yours begin with 0x00. Normally, vg00's group files uses 0x000000.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Thank's!!

How I fix this problem?

Very thank's!
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

The easist approach is cd /dev/vg00.
rm group
mknod group c 64 0x000000

sync; sync

reboot
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

Don't work...

What I can do now? See de screen shot..

Thank's
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

It worked; you now have another problem. You need to edit /etc/inittab and comment out all of the entries that begin with "ems" and issue an "init q".
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

I only can boot in single user mode (-lm), but don't have text editor...(like vi, ed, sed...).

How I edit this text?

Thank's Very very Thank's!
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

Well now that your LVM data are fixed you can mount /usr; mount /var; and mount /tmp in single user mode and thus can use vi. Of course, a real admin could simply use a shell script rewrite /etc/inittab.
If it ain't broke, I can fix that.
Daniel Caçador
Regular Advisor

Re: LVM files

For I to become me a good Admin. How I would make to edit without the editors?


Thank's!!!
A. Clay Stephenson
Acclaimed Contributor

Re: LVM files

You simply enter the script from the shell. It would be very easy as a awk command -- and there is a statically linked version of awk in /sbin. In your case though, mount the filesystems and you are ready to use vi.
If it ain't broke, I can fix that.
Prashant Zanwar_4
Respected Contributor

Re: LVM files

I remember you had same problem yday also and in last you said your friend sorted/resolved it and it was very simple blah...

Is your /stand getting stuck every day and you play with vg00 every day ! or ??

Day before yday also i saw similar post and then you closed saying u recreate lvm !

Just cusrious..

Rgds
Prashant

"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
James R. Ferguson
Acclaimed Contributor

Re: LVM files

Hi:

Without bothering to mount '/usr' you could use '/sbin/awk' to edit and replace your errant '/etc/inittab':

# awk '{if ($0~/ems/) {print "#"$0}}' /etc/inittab > /etc/inittab.new

# /sbin/mv /etc/inittab.new /etc/inittab

Regards!

...JRF...