public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] Gentoo LVM Newbie Question
@ 2006-02-23 20:22 CR Little
  2006-02-23 20:41 ` Boyd Stephen Smith Jr.
                   ` (3 more replies)
  0 siblings, 4 replies; 27+ messages in thread
From: CR Little @ 2006-02-23 20:22 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2023 bytes --]

I'm having a problem with LVM. 

 

I setup a volume group it had 5.91G in Free PE/Size now states 0/0

  --- Volume group ---

  VG Name               vg

  System ID

  Format                lvm2

  Metadata Areas        3

  Metadata Sequence No  9

  VG Access             read/write

  VG Status             resizable

  MAX LV                0

  Cur LV                5

  Open LV               5

  Max PV                0

  Cur PV                3

  Act PV                3

  VG Size               55.91 GB

  PE Size               4.00 MB

  Total PE              14313

  Alloc PE / Size       14313 / 55.91 GB

  Free  PE / Size       0 / 0

  VG UUID               6615f4-SY2U-Ur67-mW3K-6BcT-7eJD-gH9Cqi

 

I have a logical volume inside that I tried to extend

  --- Logical volume ---

  LV Name                /dev/vg/home

  VG Name                vg

  LV UUID                vx9591-nXtD-0Yj6-F0ah-TjcH-5jEq-BGFIze

  LV Write Access        read/write

  LV Status              available

  # open                 1

  LV Size                10.91 GB

  Current LE             2793

  Segments               3

  Allocation             inherit

  Read ahead sectors     0

  Block device           253:1

 

It now states 10.91 GB for LV Size. This lv is mounted to /home when I
ran lvextend -L+5.91G /dev/vg/home it extended the lv but when you run
df-h it doesn't show an increased size.

 

/dev/mapper/vg-home   5.0G  1.6G  3.2G  33% /home

 

Apparently I missed a step and can't find any information on how to fix
this. Doesn't it need to know how to format and add the LV extention?

Help would be great.

 

Thanks.


This message contains information from SourceLink - Madison 
which may be confidential and privileged.  If you are not an 
intended recipient, please refrain from any disclosure, copying, 
distribution, or use of this information and note that such 
actions are prohibited.  If you have received this transmission 
in error, please notify by email crlittle@sourcelink.com.



[-- Attachment #2: Type: text/html, Size: 11828 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 20:22 [gentoo-user] Gentoo LVM Newbie Question CR Little
@ 2006-02-23 20:41 ` Boyd Stephen Smith Jr.
  2006-02-23 20:59 ` Alexander Skwar
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 27+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-02-23 20:41 UTC (permalink / raw
  To: gentoo-user

On Thursday 23 February 2006 14:22, "CR Little" <crlittle@sourcelink.com> 
wrote about '[gentoo-user] Gentoo LVM Newbie Question':
> I'm having a problem with LVM.
>
> I setup a volume group it had 5.91G in Free PE/Size now states 0/0
> I have a logical volume inside that I tried to extend
> It now states 10.91 GB for LV Size. This lv is mounted to /home when I
> ran lvextend -L+5.91G /dev/vg/home it extended the lv but when you run
> df-h it doesn't show an increased size.
>
> /dev/mapper/vg-home   5.0G  1.6G  3.2G  33% /home
>
> Apparently I missed a step and can't find any information on how to fix
> this. Doesn't it need to know how to format and add the LV extention?

That's an easy one.  But an easy thing to miss, especially if you are new.

df reports the free space on the /filesystem/
lvextend changes the size of the /block device/

Now that your block device is bigger, you need to extend the filesystem to 
use that new space.

What filesystem are you using?

Also, in the future, I believe EVMS can do this all with one command and 
there is a nice ncurses interface.

-- 
Boyd Stephen Smith Jr.
bss03@volumehost.com
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 20:22 [gentoo-user] Gentoo LVM Newbie Question CR Little
  2006-02-23 20:41 ` Boyd Stephen Smith Jr.
@ 2006-02-23 20:59 ` Alexander Skwar
  2006-02-23 21:15 ` Qv6
  2006-02-23 21:59 ` John Jolet
  3 siblings, 0 replies; 27+ messages in thread
From: Alexander Skwar @ 2006-02-23 20:59 UTC (permalink / raw
  To: gentoo-user

CR Little wrote:

> It now states 10.91 GB for LV Size. This lv is mounted to /home when I
> ran lvextend –L+5.91G /dev/vg/home it extended the lv but when you run
> df-h it doesn’t show an increased size.

Of course not - why should it? Increasing the size of an
LV doesn't change the size of the filesystem stored on
the LV in any way.

So, you'll need to run something like "resize_reiserfs /dev/vg/home"
now.

Alexander Skwar
-- 
Frankly, Scarlett, I don't have a fix.
		-- Rhett Buggler
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 20:22 [gentoo-user] Gentoo LVM Newbie Question CR Little
  2006-02-23 20:41 ` Boyd Stephen Smith Jr.
  2006-02-23 20:59 ` Alexander Skwar
@ 2006-02-23 21:15 ` Qv6
  2006-02-23 21:59 ` John Jolet
  3 siblings, 0 replies; 27+ messages in thread
From: Qv6 @ 2006-02-23 21:15 UTC (permalink / raw
  To: gentoo-user

On Thursday 23 February 2006 02:22 pm, CR Little wrote:
> I'm having a problem with LVM.
>
> I setup a volume group it had 5.91G in Free PE/Size now states 0/0
>
>   --- Volume group ---
>
>   VG Name               vg
>
>
>   VG Size               55.91 GB
>
>   PE Size               4.00 MB
>
>   Total PE              14313
>
>   Alloc PE / Size       14313 / 55.91 GB
>
>   Free  PE / Size       0 / 0
>
>
>
>
> I have a logical volume inside that I tried to extend
>
>   --- Logical volume ---
>
>   LV Name                /dev/vg/home
>
>   VG Name                vg
>
>   LV UUID                vx9591-nXtD-0Yj6-F0ah-TjcH-5jEq-BGFIze
>
>   LV Write Access        read/write
>
>   LV Status              available
>
>   # open                 1
>
>   LV Size                10.91 GB
>
>   Current LE             2793
>
>   Segments               3
>
>   Allocation             inherit
>
>   Read ahead sectors     0
>
>   Block device           253:1
>
>
>
> It now states 10.91 GB for LV Size. This lv is mounted to /home when
> I ran lvextend -L+5.91G /dev/vg/home it extended the lv but when you
> run df-h it doesn't show an increased size.
>
>
>
> /dev/mapper/vg-home   5.0G  1.6G  3.2G  33% /home
>
>
>
> Apparently I missed a step and can't find any information on how to
> fix this. Doesn't it need to know how to format and add the LV
> extention?

Assuming you are using a reiserfs filesystem, resizing it is a 2-step 
process. The first step is what you have accomplished.  The second step 
is:

	resize_reiserfs -f /dev/vg/home

However, given the output of your "vgdisplay" with particular reference 
to the lines below, I doubt that you can resize any logical volumes in 
your volume group:

>   VG Size               55.91 GB
>
>   Total PE              14313
>
>   Alloc PE / Size       14313 / 55.91 GB
>
>   Free  PE / Size       0 / 0


 
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 20:22 [gentoo-user] Gentoo LVM Newbie Question CR Little
                   ` (2 preceding siblings ...)
  2006-02-23 21:15 ` Qv6
@ 2006-02-23 21:59 ` John Jolet
  2006-02-23 22:35   ` Boyd Stephen Smith Jr.
  2006-02-24  6:03   ` Alexander Skwar
  3 siblings, 2 replies; 27+ messages in thread
From: John Jolet @ 2006-02-23 21:59 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 857 bytes --]




On 2/23/06 2:22 PM, "CR Little" <crlittle@sourcelink.com> wrote:

> I¹m having a problem with LVM.
>  
> I setup a volume group it had 5.91G in Free PE/Size now states 0/0
> I have a logical volume inside that I tried to extend
>  
> It now states 10.91 GB for LV Size. This lv is mounted to /home when I ran
> lvextend ­L+5.91G /dev/vg/home it extended the lv but when you run df-h it
> doesn¹t show an increased size.
>  
> /dev/mapper/vg-home   5.0G  1.6G  3.2G  33% /home
>  
> Apparently I missed a step and can¹t find any information on how to fix this.
> Doesn¹t it need to know how to format and add the LV extention?
> Help would be great.
Yes, you missed a step.  Extending the lv in no way increases the size of
the fs.  Extendfs is the command you need to ³man².

Remember, the fs cannot be mounted when you extend it.

[-- Attachment #2: Type: text/html, Size: 1426 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 21:59 ` John Jolet
@ 2006-02-23 22:35   ` Boyd Stephen Smith Jr.
  2006-02-24  6:03   ` Alexander Skwar
  1 sibling, 0 replies; 27+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-02-23 22:35 UTC (permalink / raw
  To: gentoo-user

On Thursday 23 February 2006 15:59, John Jolet <john@jolet.net> wrote about 
'Re: [gentoo-user] Gentoo LVM Newbie Question':
> Remember, the fs cannot be mounted when you extend it.

LOL!

-- 
Boyd Stephen Smith Jr.
bss03@volumehost.com
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-23 21:59 ` John Jolet
  2006-02-23 22:35   ` Boyd Stephen Smith Jr.
@ 2006-02-24  6:03   ` Alexander Skwar
  2006-02-25  3:35     ` Zac Slade
  1 sibling, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2006-02-24  6:03 UTC (permalink / raw
  To: gentoo-user

John Jolet wrote:

> Remember, the fs cannot be mounted when you extend it.

That's wrong. Every FS can be extended online, even ext{2,3}
with certain patches IIRC.

Alexander Skwar
-- 
It's a recession when your neighbour loses his job; it's a depression
when you lose yours.
		-- Harry S. Truman
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-24  6:03   ` Alexander Skwar
@ 2006-02-25  3:35     ` Zac Slade
  2006-02-25  4:13       ` John Jolet
                         ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Zac Slade @ 2006-02-25  3:35 UTC (permalink / raw
  To: gentoo-user

On Friday 24 February 2006 00:03, Alexander Skwar wrote:
> John Jolet wrote:
> > Remember, the fs cannot be mounted when you extend it.
>
> That's wrong. Every FS can be extended online, even ext{2,3}
> with certain patches IIRC.
WRONG!!! (or partially anyway)  Here's the rundown:
reiser3, resizable online in two ways 
	1)resize_reiserfs /path/to/dev 
	2)mount -o remount,resize /path/to/dev
XFS, MUST be mounted to resize use xfs_grow /mount/point
JFS, resizable online with a mount -o remount,resize /path/to/dev
ext2/3, resizable offline reliably.  Online resize is a *very* experimental 
experiment.  Have good backups.

For a good reference if one is ever needed to give to a friend, relative or 
foe try http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
-- 
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  3:35     ` Zac Slade
@ 2006-02-25  4:13       ` John Jolet
  2006-02-25  4:32         ` Zac Slade
  2006-02-25  6:44         ` Alexander Skwar
  2006-02-25  6:43       ` Alexander Skwar
  2006-02-25  7:55       ` Jarry
  2 siblings, 2 replies; 27+ messages in thread
From: John Jolet @ 2006-02-25  4:13 UTC (permalink / raw
  To: gentoo-user


On Feb 24, 2006, at 9:35 PM, Zac Slade wrote:

> On Friday 24 February 2006 00:03, Alexander Skwar wrote:
>> John Jolet wrote:
>>> Remember, the fs cannot be mounted when you extend it.
>>
>> That's wrong. Every FS can be extended online, even ext{2,3}
>> with certain patches IIRC.
> WRONG!!! (or partially anyway)  Here's the rundown:
> reiser3, resizable online in two ways
> 	1)resize_reiserfs /path/to/dev
> 	2)mount -o remount,resize /path/to/dev
> XFS, MUST be mounted to resize use xfs_grow /mount/point
> JFS, resizable online with a mount -o remount,resize /path/to/dev
> ext2/3, resizable offline reliably.  Online resize is a *very*  
> experimental
> experiment.  Have good backups.
>
> For a good reference if one is ever needed to give to a friend,  
> relative or
> foe try http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
okay, i'll rephrase.... being an old aix hand... with the (possible)  
exeption of reiser.... I, personally, would not trust any filesystem  
to resize without being unmounted.  but then, compared to the aix  
lvm, which can be resized with oracle accessing at full speed, linux  
lvms are just barely getting to what I'd call "production ready".   
interesting to see that we're moving in an online-resizable direction  
on linux. :)

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  4:13       ` John Jolet
@ 2006-02-25  4:32         ` Zac Slade
  2006-02-25  5:14           ` John Jolet
  2006-02-25  6:44         ` Alexander Skwar
  1 sibling, 1 reply; 27+ messages in thread
From: Zac Slade @ 2006-02-25  4:32 UTC (permalink / raw
  To: gentoo-user

On Friday 24 February 2006 22:13, John Jolet wrote:
> okay, i'll rephrase.... being an old aix hand... with the (possible)
> exeption of reiser.... I, personally, would not trust any filesystem
> to resize without being unmounted.  but then, compared to the aix
> lvm, which can be resized with oracle accessing at full speed, linux
> lvms are just barely getting to what I'd call "production ready".
> interesting to see that we're moving in an online-resizable direction
> on linux. :)
What an unenlighten troll.  I have plenty of experience with AIX's volume 
manager.  LVM2 can stand up to it any day.  As a matter of fact Linux's LVM 
is about to completely surpass what is available in AIX.  LVM2 can do cluster 
locking and management.  You can use LVM2 with Multipathing tools just as you 
can under any commercial Unix.  LVM2 is more than ready for prime time as can 
be seen by looking at RHEL and SLES distributions.

Linux is not a toy and neither is LVM2.  It can be used as a toy or a learning 
device, but it is not relegated to the closet of geeks.  And don't get me 
started on AIX if you don't happen to have the OnlineJFS sets installed.  
Also the draconian having to resize the filesystem by calculating the number 
of 512 byte blocks in the filesystem.

Do your homework please.  Just because you've dealt exclusively or extensively 
with one flavor of *nix doesn't mean that others aren't up to the task.  And 
just because it's IBM's Unix doesn't make it more or less ready for the 
enterprise, it just makes it proprietary.  You'd do well to judge based on 
features, capabilities and the completeness of the tools.
-- 
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  4:32         ` Zac Slade
@ 2006-02-25  5:14           ` John Jolet
  2006-02-25  6:52             ` Alexander Skwar
  0 siblings, 1 reply; 27+ messages in thread
From: John Jolet @ 2006-02-25  5:14 UTC (permalink / raw
  To: gentoo-user



> What an unenlighten troll.  I have plenty of experience with AIX's  
> volume
> manager.  LVM2 can stand up to it any day.  As a matter of fact  
> Linux's LVM
> is about to completely surpass what is available in AIX.  LVM2 can  
> do cluster
> locking and management.  You can use LVM2 with Multipathing tools  
> just as you
> can under any commercial Unix.  LVM2 is more than ready for prime  
> time as can
> be seen by looking at RHEL and SLES distributions.
>
I think that comment is a bit extreme, don't you?

> Linux is not a toy and neither is LVM2.  It can be used as a toy or  
> a learning
> device, but it is not relegated to the closet of geeks.  And don't  
> get me
> started on AIX if you don't happen to have the OnlineJFS sets  
> installed.
> Also the draconian having to resize the filesystem by calculating  
> the number
> of 512 byte blocks in the filesystem.
>
yes, that was always a big complaint of mine.
> Do your homework please.  Just because you've dealt exclusively or  
> extensively
> with one flavor of *nix doesn't mean that others aren't up to the  
> task.  And
> just because it's IBM's Unix doesn't make it more or less ready for  
> the
> enterprise, it just makes it proprietary.  You'd do well to judge  
> based on
> features, capabilities and the completeness of the tools.
> -- 
Yes, I've supported just about every unix, not to mention every  
flavor of linux out there...for the past 16 years.  I AM judging on  
the features and capabilities and completeness of the tools.  My  
comments were meant as compliments for the progress of the tools from  
the old 2.2 kernel days, not an insult.  My apologies if i've hit a  
nerve of some sort.  However, that said.  I'd still prefer, all  
things considered, to support a volume under aix's lvm than the  
current lvm2 stuff.  However, I have NOT researched all the current  
options for lvm creation and management under lvm2.  I will admit  
that.  I wasn't trying to start a flamewar here, but I assure  
you....my homework has been done.
>

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  3:35     ` Zac Slade
  2006-02-25  4:13       ` John Jolet
@ 2006-02-25  6:43       ` Alexander Skwar
  2006-02-25 11:24         ` Holly Bostick
  2006-02-25  7:55       ` Jarry
  2 siblings, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25  6:43 UTC (permalink / raw
  To: gentoo-user

Zac Slade wrote:
> On Friday 24 February 2006 00:03, Alexander Skwar wrote:
>> John Jolet wrote:
>> > Remember, the fs cannot be mounted when you extend it.
>>
>> That's wrong. Every FS can be extended online, even ext{2,3}
>> with certain patches IIRC.
> WRONG!!! (or partially anyway)  Here's the rundown:
> reiser3, resizable online in two ways 
> 	1)resize_reiserfs /path/to/dev 
> 	2)mount -o remount,resize /path/to/dev
> XFS, MUST be mounted to resize use xfs_grow /mount/point
> JFS, resizable online with a mount -o remount,resize /path/to/dev
> ext2/3, resizable offline reliably.  Online resize is a *very* experimental 
> experiment.  Have good backups.

Okay, so the following fs are online resizable, according to you:

- reiser3
- xfs
- jfs
- ext2, ext3

That's pretty much "every FS", isn't it?

> 
> For a good reference if one is ever needed to give to a friend, relative or 
> foe try http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html

Yep. LVM Howto is a very good resource.

Alexander Skwar
-- 
An artist should be fit for the best society and keep out of it.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  4:13       ` John Jolet
  2006-02-25  4:32         ` Zac Slade
@ 2006-02-25  6:44         ` Alexander Skwar
  1 sibling, 0 replies; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25  6:44 UTC (permalink / raw
  To: gentoo-user

John Jolet wrote:
> On Feb 24, 2006, at 9:35 PM, Zac Slade wrote:
> 
>> On Friday 24 February 2006 00:03, Alexander Skwar wrote:
>>> John Jolet wrote:
>>>> Remember, the fs cannot be mounted when you extend it.
>>>
>>> That's wrong. Every FS can be extended online, even ext{2,3}
>>> with certain patches IIRC.
>> WRONG!!! (or partially anyway)  Here's the rundown:
>> reiser3, resizable online in two ways
>> 	1)resize_reiserfs /path/to/dev
>> 	2)mount -o remount,resize /path/to/dev
>> XFS, MUST be mounted to resize use xfs_grow /mount/point
>> JFS, resizable online with a mount -o remount,resize /path/to/dev
>> ext2/3, resizable offline reliably.  Online resize is a *very*  
>> experimental
>> experiment.  Have good backups.
>>
>> For a good reference if one is ever needed to give to a friend,  
>> relative or
>> foe try http://www.tldp.org/HOWTO/LVM-HOWTO/extendlv.html
> okay, i'll rephrase.... being an old aix hand... with the (possible)  
> exeption of reiser.... I, personally, would not trust any filesystem  
> to resize without being unmounted.

Why not? No need to unmount. resize_reiserfs and xfs are tested quite
much.

>  but then, compared to the aix  
> lvm, which can be resized with oracle accessing at full speed, linux  
> lvms are just barely getting to what I'd call "production ready".   

Why's that?

Alexander Skwar
-- 
Be cheerful while you are alive.
		-- Phathotep, 24th Century B.C.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  5:14           ` John Jolet
@ 2006-02-25  6:52             ` Alexander Skwar
  0 siblings, 0 replies; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25  6:52 UTC (permalink / raw
  To: gentoo-user

John Jolet wrote:
> 
>> What an unenlighten troll.  I have plenty of experience with AIX's  
>> volume
>> manager.  LVM2 can stand up to it any day.  As a matter of fact  
>> Linux's LVM
>> is about to completely surpass what is available in AIX.  LVM2 can  
>> do cluster
>> locking and management.  You can use LVM2 with Multipathing tools  
>> just as you
>> can under any commercial Unix.  LVM2 is more than ready for prime  
>> time as can
>> be seen by looking at RHEL and SLES distributions.
>>
> I think that comment is a bit extreme, don't you?

Not much. Extreme is only your bad quoting style... Please
change that.

> Yes, I've supported just about every unix, not to mention every  
> flavor of linux out there...for the past 16 years.  I AM judging on  
> the features and capabilities and completeness of the tools.

What's missing?

>  However, that said.  I'd still prefer, all
> things considered, to support a volume under aix's lvm than the  
> current lvm2 stuff.

Why? What's better in AIX LVM stuff?

Alexander Skwar
-- 
Windows without the X is like making love without a partner.
	-- MaDsen Wikholm, mwikholm@at8.abo.fi
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  3:35     ` Zac Slade
  2006-02-25  4:13       ` John Jolet
  2006-02-25  6:43       ` Alexander Skwar
@ 2006-02-25  7:55       ` Jarry
  2006-02-25 10:26         ` Alexander Skwar
  2 siblings, 1 reply; 27+ messages in thread
From: Jarry @ 2006-02-25  7:55 UTC (permalink / raw
  To: gentoo-user

Zac Slade wrote:

> reiser3, resizable online in two ways 
> 	1)resize_reiserfs /path/to/dev 
> 	2)mount -o remount,resize /path/to/dev
> XFS, MUST be mounted to resize use xfs_grow /mount/point
> JFS, resizable online with a mount -o remount,resize /path/to/dev
> ext2/3, resizable offline reliably.  Online resize is a *very* experimental 
> experiment.  Have good backups.

If I understand correctly, it is not worth having lvm2 with ext3, right?
I could not resize /usr or /var off-line, and resizing while mounted
is not possible without kernel patch, and still only experimental.
Then maybe I should get rid of lvm2...

Jarry

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  7:55       ` Jarry
@ 2006-02-25 10:26         ` Alexander Skwar
  2006-02-25 10:44           ` Jarry
  0 siblings, 1 reply; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25 10:26 UTC (permalink / raw
  To: gentoo-user

Jarry wrote:
> Zac Slade wrote:
> 
>> reiser3, resizable online in two ways 
>> 	1)resize_reiserfs /path/to/dev 
>> 	2)mount -o remount,resize /path/to/dev
>> XFS, MUST be mounted to resize use xfs_grow /mount/point
>> JFS, resizable online with a mount -o remount,resize /path/to/dev
>> ext2/3, resizable offline reliably.  Online resize is a *very* experimental 
>> experiment.  Have good backups.
> 
> If I understand correctly, it is not worth having lvm2 with ext3, right?

Well, "not worth" is too hard. One of the main benefits of LVM
is, that you can easily extend (and theoretically shrink)
filesystems. Since ext* can, in practicallity, only be resized
offline, one of the benefits goes away. Also, extending and
shrinking ext* takes *AGES*, as you MUST run "e2fsck -f $dev"
beforehand.

> I could not resize /usr or /var off-line,

That's wrong. I suppose that those are your ext* fs?
If so, you can perfectly fine resize those fs while
they are offline.

> and resizing while mounted
> is not possible without kernel patch, and still only experimental.
> Then maybe I should get rid of lvm2...

No. Get rid of ext*. reiser3 and xfs are mature, use those
instead.

Alexander Skwar
-- 
If you can keep your head when all about you are losing theirs, then
you clearly don't understand the situation.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25 10:26         ` Alexander Skwar
@ 2006-02-25 10:44           ` Jarry
  2006-02-25 11:11             ` Alexander Skwar
                               ` (2 more replies)
  0 siblings, 3 replies; 27+ messages in thread
From: Jarry @ 2006-02-25 10:44 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar wrote:

>>I could not resize /usr or /var off-line,
> 
> That's wrong. I suppose that those are your ext* fs?
> If so, you can perfectly fine resize those fs while
> they are offline.

I mean I can not resize them off-line because I can not unmount them
while system is running :-)
Maybe booting livecd could be solution, but it is hard to do remotely.

>>Then maybe I should get rid of lvm2...
> 
> No. Get rid of ext*. reiser3 and xfs are mature, use those instead.

Hm, about half year ago I asked which fs to use. I counted
votes, and ext3 won (reiser was 2nd). Nobody mentioned that
reiserfs can be resized on-line, ext3 not (only off-line).
It seems I have to revaluate results of that voting...

Thanks for answer...

Jarry
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25 10:44           ` Jarry
@ 2006-02-25 11:11             ` Alexander Skwar
  2006-02-25 15:01             ` [gentoo-user] [OT] " Boyd Stephen Smith Jr.
  2006-02-27  6:48             ` [gentoo-user] " Dirk Heinrichs
  2 siblings, 0 replies; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25 11:11 UTC (permalink / raw
  To: gentoo-user

Jarry wrote:
> Alexander Skwar wrote:
> 
>>>I could not resize /usr or /var off-line,
>> 
>> That's wrong. I suppose that those are your ext* fs?
>> If so, you can perfectly fine resize those fs while
>> they are offline.
> 
> I mean I can not resize them off-line because I can not unmount them
> while system is running :-)

Ah, okay, that's how you meant it. In that case, you're right.

>>>Then maybe I should get rid of lvm2...
>> 
>> No. Get rid of ext*. reiser3 and xfs are mature, use those instead.
> 
> Hm, about half year ago I asked which fs to use. I counted
> votes, and ext3 won (reiser was 2nd).

Did I vote? If not, I probably would not have voted for
ext*. Well, actually, I *DO* use ext*. ext2 for /boot and
ext3 for /, as those are FS, which I will close to never ever
resize.

> Nobody mentioned that
> reiserfs can be resized on-line,

I must have missed that thread back then :)

> ext3 not (only off-line).

Well, ext3 *CAN* be resized online, with the appropriate
patches. Would I recommend that? No, I wouldn't, because
I have got no experience with those patches. For the same
reason, I wouldn't recommend to NOT use it.

Alexander Skwar
-- 
There are never any bugs you haven't found yet.
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25  6:43       ` Alexander Skwar
@ 2006-02-25 11:24         ` Holly Bostick
  2006-02-25 12:21           ` Alexander Skwar
  0 siblings, 1 reply; 27+ messages in thread
From: Holly Bostick @ 2006-02-25 11:24 UTC (permalink / raw
  To: gentoo-user

Alexander Skwar schreef:
> 
> Okay, so the following fs are online resizable, according to you:
> 
> - reiser3 - xfs - jfs - ext2, ext3
> 
> That's pretty much "every FS", isn't it?

Yes, but as far as I know from the docs, jfs and xfs can only be *grown*
online, not shrunk, which could be a problem depending on your needs.

Unless that's changed recently.

Holly
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25 11:24         ` Holly Bostick
@ 2006-02-25 12:21           ` Alexander Skwar
  0 siblings, 0 replies; 27+ messages in thread
From: Alexander Skwar @ 2006-02-25 12:21 UTC (permalink / raw
  To: gentoo-user

Holly Bostick wrote:
> Alexander Skwar schreef:
>> 
>> Okay, so the following fs are online resizable, according to you:
>> 
>> - reiser3 - xfs - jfs - ext2, ext3
>> 
>> That's pretty much "every FS", isn't it?
> 
> Yes, but as far as I know from the docs, jfs and xfs can only be *grown*
> online, not shrunk, which could be a problem depending on your needs.

That's right. I originally wrote "Every FS can be extended online",
though. I didn't pay so much attention and thus did not notice
that change.

BTW: reiser3 can also not be shrinked online. But at least
it can be made smaller when it's offline.

Alexander Skwar
-- 
Obviously I was either onto something, or on something.
             -- Larry Wall on the creation of Perl
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] [OT] Gentoo LVM Newbie Question
  2006-02-25 10:44           ` Jarry
  2006-02-25 11:11             ` Alexander Skwar
@ 2006-02-25 15:01             ` Boyd Stephen Smith Jr.
  2006-02-27  6:48             ` [gentoo-user] " Dirk Heinrichs
  2 siblings, 0 replies; 27+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-02-25 15:01 UTC (permalink / raw
  To: gentoo-user

On Saturday 25 February 2006 04:44, Jarry <jarry@gmx.net> wrote about 'Re: 
[gentoo-user] Gentoo LVM Newbie Question':
> Hm, about half year ago I asked which fs to use. I counted
> votes, and ext3 won (reiser was 2nd). Nobody mentioned that
> reiserfs can be resized on-line, ext3 not (only off-line).
> It seems I have to revaluate results of that voting...

I think your main problem was not using a Condorcet Method 
(http://en.wikipedia.org/wiki/Condorcet_method), there are a lot of 
problems, pointed out by Arrow, with simple methods like parity or IRV.

 ;)

-- 
Boyd Stephen Smith Jr.
bss03@volumehost.com
ICQ: 514984 YM/AIM: DaTwinkDaddy
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-25 10:44           ` Jarry
  2006-02-25 11:11             ` Alexander Skwar
  2006-02-25 15:01             ` [gentoo-user] [OT] " Boyd Stephen Smith Jr.
@ 2006-02-27  6:48             ` Dirk Heinrichs
  2006-02-28  5:01               ` Zac Slade
  2 siblings, 1 reply; 27+ messages in thread
From: Dirk Heinrichs @ 2006-02-27  6:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 744 bytes --]

Am Samstag, 25. Februar 2006 11:44 schrieb ext Jarry:

> I mean I can not resize them off-line because I can not unmount them
> while system is running :-)

Wrong. Switch to runlevel 1 (using "telinit 1"), which is for maintenance. 
In RL 1, no user processes are running and you can umount everything 
except /. But as Alexander already did, I would recommend switching to 
reiserfs.

HTH...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-27  6:48             ` [gentoo-user] " Dirk Heinrichs
@ 2006-02-28  5:01               ` Zac Slade
  2006-02-28  9:03                 ` Dirk Heinrichs
  2006-02-28  9:29                 ` Boyd Stephen Smith Jr.
  0 siblings, 2 replies; 27+ messages in thread
From: Zac Slade @ 2006-02-28  5:01 UTC (permalink / raw
  To: gentoo-user

On Monday 27 February 2006 00:48, Dirk Heinrichs wrote:
> Wrong. Switch to runlevel 1 (using "telinit 1"), which is for maintenance.
> In RL 1, no user processes are running and you can umount everything
> except /.
Partially right.  Gentoo has several gotchas in runlevel 1.  If /usr is a 
seperate filesystem you have to be careful.  Bash by default is not 
statically linked and requires readline (which is installed in /usr/lib).  ls 
will require libgpm which is also in /usr/lib.  So you have to be careful.  
One of the best things you can do for yourself is install an all in one shell 
for maintenece like busybox or nash.  Also lvm is not statically linked and 
can require libraries out of /usr/lib also.  So be careful and understand 
what you are doing.  You  just might need a livecd in some cases for 
shrinking.

-- 
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-28  5:01               ` Zac Slade
@ 2006-02-28  9:03                 ` Dirk Heinrichs
  2006-02-28  9:23                   ` Zac Slade
  2006-02-28  9:29                 ` Boyd Stephen Smith Jr.
  1 sibling, 1 reply; 27+ messages in thread
From: Dirk Heinrichs @ 2006-02-28  9:03 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1731 bytes --]

Am Dienstag, 28. Februar 2006 06:01 schrieb ext Zac Slade:
> On Monday 27 February 2006 00:48, Dirk Heinrichs wrote:
> > Wrong. Switch to runlevel 1 (using "telinit 1"), which is for
> > maintenance. In RL 1, no user processes are running and you can umount
> > everything except /.
>
> Partially right.  Gentoo has several gotchas in runlevel 1.  If /usr is a
> seperate filesystem you have to be careful.  Bash by default is not
> statically linked and requires readline (which is installed in /usr/lib).
>  ls will require libgpm which is also in /usr/lib.  So you have to be
> careful. One of the best things you can do for yourself is install an all
> in one shell for maintenece like busybox or nash.  Also lvm is not
> statically linked and can require libraries out of /usr/lib also.  So be
> careful and understand what you are doing.  You  just might need a livecd
> in some cases for shrinking.

Oops, you're right, telinit 1 doesn't work as expected in Gentoo (are there 
any bugreports about it?). However, I can reboot into RL 1 just fine and 
umount /usr w/o problems. I can also use ls just fine with /usr unmounted, 
all fs maintenance tools should also work.

However, after trying it out, it seems that even telinit 3 (when booted into 
RL 1) doesn't work properly, so using a LiveCD indeed looks to be the 
better option for the moment.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-28  9:03                 ` Dirk Heinrichs
@ 2006-02-28  9:23                   ` Zac Slade
  0 siblings, 0 replies; 27+ messages in thread
From: Zac Slade @ 2006-02-28  9:23 UTC (permalink / raw
  To: gentoo-user

On Tuesday 28 February 2006 03:03, Dirk Heinrichs wrote:
> Oops, you're right, telinit 1 doesn't work as expected in Gentoo (are there
> any bugreports about it?). However, I can reboot into RL 1 just fine and
> umount /usr w/o problems. I can also use ls just fine with /usr unmounted,
> all fs maintenance tools should also work.
It just depends on the setup and USE flags.  The situation has begun to 
improve in the default case.

The telinit command is not how it's done in Gentoo.  You should use rc or 
init.  The best way to get to single user mode on a running Gentoo system is 
to use rc single.
-- 
Zac Slade
krakrjak@volumehost.net
ICQ:1415282 YM:krakrjak AIM:ttyp99
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-28  5:01               ` Zac Slade
  2006-02-28  9:03                 ` Dirk Heinrichs
@ 2006-02-28  9:29                 ` Boyd Stephen Smith Jr.
  2006-02-28 13:53                   ` Dirk Heinrichs
  1 sibling, 1 reply; 27+ messages in thread
From: Boyd Stephen Smith Jr. @ 2006-02-28  9:29 UTC (permalink / raw
  To: gentoo-user

On Monday 27 February 2006 23:01, Zac Slade <krakrjak@volumehost.net> wrote 
about 'Re: [gentoo-user] Gentoo LVM Newbie Question':
> On Monday 27 February 2006 00:48, Dirk Heinrichs wrote:
> > Wrong. Switch to runlevel 1 (using "telinit 1"), which is for
> > maintenance. In RL 1, no user processes are running and you can umount
> > everything except /.

Also, some maintenance tasks can be run when a filesystem is mounted 
read-only that can't be run when a filesystem is mounted read-write.  So, 
you may be able to do some tasks without disturbing the system as much as 
a init 1 will do.

> Partially right.  Gentoo has several gotchas in runlevel 1.  If /usr is
> a seperate filesystem you have to be careful.  

Also, I've had init scripts leave things open in both /usr and /var, but 
these stragglers can be killed simply:
fuser -mv <mount_point> # to list
fuser -mk <mount_point> # to kill

In my experience the processes killed will be either recreated when the 
service is restarted, or were not actually required for any service.

> Bash by default is not 
> statically linked and requires readline (which is installed in
> /usr/lib).

Used to be a problem, isn't anymore.  My bash is no longer linked to 
readline at all, and readline has been moved to /lib:

# ls -l /lib/*readline*
lrwxrwxrwx 1 root root     16 Feb 24 09:11 /lib/libreadline.so -> 
libreadline.so.5
lrwxrwxrwx 1 root root     18 Feb 24 09:11 /lib/libreadline.so.5 -> 
libreadline.so.5.1
-rwxr-xr-x 1 root root 246528 Feb 24 09:11 /lib/libreadline.so.5.1

> ls will require libgpm which is also in /usr/lib.

This was a bug at one time, but IIRC, has been fixed.  My ls no longer 
links to gpm at all, and gpm has been moved to /lib:

# ls -l /lib/*gpm*
lrwxrwxrwx 1 root root    11 Feb 24 08:01 /lib/libgpm.so -> libgpm.so.1
lrwxrwxrwx 1 root root    16 Feb 24 08:01 /lib/libgpm.so.1 -> 
libgpm.so.1.19.0
-rwxr-xr-x 1 root root 24160 Feb 24 08:01 /lib/libgpm.so.1.19.0

IMO, finding a binary in /bin or /sbin that links to a library in /usr 
(including /usr/local etc.) is probably grounds for a bug report, even if 
it's not currently causing any problems.

> So you  
> have to be careful. One of the best things you can do for yourself is
> install an all in one shell for maintenece like busybox or nash.  

This is a good idea, even if none of your particular examples are 
problematic.  The crux of your argument is valid: some very useful 
programs reside in /usr or use libraries in /usr so when trying to umount 
it you must be prepared to do without those programs.

> lvm is not statically linked and can require libraries out of /usr/lib
> also.

lvm2 is static by default, but I have enabled the "nolvmstatic" USE flag. 
This is in contrast to /other/ programs, like mdadm, which are just as 
important but only statically linked is the "static" USE flag is on.

Why the developers decided this crazy behavior is acceptable is a mystery 
to me.  IMO, lvm2 should just be using the static use flag like all the 
other packages.

-- 
"If there's one thing we've established over the years,
it's that the vast majority of our users don't have the slightest
clue what's best for them in terms of package stability."
-- Gentoo Developer Ciaran McCreesh
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 27+ messages in thread

* Re: [gentoo-user] Gentoo LVM Newbie Question
  2006-02-28  9:29                 ` Boyd Stephen Smith Jr.
@ 2006-02-28 13:53                   ` Dirk Heinrichs
  0 siblings, 0 replies; 27+ messages in thread
From: Dirk Heinrichs @ 2006-02-28 13:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1288 bytes --]

Am Dienstag, 28. Februar 2006 10:29 schrieb ext Boyd Stephen Smith Jr.:
> IMO, finding a binary in /bin or /sbin that links to a library in /usr
> (including /usr/local etc.) is probably grounds for a bug report, even if
> it's not currently causing any problems.

Yep.

> > So you
> > have to be careful. One of the best things you can do for yourself is
> > install an all in one shell for maintenece like busybox or nash.
>
> This is a good idea, even if none of your particular examples are
> problematic.  The crux of your argument is valid: some very useful
> programs reside in /usr or use libraries in /usr so when trying to umount
> it you must be prepared to do without those programs.

However, the discussion was about unmounting /usr to be able to resize it 
(in case the fs only supports unmounted resize). So these "very useful 
programs" in /usr are not needed during umount -> resize -> mount, anyway.

Bye...

	Dirk
-- 
Dirk Heinrichs          | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: dirk.heinrichs@capgemini.com
Hambornerstraße 55      | Web:  http://www.capgemini.com
D-40472 Düsseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net

[-- Attachment #2: Type: application/pgp-signature, Size: 190 bytes --]

^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2006-02-28 14:02 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-23 20:22 [gentoo-user] Gentoo LVM Newbie Question CR Little
2006-02-23 20:41 ` Boyd Stephen Smith Jr.
2006-02-23 20:59 ` Alexander Skwar
2006-02-23 21:15 ` Qv6
2006-02-23 21:59 ` John Jolet
2006-02-23 22:35   ` Boyd Stephen Smith Jr.
2006-02-24  6:03   ` Alexander Skwar
2006-02-25  3:35     ` Zac Slade
2006-02-25  4:13       ` John Jolet
2006-02-25  4:32         ` Zac Slade
2006-02-25  5:14           ` John Jolet
2006-02-25  6:52             ` Alexander Skwar
2006-02-25  6:44         ` Alexander Skwar
2006-02-25  6:43       ` Alexander Skwar
2006-02-25 11:24         ` Holly Bostick
2006-02-25 12:21           ` Alexander Skwar
2006-02-25  7:55       ` Jarry
2006-02-25 10:26         ` Alexander Skwar
2006-02-25 10:44           ` Jarry
2006-02-25 11:11             ` Alexander Skwar
2006-02-25 15:01             ` [gentoo-user] [OT] " Boyd Stephen Smith Jr.
2006-02-27  6:48             ` [gentoo-user] " Dirk Heinrichs
2006-02-28  5:01               ` Zac Slade
2006-02-28  9:03                 ` Dirk Heinrichs
2006-02-28  9:23                   ` Zac Slade
2006-02-28  9:29                 ` Boyd Stephen Smith Jr.
2006-02-28 13:53                   ` Dirk Heinrichs

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox