LVM2 re-size question; block size

If you are new to Linux or new to Sabayon Linux and just not sure where to post, here ya go. Post without fear of being told to RTFM :-)

Moderator: Moderators

Post Reply
Baby Hen
Posts: 4
Joined: Tue Jul 17, 2012 2:40

LVM2 re-size question; block size

Post by hobocaver » Wed Aug 15, 2012 23:04


I have a new install of Sabayon 9, 64bit, Gnome. I submitted a question
regarding LVM earlier, received a really helpful answer. I have bookmarked those
resources; BUT one question remains.
What is the block size used on my new Hitachi hybrid 750gb 7400rpm HDD?
What block size does the file system use?
My searches within the forums did not let me find this info; it seems
the resizing tool wants block size.
I intend to shrink my LVM and file system and repartition for another distro.


User avatar
Old Dear Hen
Posts: 495
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands

Re: LVM2 re-size question; block size

Post by batvink » Thu Aug 16, 2012 8:25


you can check that with command:

Code: Select all

blockdev --getbsz /dev/vg_bwginc/lv_root


Code: Select all

tune2fs -l /dev/vg_bwginc/lv_root | grep 'Block size'

Remember, there's no way to shrink a XFS, or JFS partition. (in case you have any...)

Here's a howto, for your bookmarks-collection:
(look at example 4)

Post Reply