[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: TRIM support with XFS



On 6/29/2013 11:45 PM, John Andreasson wrote:
> On Sun, Jun 30, 2013 at 1:47 AM, Stan Hoeppner <stan@hardwarefreak.com> wrote:
>> Post the XFS mount entry(s) in dmesg and any errors.
> 
> [    2.119489] SGI XFS with ACLs, security attributes, realtime, large
> block/inode numbers, no debug enabled
> [    2.119716] SGI XFS Quota Management subsystem
> [    2.120753] XFS (sda2): Mounting Filesystem
> [    2.150708] XFS (sda2): Ending clean mount
> 
>> Paste the exact line from /etc/fstab.
> 
> UUID=xxxx-xxxx                            /boot/efi       vfat
> defaults        0       1
> UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx /               xfs
> defaults,discard,noatime         0       1
> UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx none            swap    sw
>            0       0
> 
>> I should have remembered this sooner.  You're using initrd I assume
>> since this is a stock install.  The problem here is that the rootfs is
>> being mounted via initrd.  If you didn't rebuild it after adding discard
>> to /etc/fstab, this explains your problem.
>>
>> Rebuilding initrd should fix it.
> 
> Apart from the change in default file system it's pretty much a stock
> install. I've rebuilt the inird and rebooted the machine; but no
> change in /proc/mounts.

Hmm...

Last thing to try is rootflags.  To your kernel line in menu.lst add

root=/dev/sdXX rootflags=discard ro

If that doesn't do it maybe there's a bug here.

-- 
Stan


Reply to: