From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (ext-mx04.extmail.prod.ext.phx2.redhat.com [10.5.110.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A1985614C8 for ; Tue, 12 Dec 2017 13:13:14 +0000 (UTC) Received: from mail1b.csob.cz (mail1b.csob.cz [193.245.32.150]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id A516780481 for ; Tue, 12 Dec 2017 13:13:10 +0000 (UTC) From: =?iso-8859-2?Q?VESEL=CDK_Jan?= Date: Tue, 12 Dec 2017 13:13:06 +0000 Message-ID: Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_VI1PR05MB15032E32F70BEB2B14AABE56D1340VI1PR05MB1503eurp_" MIME-Version: 1.0 Subject: [linux-lvm] LVM2 - pvresize alert Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: "linux-lvm@redhat.com" --_000_VI1PR05MB15032E32F70BEB2B14AABE56D1340VI1PR05MB1503eurp_ Content-Type: text/plain; charset="iso-8859-2" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Hello, I would like to suggest small tweak in command pvresize. If you use paramet= er -setphysicalvolumesize, you will get only pasive wargning with this pote= ntially dangerous action. In comparrison to lvresize with parameter -L -, m= eaning making logical volume smaller, you receive warning and prompt to con= tinue. Is it possible to implement this kind of prompt to enter yes or no before e= very lvm action that could pottentially lead to data loss. Thank you for consideration and have a great day. Best regards Jan Veselik Administr=E1tor =C8eskoslovensk=E1 obchodn=ED banka, a. s. Linux Servery Radlick=E1 714/113a 158 00 Praha 5 e-mail: jveselik@csob.cz http://www.csob.cz/ Je nutn=E9 tento e-mail tisknout? Myslete na =BEivotn=ED prost=F8ed=ED. :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::= :::::::::::::: Pravni informace: Tento e-mail a vsechny pripojene soubory (i) jsou duverne= a mohou byt chraneny zakonem a (ii) nejsou navrhem na uzavreni smlouvy, le= daze jsou jako navrh na uzavreni smlouvy vyslovne oznaceny. Tento e-mail je= urcen pouze uvedenemu prijemci a dalsim osobam, ktere jsou jmenovite uved= eny jako prijemci. Jestlize nejste opravneny prijemce, pak jakakoliv forma = zverejneni, reprodukce, kopirovani, distribuce nebo sireni je prisne zakaza= na. Pokud jste obdrzel tento e-mail omylem, oznamte to, prosim, neprodlene = jeho odesilateli a pak jej vymazte. CSOB neruci za bezchybny a uplny prenos= zasilanych informaci, ani za zpozdeni nebo preruseni prenosu a ani za skod= y zpusobene pouzitim nebo duverou v tyto informace. Legal Disclaimer: This e-mail and any attached files (i) are confidential a= nd may be legally privileged and (ii) do not constitute any proposal for co= nclusion of an agreement, unless they are expressly designated as such. If = you are not the addressee, any disclosure, reproduction, copying, distribut= ion, or other dissemination or use of this communication is strictly prohib= ited. If you have received this transmission in error please notify CSOB im= mediately and then delete this e-mail. CSOB does not accept liability for t= he correct and complete transmission of the information, nor for any delay = or interruption of the transmission, nor for damages arising from the use o= f or reliance on the information. All e-mail messages addressed to, receive= d or sent by CSOB or CSOB employees are deemed to be professional in nature= . Accordingly, the sender or recipient of these messages agrees that they m= ay be read by other CSOB employees than the official recipient or sender in= order to ensure the continuity of work-related activities and allow superv= ision thereof. --_000_VI1PR05MB15032E32F70BEB2B14AABE56D1340VI1PR05MB1503eurp_ Content-Type: text/html; charset="iso-8859-2" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable

Hello,

 

I would like to suggest small tweak in command pvresize. If= you use parameter –setphysicalvolumesize, you will get only pasive w= argning with this potentially dangerous action. In comparrison to lvresize with parameter –L -, meaning making logic= al volume smaller, you receive warning and prompt to continue.

 

Is it possible to implement this kind of prompt to enter ye= s or no before every lvm action that could pottentially lead to data loss.<= o:p>

 

Thank you for consideration and have a great day.

 

 

Best regards

 

 

Jan Veselik

Administr=E1tor

=C8eskoslovensk=E1 obchodn=ED banka, a. s.
Linux Servery
Radlick=E1 714/113a
158 00 Praha 5


e-mail: j= veselik@csob.cz
http://www.cs= ob.cz/

Je nut= n=E9 tento e-mail tisknout? Myslete na =BEivotn=ED prost=F8ed=ED.

 

:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::= ::::::::::::::

Pravni informace: Tento e-mail a vsechny pripoje= ne soubory (i) jsou duverne a mohou byt chraneny zakonem a (ii) nejsou navr= hem na uzavreni smlouvy ani jeho prijetim, ledaze jsou tak vyslovne oznacen= y. Tento e-mail je urcen pouze uvedenemu prijemci a dalsim osobam, ktere &n= bsp;jsou jmenovite uvedeny jako prijemci. Jestlize nejste opravneny prijemc= e, pak jakakoliv forma zverejneni, reprodukce, kopirovani, distribuce nebo = sireni je prisne zakazana. Pokud jste obdrzel tento e-mail omylem, oznamte = to, prosim, neprodlene jeho odesilateli a pak jej vymazte. CSOB neruci za b= ezchybny a uplny prenos zasilanych informaci, ani za zpozdeni nebo prerusen= i prenosu a ani za skody zpusobene pouzitim nebo duverou v tyto informace.<= br>
Legal Disclaimer: This e-mail and any attached files (i) are confid= ential and may be legally privileged and (ii) do not constitute any proposa= l for conclusion of an agreement or its acceptance, unless they are express= ly designated as such. If you are not the addressee, any disclosure, reprod= uction, copying, distribution, or other dissemination or use of this commun= ication is strictly prohibited. If you have received this transmission in e= rror please notify CSOB immediately and then delete this e-mail. CSOB does = not accept liability for the correct and complete transmission of the infor= mation, nor for any delay or interruption of the transmission, nor for dama= ges arising from the use of or reliance on the information. All e-mail mess= ages addressed to, received or sent by CSOB or CSOB employees are deemed to= be professional in nature. Accordingly, the sender or recipient of these m= essages agrees that they may be read by other CSOB employees than the offic= ial recipient or sender in order to ensur  e the continuity of work-re= lated activities and allow supervision thereof. --_000_VI1PR05MB15032E32F70BEB2B14AABE56D1340VI1PR05MB1503eurp_--