[Top] [All Lists]

Re: LVM + XFS + external log + snapshots

To: stan@xxxxxxxxxxxxxxxxx
Subject: Re: LVM + XFS + external log + snapshots
From: aurfalien <aurfalien@xxxxxxxxx>
Date: Sat, 22 Jun 2013 14:13:28 -0700
Cc: "xfs@xxxxxxxxxxx" <xfs@xxxxxxxxxxx>
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:mime-version:content-type:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to:x-mailer; bh=C1NRpmPb37JIoPx7PW3FjPIgK8Y/Qf8GzdIY63do79k=; b=NjXsqc03uI6oYva6LJQWAvcqBUSI+g4KQFgZTHKu/kg6kzMZlsSnjqpl39vWZraoXh NZDMahJzjLIDUYVTiS88VzI/GaCxRRmLK6leUieWbKahXR+A3TXvuzKrVk4KlMEqcNjc T/d9KJ9+1UKpmq0lpltZGQOwITuzsZV/BHD7gYH1JEHKsP/pD7bPrN4uGOR1iGaT5DG9 s+efwcRen0nfACXOgWOfGBVAfPNK0DM5x7UzrYebUAsz8QcvCQbwDFK8SRbRQsB851iC WiMm7jZBLX9BSBj2akHzZ/kW4ucTLvdsAN6nD3ipenyR+1GeM90I9UVg99khiLyj0uAp 2PpA==
In-reply-to: <51C55918.1030004@xxxxxxxxxxxxxxxxx>
References: <022467CC-8EB2-41E9-8AF6-46F781882F6B@xxxxxxxxx> <51C55918.1030004@xxxxxxxxxxxxxxxxx>
Many many thanks Stan.

It appears that I poorly architected the file system layout.

Will most likely move the log to another device, then LVM the original device 
(sdc1) and move it back.

Many many thanks for the info, very top tier expert level for sure.

- aurf
On Jun 22, 2013, at 12:58 AM, Stan Hoeppner wrote:

> Sorry for err aurfalien, first reply didn't make the list.
> On 6/22/2013 12:30 AM, aurfalien wrote:
>> Hi all,
>> So I have an XFS file system within LVM  which has an external log.
> Migrate to internal logs as snaps are easy.  Since delaylog (2.6.39+)
> external logs are generally no longer needed, provide little to no
> advantage as log bandwidth drops dramatically.  If RHEL or CentOS that's
> 6.2 or later.
> ...
>> lvcreate -L250G -s -n datasnapshot /dev/vg_spock_data/lv_data
>> But when i try to mount the file system;
> For now, to get past this current problem, you must snapshot both the
> filesystem and the log, during the same freeze.  You're currently
> cloning the Lone Ranger without cloning Tonto.  Ain't gonna work.  And
> it looks like the log device doesn't reside on LVM, so you're outta
> luck, can't snap it.
>> logdev=/dev/sdc1
>> Am I doing something wrong or is this not possible?
> Your first error was putting the log on raw storage instead of an LV.
> If your kernel is new enough to support delaylog, then your 2nd error
> was using an external log.  External logs were once useful for high
> metadata workloads, but since delaylog they are largely no longer needed.
> xfsdump the filesytem, mkfs.xfs with an internal log, then xfsrestore.
> Alternatively you could keep the external log:  Remount the live XFS
> using an alternate location for the log.  Put an LV on sdc1.  Then
> remount again using this new LV as the log location.  Then you can snap
> both XFS and the log, and mount the snap with the matching log.
> -- 
> Stan
> _______________________________________________
> xfs mailing list
> xfs@xxxxxxxxxxx
> http://oss.sgi.com/mailman/listinfo/xfs

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