file system weirdness in lvm

Justin Conover justin.conover at gmail.com
Mon Jul 9 14:15:36 UTC 2007


On 7/7/07, Justin Conover <justin.conover at gmail.com> wrote:
>
> I just noticed something on my desktop running F7.
>
> /usr was at 100%, then I noticed /usr/local was also at 100%, both being
> different lvm/fs.  Some how both are the same size and file up at the same
> time.....  extend one of them and the other grows....whats up with this?
>
> Example, I'll add some space to /usr
>
>
> [root at echelon ~]# df -h /usr /usr/local/
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/rootvg-usrlv
>                       9.7G  7.4G   1.9G  80% /usr
> /dev/mapper/rootvg-locallv
>                       9.7G  7.4G  1.9G  80% /usr/local
> # ls -l /dev/mapper/
> total 0
> crw------- 1 root root  10, 63 2007-07-07 04:35 control
> brw-rw---- 1 root disk 253,  4 2007-07-07 09:35 rootvg-homelv
> brw-rw---- 1 root disk 253,  3 2007-07-07 09:35 rootvg-locallv
> brw-rw---- 1 root disk 253,  2 2007-07-07 09:35 rootvg-optlv
> brw-rw---- 1 root disk 253,  0 2007-07-07 09:35 rootvg-rootlv
> brw-rw---- 1 root disk 253,  7 2007-07-07 04:35 rootvg-swaplv
> brw-rw---- 1 root disk 253,  5 2007-07-07 09:35 rootvg-tmplv
> brw-rw---- 1 root disk 253,  6 2007-07-07 09:35 rootvg-usrlv
> brw-rw---- 1 root disk 253,  1 2007-07-07 09:35 rootvg-varlv
>
> # ls -l /dev/rootvg/
> total 0
> lrwxrwxrwx 1 root root 25 2007-07-07 04:35 homelv ->
> /dev/mapper/rootvg-homelv
> lrwxrwxrwx 1 root root 26 2007-07-07 04:35 locallv ->
> /dev/mapper/rootvg-locallv
> lrwxrwxrwx 1 root root 24 2007-07-07 04:35 optlv ->
> /dev/mapper/rootvg-optlv
> lrwxrwxrwx 1 root root 25 2007-07-07 04:35 rootlv ->
> /dev/mapper/rootvg-rootlv
> lrwxrwxrwx 1 root root 25 2007-07-07 04:35 swaplv ->
> /dev/mapper/rootvg-swaplv
> lrwxrwxrwx 1 root root 24 2007-07-07 04:35 tmplv ->
> /dev/mapper/rootvg-tmplv
> lrwxrwxrwx 1 root root 24 2007-07-07 09:38 usrlv ->
> /dev/mapper/rootvg-usrlv
> lrwxrwxrwx 1 root root 24 2007-07-07 04:35 varlv ->
> /dev/mapper/rootvg-varlv
>
> [root at echelon ~]# lvextend -L+1G /dev/rootvg/usrlv
>   Extending logical volume usrlv to 11.00 GB
>   Logical volume usrlv successfully resized
>
> [root at echelon ~]# resize2fs /dev/rootvg/usrlv
> resize2fs 1.39 (29-May-2006)
> Filesystem at /dev/rootvg/usrlv is mounted on /usr; on-line resizing
> required
> Performing an on-line resize of /dev/rootvg/usrlv to 2883584 (4k) blocks.
> The filesystem on /dev/rootvg/usrlv is now 2883584 blocks long.
>
> And the WHAT?  Compare this to the first one at 9.7G
>
> [root at echelon ~]# df -h /usr /usr/local/
> Filesystem            Size  Used Avail Use% Mounted on
> /dev/mapper/rootvg-usrlv
>                        11G  7.4G  2.8G  73% /usr
> /dev/mapper/rootvg-locallv
>                        11G  7.4G  2.8G  73% /usr/local
>
> This tells me my box is on crack, outside of that, not sure what is going
> on here.
>
>
Interesting, my box at work is the same case.  It seems during install that
doing an LVM for a seperate /usr and /usr/local breaks......
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/fedora-test-list/attachments/20070709/ea3401ca/attachment.htm>


More information about the fedora-test-list mailing list