Re: [CentOS] virtualbox, lvextend, etc.
On Mon, Nov 11, 2013 at 9:48 PM, Barry Brimer wrote: > > but when I do: > > > > df -h > > > > I still see only the original 8gig disk (8gig total - 4gig data/4gig > swap)). > > I see this extending the logical volume, but not the filesystem on the > logical volume. You can use resize2fs to do that. That was it. Thanks :) -wes ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virtualbox, lvextend, etc.
On Tue, Nov 12, 2013 at 7:28 AM, SilverTip257 wrote: > On Mon, Nov 11, 2013 at 11:48 PM, Barry Brimer wrote: > > > > but when I do: > > > > > > df -h > > > > > > I still see only the original 8gig disk (8gig total - 4gig data/4gig > > swap)). > > > > I see this extending the logical volume, but not the filesystem on the > > logical volume. You can use resize2fs to do that. > > > > As Barry notes, you need to resize the file system. Since you already > resized the LV, you need to use resize2fs. > > You could have resized both the LV and file system with lvextend in the > beginning (using one command) by passing -r or --resizefs parameter to > lvextend. > > That's good to know. I'll put it in my notes. Thanks, -wes ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virtualbox, lvextend, etc.
On Mon, Nov 11, 2013 at 9:48 PM, Barry Brimer wrote: > > but when I do: > > > > df -h > > > > I still see only the original 8gig disk (8gig total - 4gig data/4gig > swap)). > > I see this extending the logical volume, but not the filesystem on the > logical volume. You can use resize2fs to do that. > OK. Thanks. I had seen that, but in that howto page it didn't mention it. I'll try it. Thanks, again. -wes ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virtualbox, lvextend, etc.
On Mon, Nov 11, 2013 at 11:48 PM, Barry Brimer wrote: > > but when I do: > > > > df -h > > > > I still see only the original 8gig disk (8gig total - 4gig data/4gig > swap)). > > I see this extending the logical volume, but not the filesystem on the > logical volume. You can use resize2fs to do that. > As Barry notes, you need to resize the file system. Since you already resized the LV, you need to use resize2fs. You could have resized both the LV and file system with lvextend in the beginning (using one command) by passing -r or --resizefs parameter to lvextend. > ___ > CentOS mailing list > CentOS@centos.org > http://lists.centos.org/mailman/listinfo/centos > -- ---~~.~~--- Mike // SilverTip257 // ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
Re: [CentOS] virtualbox, lvextend, etc.
> but when I do: > > df -h > > I still see only the original 8gig disk (8gig total - 4gig data/4gig swap)). I see this extending the logical volume, but not the filesystem on the logical volume. You can use resize2fs to do that. ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
[CentOS] virtualbox, lvextend, etc.
I'm using virtualbox with one of the tests I have for centos 6.4. I realized after creating the disk, the default was too small. I added more disk space with: VBoxManage modifyhd /Users/user/VirtualBox\ VMs/centos\ 6.x/centos\ 6.x.vdi --resize 25000 I then used this site to help me resize the lvm: http://community.spiceworks.com/how_to/show/2768-extending-lvm-partition-with-free-space-from-the-same-hdd-or-with-a-new-partition-from-a-new-hdd-on-centos but when I do: df -h I still see only the original 8gig disk (8gig total - 4gig data/4gig swap)). When I look at pvscan in lvm, it says 23.92GiB is the size of the volume. Why doesn't df see it correctly? Thanks, -wes ___ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos