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

LVM2 re-size question; block size

Postby hobocaver » Wed Aug 15, 2012 23:04

Hi

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.

Thanks
hobocaver
Baby Hen
 
Posts: 4
Joined: Tue Jul 17, 2012 2:40

Re: LVM2 re-size question; block size

Postby batvink » Thu Aug 16, 2012 8:25

Hi,

you can check that with command:
Code: Select all
blockdev --getbsz /dev/vg_bwginc/lv_root

or,
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:
https://alnitech.com/whmcs/knowledgebase.php?action=displayarticle&id=4
(look at example 4)
User avatar
batvink
Old Dear Hen
 
Posts: 495
Joined: Sun Oct 28, 2007 11:44
Location: the netherlands


Return to Beginners|Newbies Area

Who is online

Users browsing this forum: No registered users and 3 guests