Re: LVM: how to avoid scanning all devices

2018-01-03 Thread Steve Keller
On Wed, Dec 20, 2017 at 02:17:59PM +1100, Igor Cicimov wrote:
 
> Look at filter examples in /etc/lvm/lvm.conf
 
That's not what I'm looking for.  I *do* have LVM physical and logical
volumes on most of my drives, e.g. a volume group on my backup drive.
And I want an explicit call to vgscan to find all these volumes.
Therefore a filter excluding these device is not the solution.

But I dislike all my drives spinning up and having to wait for that when I
simply call vgdisplay vg0 to see how much space is left in my primary volume
group with /, /usr, /var and /home file systems, which are active all time.

Steve



Re: LVM: how to avoid scanning all devices

2017-12-19 Thread Igor Cicimov
On 15 Dec 2017 11:36 pm, "Steve Keller"  wrote:

When calling LVM commands it seems they all scan all disks for
physical volumes.  This is annoying because it spins up all disks that
are currently idle and causes long delays to wait for these disks to
come up.  Also, I don't understand why LVM commands scan the disks so
often since the information is in /etc/lvm already.  For example a
command like vgdisplay vg0 where vg0 is actively used and on a disk
that is up and running still causes a long delay because it scans all
my devices for other volumes although this is completely unneeded.

IMO only an explicit call to vgscan should scan for and update all LVM
information.

Steve


Look at filter examples in /etc/lvm/lvm.conf


Re: LVM: how to avoid scanning all devices

2017-12-18 Thread Andy Smith
Hi Steve,

On Fri, Dec 15, 2017 at 01:19:46PM +0100, Steve Keller wrote:
> When calling LVM commands it seems they all scan all disks for
> physical volumes.  This is annoying because it spins up all disks that
> are currently idle and causes long delays to wait for these disks to
> come up.

Can you avoid it by using global_filter to restrict LVM's operation
to certain devices?

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting



LVM: how to avoid scanning all devices

2017-12-15 Thread Steve Keller
When calling LVM commands it seems they all scan all disks for
physical volumes.  This is annoying because it spins up all disks that
are currently idle and causes long delays to wait for these disks to
come up.  Also, I don't understand why LVM commands scan the disks so
often since the information is in /etc/lvm already.  For example a
command like vgdisplay vg0 where vg0 is actively used and on a disk
that is up and running still causes a long delay because it scans all
my devices for other volumes although this is completely unneeded.

IMO only an explicit call to vgscan should scan for and update all LVM
information.

Steve
 



Re: LVM how to

2009-06-13 Thread Suno Ano

 Gianni> how can I resize the LVM default partition layout of debian?
 Gianni> The root is to small around 400mb... I looked around the web
 Gianni> but it look like I need to do that from a rescue cd, which one
 Gianni> should I use? Any good link for a easy how to :)

I wrote an article about it which also covers resizing
http://sunoano.name/ws/public_xhtml/lvm.html

If you want to resize the root partition then using some sort of CD
certainly is the best/easiest choice. http://en.wikipedia.org/wiki/Grml



pgpHMIK60JtlC.pgp
Description: PGP signature


Re: LVM how to

2009-06-03 Thread Hendrik Boom
On Wed, 03 Jun 2009 16:31:19 -0500, Boyd Stephen Smith Jr. wrote:

> In , Hendrik Boom wrote:
>>On Wed, 20 May 2009 00:34:24 +0100, Roger Leigh wrote:

>>> You don't need a rescue CD, and you can even do it while the
>>> filesystem is mounted!
>>
>>So the warnings about unmounting the file system before expanding it in
>>the "LVM HOWTO section 11.9. Extending a logical volume" at
>>http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html are strictly obsolete?
>>
>>I'm talking about an etch system with an ext3 file system on llvm on
>>raid.
> 
> While I still recommend a backup,

I always recommend backups.  Multiple backups on different continents, 
offline in your friends' sock drawers work great.

> I've never needed one when expanding
> reiserfs or ext2/3.[1!]  JFS and XFS are also supposed be to growable
> online.

Just did that.  Worked great.  Thanks.

> 
> If shrinking a filesystem, you will need to unmount it; some filesystems
> don't like being shrunk at all.

Yeah.  Taking away data is trickier.

-- hendrik



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-06-03 Thread Boyd Stephen Smith Jr.
In , Hendrik Boom wrote:
>On Wed, 20 May 2009 00:34:24 +0100, Roger Leigh wrote:
>> On Wed, May 20, 2009 at 07:17:48AM +1000, gianni wrote:
>>> HI lists
>>> how can I resize the LVM default partition layout of debian? the root
>>> is to small around 400mb... I looked around the web but it look like I
>>> need to do that from a rescue cd, which one should I use?
>>
>> You don't need a rescue CD, and you can even do it while the filesystem
>> is mounted!
>
>So the warnings about unmounting the file system before expanding it in
>the "LVM HOWTO section 11.9. Extending a logical volume" at
>http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
>are strictly obsolete?
>
>I'm talking about an etch system with an ext3 file system on llvm on raid.

While I still recommend a backup, I've never needed one when expanding 
reiserfs or ext2/3.[1!]  JFS and XFS are also supposed be to growable 
online.

If shrinking a filesystem, you will need to unmount it; some filesystems 
don't like being shrunk at all.
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/

[1] NB: There was (and may still be) two different resizers for ext2/3.  One 
works only online, one works only offline.  I think the online one is 
recommended by the ext2/3 developers now.


signature.asc
Description: This is a digitally signed message part.


Re: LVM how to

2009-06-03 Thread Hendrik Boom
On Wed, 20 May 2009 00:34:24 +0100, Roger Leigh wrote:

> On Wed, May 20, 2009 at 07:17:48AM +1000, gianni wrote:
>> HI lists
>> how can I resize the LVM default partition layout of debian? the root
>> is to small around 400mb... I looked around the web but it look like I
>> need to do that from a rescue cd, which one should I use?
> 
> You don't need a rescue CD, and you can even do it while the filesystem
> is mounted!

So the warnings about unmounting the file system before expanding it in 
the "LVM HOWTO section 11.9. Extending a logical volume" at
http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
are strictly obsolete?

I'm talking about an etch system with an ext3 file system on llvm on raid.

-- hendrik


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-23 Thread Chris Bannister
On Wed, May 20, 2009 at 07:17:48AM +1000, gianni wrote:
> HI lists
> how can I resize the LVM default partition layout of debian?
> the root is to small around 400mb... I looked around the web but it look
> like I need to do that from a rescue cd, which one should I use?
> any good link for a easy how to :)
> thanks

It seems as though the d-i default is too small from the messages on
this list. 

Maybe it should be bumped up a bit? 

-- 
Chris.
==
I contend that we are both atheists. I just believe in one fewer god
than you do. When you understand why you dismiss all the other
possible gods, you will understand why I dismiss yours.
   -- Stephen F Roberts


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-22 Thread Chris Davies
gianni  wrote:
> how can I resize the LVM default partition layout of debian?
> the root is to small around 400mb... 

It depends entirely whether your root partition is part of the LVM or
not. If it's part of the LVM you can use lvextend and then resize2fs (or
if you're not using ext2/3/4, your equivalent filesystem-specific utility
to grow the filesystem). If it's not (i.e. it's a physical partition)
then you're unfortunately in for a backup and reinstall.

Chris


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-20 Thread Mario Morrell
On Tue, 2009-05-19 at 23:20 +0200, gianni wrote:
> HI lists
> how can I resize the LVM default partition layout of debian?
> the root is to small around 400mb... I looked around the web but it look
> like I need to do that from a rescue cd, which one should I use?
> any good link for a easy how to :)
> thanks
> 
> 
> A good link for me was 
> http://www.linuxdevcenter.com/pub/a/linux/2006/04/27/managing-disk-space-with-lvm.html.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-20 Thread Douglas A. Tutty
On Wed, May 20, 2009 at 07:17:48AM +1000, gianni wrote:
> how can I resize the LVM default partition layout of debian?
> the root is to small around 400mb... I looked around the web but it look
> like I need to do that from a rescue cd, which one should I use?
> any good link for a easy how to :)

No rescue CD required.

Install (if you can) the doc-linux-HOWTO package, or go to tldp.org and
read the LVM HOWTO.  It has examples of how to do most things.  Then
read the man pages for each command.  Basically, you have to shrink the
file system size (resize), then shrink (resize) the LV its on.  Then
grow (resize) the target LV, then grown (resize) the target filesystem.

Do a backup first, please.

Doug.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-19 Thread Roger Leigh
On Wed, May 20, 2009 at 07:17:48AM +1000, gianni wrote:
> HI lists
> how can I resize the LVM default partition layout of debian?
> the root is to small around 400mb... I looked around the web but it look
> like I need to do that from a rescue cd, which one should I use?

You don't need a rescue CD, and you can even do it while the filesystem
is mounted!  This following example resizes the "data" LV of the
"ravenclaw" volume group.  The first step is to increase the LV size
by 2 GiB.  Then, we resize the filesystem contained on the LV to fit
into the larger space available to it (if you aren't using ext2/ext3,
you'll need to use the tool for your specific filesystem).

lvresize -L +2G /dev/ravenclaw/data
resize2fs /dev/ravenclaw/data

Obviously shrinking is a little more involved size you might need to
move things in order to shrink it, so unmounting might be necessary.
However, for your case, you don't even need to log out!


Regards,
Roger

-- 
  .''`.  Roger Leigh
 : :' :  Debian GNU/Linux http://people.debian.org/~rleigh/
 `. `'   Printing on GNU/Linux?   http://gutenprint.sourceforge.net/
   `-GPG Public Key: 0x25BFB848   Please GPG sign your mail.


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org



Re: LVM how to

2009-05-19 Thread Boyd Stephen Smith Jr.
In <1242767868.4841.6.ca...@machina.eolo>, gianni wrote:
>how can I resize the LVM default partition layout of debian?

Growing or shrinking?  What filesystem(s) involved?
-- 
Boyd Stephen Smith Jr.   ,= ,-_-. =.
b...@iguanasuicide.net  ((_/)o o(\_))
ICQ: 514984 YM/AIM: DaTwinkDaddy `-'(. .)`-'
http://iguanasuicide.net/\_/



signature.asc
Description: This is a digitally signed message part.


LVM how to

2009-05-19 Thread gianni
HI lists
how can I resize the LVM default partition layout of debian?
the root is to small around 400mb... I looked around the web but it look
like I need to do that from a rescue cd, which one should I use?
any good link for a easy how to :)
thanks



-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org