[Top] [All Lists]

Re: Change sector size on existing partition

To: Dewangga Bachrul Alam <dewanggaba@xxxxxxxxxxxxxxx>
Subject: Re: Change sector size on existing partition
From: Brian Foster <bfoster@xxxxxxxxxx>
Date: Fri, 23 Jan 2015 08:39:33 -0500
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <54C246EC.90207@xxxxxxxxxxxxxxx>
References: <54C246EC.90207@xxxxxxxxxxxxxxx>
User-agent: Mutt/1.5.23 (2014-03-12)
On Fri, Jan 23, 2015 at 08:04:44PM +0700, Dewangga Bachrul Alam wrote:
> Hi,
> I'm new to XFS, I have RAID-10 array with 4 disk, when I check with
> xfs_info, the information print like this.
> $ xfs_info /var/lib/mysql
> meta-data=/dev/mapper/vg_catalystdb01-lv_database isize=256
> agcount=16, agsize=1600000 blks
>          =                       sectsz=4096  attr=2, projid32bit=0
> data     =                       bsize=4096   blocks=25600000, imaxpct=25
>          =                       sunit=0      swidth=0 blks
> naming   =version 2              bsize=4096   ascii-ci=0
> log      =internal               bsize=4096   blocks=12500, version=2
>          =                       sectsz=4096  sunit=1 blks, lazy-count=1
> realtime =none                   extsz=4096   blocks=0, rtextents=0
> Is it possible to change `sectsz` value to 512 without re-format it? Or
> any suggestion? I have issue with current sector size, my TokuDB
> engines[1] can't start because of this.

The only way to set things like sector size, block size, etc. is to
reformat. I believe the default sector size is dependent on the physical
device. You might want to report the following from your array device
and perhaps from some or all of the member devices:

blockdev --getss --getpbsz --getiomin --getioopt <device>


> [1] https://groups.google.com/forum/#!topic/tokudb-user/kvQFJLCmKwo
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

<Prev in Thread] Current Thread [Next in Thread>