LVM and VxVM

Few junk lines from "strings /etc/lvmtab" output

 
S K Rajavelu
Occasional Contributor

Few junk lines from "strings /etc/lvmtab" output

Strings /etc/lvmtab output is

/dev/vg00
qJE4
/dev/dsk/c2t0d0s2

there is no physical volume group or /etc/lvmpvg

Tried to recreate lvmtab using vgscan -v it gives the same output.

Tried vgexport and vgimport still same output

Plz let me know what's that extra line qJE4.

Thanks,
SK




4 REPLIES 4
S K Rajavelu
Occasional Contributor

Re: Few junk lines from "strings /etc/lvmtab" output

Here is the output of vgdisplay

--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 15
Open LV 15
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 4328
VGDA 2
PE Size (Mbytes) 16
Total PE 4318
Alloc PE 4318
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 32
Used PV 1

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 256
Used PV 1

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1008
Current LE 63
Allocated PE 63
Used PV 1

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 1008
Current LE 63
Allocated PE 63
Used PV 1

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 6000
Current LE 375
Allocated PE 375
Used PV 1

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 5008
Current LE 313
Allocated PE 313
Used PV 1

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 7008
Current LE 438
Allocated PE 438
Used PV 1

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 384
Allocated PE 384
Used PV 1

LV Name /dev/vg00/lvol9
LV Status available/syncd
LV Size (Mbytes) 2000
Current LE 125
Allocated PE 125
Used PV 1

LV Name /dev/vg00/lvol10
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 625
Allocated PE 625
Used PV 1

LV Name /dev/vg00/lvol11
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 625
Allocated PE 625
Used PV 1

LV Name /dev/vg00/hpvm
LV Status available/syncd
LV Size (Mbytes) 10000
Current LE 625
Allocated PE 625
Used PV 1

LV Name /dev/vg00/test3
LV Status available/syncd
LV Size (Mbytes) 48
Current LE 3
Allocated PE 3
Used PV 1

LV Name /dev/vg00/lvol14
LV Status available/syncd
LV Size (Mbytes) 3072
Current LE 192
Allocated PE 192
Used PV 1

LV Name /dev/vg00/perfLabs
LV Status available/syncd
LV Size (Mbytes) 3184
Current LE 199
Allocated PE 199
Used PV 1


--- Physical volumes ---
PV Name /dev/dsk/c2t0d0s2
PV Status available
Total PE 4318
Free PE 0
Autoswitch On
Hein van den Heuvel
Honored Contributor

Re: Few junk lines from "strings /etc/lvmtab" output

>> Plz let me know what's that extra line qJE4.

You are issueing a nonsense commmand, so the system responds with nonsense data. Makes sense? It's bindary data! You are not supposed to read it.

See:

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1030478
and
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=955898
and many more.
(So you are not alone!)


>> there is no physical volume group or /etc/lvmpvg

So, apparently there is no physical volumne group. This makes sense because there is nothing to group. There is just one physical volume! Duh!

Regards,
Hein.
Roland Piette
Regular Advisor

Re: Few junk lines from "strings /etc/lvmtab" output

Hi,

Following my experience, you have to delete your /etc/lvmtab (or rename it would be better) before recreate it with vgscan -v.

Roland
Torsten.
Acclaimed Contributor

Re: Few junk lines from "strings /etc/lvmtab" output

Hi,

the file is binary, so you should learn to read binary and all of this makes sense.

1) Try to find out, what the "strings" command does: "man strings".

2) Try to find out, what type of file /etc/lvmtab is: "file lvmtab"

3) Try to prevent the "curious" output:

"strings -n 8 /etc/lvmtab"

4) Have fun!

5) assign some points.

;-)

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!