Skip to contentSkip to conversation

How big is a PV?

linux-lvm Turbo Fredriksson 2 participants 6 messages Feb 13, 2002 – Feb 15, 2002

lore
Share & tools
lore
#0 lore raw

One of my PV's have krashed. I have a replacement disk, but I don't know exactly how big the PV was, so that I can recreate the PV...

'vgcfgrestore -ll' only shows me '15.55 GB', so that's useless...

World Trade Center Qaddafi Semtex tritium quiche Marxist ammunition Peking smuggle arrangements Serbian North Korea Iran Cocaine KGB [See http://www.aclu.org/echelonwatch/index.html for more about this]

#1 lore raw

Following patch should help. Will be in CVS soon.

tools/lib/pv_show.c 13 Feb 2002 10:24:36 -0000 renamed from tools/lib/pv_show.c 7 Feb 2002 16:32:45 -0000 1.6 +6 -4
@@ -86,16 +86,18 @@
       printf ( " Physical volume ---\n");
       printf ( "PV Name               %s\n", pv->pv_name);
       printf ( "VG Name               %s\n", pv->vg_name);
-      printf ( "PV Size               %s",
-               ( dummy = lvm_show_size ( pv->pv_size / 2, SHORT)));
+      printf ( "PV Size               %s [%u secs]",
+               ( dummy = lvm_show_size ( pv->pv_size / 2, SHORT)), pv->pv_size);
       free ( dummy);
       if ( pv->pe_size != 0 && pv->pe_total != 0) {
          printf ( " / NOT usable %s ",
-                  ( dummy = lvm_show_size ( ( pv->pv_size - pv->pe_size * pv->pe_total) / 2, SHORT)));
+                  ( dummy = lvm_show_size ( ( pv->pe_on_disk.base + pv->pe_on_disk.size) / 1024, SHORT)));
          free ( dummy);
          printf ( "[LVM: %s]",
                   ( dummy = lvm_show_size ( ( pv->pe_on_disk.base +
-                                        pv->pe_total * sizeof ( pe_disk_t)) / 1024,
+                                              pv->pe_total *
+                                              sizeof ( pe_disk_t))
+                                            / 1024,
                                         SHORT)));
          free ( dummy);
       }
Quoted 15 lines · Turbo Fredriksson

One of my PV's have krashed. I have a replacement disk, but I don't know exactly how big the PV was, so that I can recreate the PV...

'vgcfgrestore -ll' only shows me '15.55 GB', so that's useless...

World Trade Center Qaddafi Semtex tritium quiche Marxist ammunition Peking smuggle arrangements Serbian North Korea Iran Cocaine KGB [See http://www.aclu.org/echelonwatch/index.html for more about this]

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#2 lore raw

Quoting "Heinz J . Mauelshagen" <[email protected]>:

Quoted 1 line

Following patch should help. Will be in CVS soon.

How stable is the CVS tree currently? I'd prefer not to upgrade my production system with something that will break it (BADLY)...

critical NORAD nuclear bomb DES cracking FSF Serbian Marxist Iran Semtex strategic Uzi Khaddafi AK-47
[See http://www.aclu.org/echelonwatch/index.html for more about this]

#3 lore raw
Quoted 6 lines · Turbo Fredriksson

Quoting "Heinz J . Mauelshagen" <[email protected]>:

Quoted 1 line

Following patch should help. Will be in CVS soon.

How stable is the CVS tree currently? I'd prefer not to upgrade my production system with something that will break it (BADLY)...

Sure.

We are just testing for the 1.0.3 release but as long as the test are being run I can't give you more than the fact that I run it on all my systems here without breaking them.

If you are really concerned, please wait till Friday where we have planned to release 1.0.3.

Quoted 10 lines

critical NORAD nuclear bomb DES cracking FSF Serbian Marxist Iran Semtex strategic Uzi Khaddafi AK-47
[See http://www.aclu.org/echelonwatch/index.html for more about this]

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#4 lore raw
In reply to Turbo Fredriksson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Turbo" == Turbo Fredriksson <[email protected]> writes:

Turbo> Quoting "Heinz J . Mauelshagen" <[email protected]>:
>> Following patch should help. Will be in CVS soon.

I haven't upgraded my kernel yet, but by exporting the LD_LIBRARY_PATH=./lib, and running

./vgcfgrestore -ll -v -n vg1

I get

        PV Size               15.55 GB [32611887 secs] / NOT usable 4.18 MB [LVM: 139 KB]

So what's '32611887 secs'? Number of blocks?

assassination Delta Force Cuba Treasury NORAD SDI CIA Clinton bomb cracking attack Cocaine strategic fissionable PLO
[See http://www.aclu.org/echelonwatch/index.html for more about this]

#5 lore raw
Quoted 8 lines · Turbo Fredriksson
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Turbo" == Turbo Fredriksson <[email protected]> writes:

Turbo> Quoting "Heinz J . Mauelshagen" <[email protected]>:
>> Following patch should help. Will be in CVS soon.

I haven't upgraded my kernel yet, but by exporting the LD_LIBRARY_PATH=./lib, and running

Quoted 7 lines

./vgcfgrestore -ll -v -n vg1

I get

        PV Size               15.55 GB [32611887 secs] / NOT usable 4.18 MB [LVM: 139 KB]

So what's '32611887 secs'? Number of blocks?

Number of 512 Byte sectots.

Quoted 12 lines

assassination Delta Force Cuba Treasury NORAD SDI CIA Clinton bomb cracking attack Cocaine strategic fissionable PLO
[See http://www.aclu.org/echelonwatch/index.html for more about this]

_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

Signature · 15 lines
Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
[email protected]                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-