archive mirror
 help / color / mirror / Atom feed
From: Zdenek Kabelac <>
To: "LVM general discussion and development" <>,
	"VESELÍK Jan" <>
Subject: Re: [linux-lvm] LVM2 - pvresize alert
Date: Tue, 12 Dec 2017 16:22:15 +0100	[thread overview]
Message-ID: <> (raw)
In-Reply-To: <>

Dne 12.12.2017 v 14:13 VESELÍK Jan napsal(a):
> Hello,
> I would like to suggest small tweak in command pvresize. If you use parameter 
> –setphysicalvolumesize, you will get only pasive wargning with this 
> potentially dangerous action. In comparrison to lvresize with parameter –L -, 
> meaning making logical volume smaller, you receive warning and prompt to 
> continue.
> Is it possible to implement this kind of prompt to enter yes or no before 
> every lvm action that could pottentially lead to data loss.


Latest versions (>= 2.02.171) of lvm2 provides this prompt:

# pvs
   PV         VG Fmt  Attr PSize   PFree
   /dev/loop0 vg lvm2 a--  <30,00g <30,00g

# pvresize --setphysical 1T /dev/loop0
   WARNING: /dev/loop0: Overriding real size 30,00 GiB. You could lose data.
/dev/loop0: Requested size 1,00 TiB exceeds real size 30,00 GiB. Proceed?  [y/n]:



      reply	other threads:[~2017-12-12 15:22 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12 13:13 [linux-lvm] LVM2 - pvresize alert VESELÍK Jan
2017-12-12 15:22 ` Zdenek Kabelac [this message]

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:

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \ \ \ \ \

* 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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).