lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <83247E23-F941-4E35-9D38-395A4715E383@gmail.com>
Date:	Wed, 22 Feb 2012 09:54:46 -0700
From:	Andreas Dilger <aedilger@...il.com>
To:	Roberto Ragusa <mail@...ertoragusa.it>
Cc:	"linux-ext4@...r.kernel.org" <linux-ext4@...r.kernel.org>
Subject: Re: Mkfs option to choose where metadata will be stored

On 2012-02-22, at 6:20, Roberto Ragusa <mail@...ertoragusa.it> wrote:

> Hi, [please CC me, I'm not subscribed]
> 
> is there any way to force allocation of metadata to a different device
> or to a specific part (e.g. the begin) of the partition?
> 
> I see there is -O journal_dev to redirect the journal.
> Can I do something different for metadata?
> 
> My idea is to have metadata on SSD and data on HDD.
> With a linear RAID mapping, I would get a device which is a few GB of
> SSD followed by a lot of HDD space.

I've tested something similar to this myself. The way I did it is to use the "flex_bg" option "-G 256" to put the metadata into a single 128MB group, which is allocated on an SSD LVM PV, then 255 x 128MB on an HDD PV.

This pattern repeats for the entire LV size, and can easily be created with a 128MB LV on the SSD then alternating pvextend of (255 * 128MB) on the HDD PV and 128MB on the SSD PV until the desired size is reached or you run out of space on one of the PVs. 

The exact formatting options I used are:

mke2fs -t ext4 -i 69905 -G 256 -E resize=4290772992 {dev}

this will lay everything out on the LV nicely. Note that it assumes an average  file size of about 69kB here. Increasing this is fine, but making it smaller would disrupt the layout. 

> Alternatively, I'm going to experiment with an approach where a volume group
> is done on two PV: one HDD and one SSD. The idea is to create the LV on
> the HDD and then move some extents (for example 0,1,64,65,128,129,...) to
> the SSD, so that metadata happens to be on the SSD.
> From what I found about the on-disk format, this is highly approximate
> and surely inelegant, so I wonder if a simpler solution exists.
> 
> Thanks.
> 
> -- 
>   Roberto Ragusa    mail at robertoragusa.it
> --
> To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
> the body of a message to majordomo@...r.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-ext4" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ