From: "Heinz J . Mauelshagen" <mauelshagen@sistina.com>
To: linux-lvm@sistina.com
Subject: Re: [linux-lvm] How big is a PV?
Date: Wed Feb 13 04:25:02 2002 [thread overview]
Message-ID: <20020213112404.B7457@sistina.com> (raw)
In-Reply-To: <87vgd1935x.fsf@papadoc.bayour.com>; from turbo@bayour.com on Wed, Feb 13, 2002 at 09:50:02AM +0100
Following patch should help. Will be in CVS soon.
--- LVM/tools/lib/pv_show.c 7 Feb 2002 16:32:45 -0000 1.6
+++ LVM/tools/lib/pv_show.c 13 Feb 2002 10:24:36 -0000
@@ -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);
}
On Wed, Feb 13, 2002 at 09:50:02AM +0100, Turbo Fredriksson wrote:
> 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
> linux-lvm@sistina.com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html
--
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
Mauelshagen@Sistina.com +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
next prev parent reply other threads:[~2002-02-13 4:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-13 2:50 [linux-lvm] How big is a PV? Turbo Fredriksson
2002-02-13 4:25 ` Heinz J . Mauelshagen [this message]
2002-02-13 5:10 ` Turbo Fredriksson
2002-02-13 15:41 ` Heinz J . Mauelshagen
2002-02-15 4:31 ` Turbo Fredriksson
2002-02-15 5:08 ` Heinz J . Mauelshagen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020213112404.B7457@sistina.com \
--to=mauelshagen@sistina.com \
--cc=linux-lvm@sistina.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.