From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1j9Nz5-00065M-1P for mharc-grub-devel@gnu.org; Wed, 04 Mar 2020 01:58:23 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54784) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j9Nz3-000657-0A for grub-devel@gnu.org; Wed, 04 Mar 2020 01:58:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j9Nz0-0004gp-HT for grub-devel@gnu.org; Wed, 04 Mar 2020 01:58:19 -0500 Received: from m9a0013g.houston.softwaregrp.com ([15.124.64.91]:58835) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1j9Nz0-0004cu-B8 for grub-devel@gnu.org; Wed, 04 Mar 2020 01:58:18 -0500 Received: FROM m9a0013g.houston.softwaregrp.com (15.121.0.190) BY m9a0013g.houston.softwaregrp.com WITH ESMTP FOR grub-devel@gnu.org; Wed, 4 Mar 2020 06:57:30 +0000 Received: from M4W0334.microfocus.com (2002:f78:1192::f78:1192) by M9W0067.microfocus.com (2002:f79:be::f79:be) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Wed, 4 Mar 2020 06:45:21 +0000 Received: from NAM11-BN8-obe.outbound.protection.outlook.com (15.124.8.13) by M4W0334.microfocus.com (15.120.17.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10 via Frontend Transport; Wed, 4 Mar 2020 06:45:21 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Mq5AvHKcTpiBNeMz4pq5ybo/AuJfFvJP5qSKZ4fnpY/6qteeRMUtdMY5WgTCR8A3mIJjsI+KfNezBH3N3GVZ+fR8Xs2Py8MEEtp20c5RL50ULSC2sHzZEB/K5c6hmwXyCYwvYgwooBVY1gBNN3Bn0UZiTPzIwGlMonMs15qDtL55vcmg1Ur3h4PQIJ+Q4INo+m4WJ9/BvgO4bJOTcEfUq2lbaTIUfry0csJF5v3aY27rwVqljbAQJsV4yKlaAg3cQw8gW9QFZkWujadcRPGeOwHO+NYzBTfUP1TSheIDmO5+/bcEH3LeXFgZbLXu4I4LeBPJcg9cuv0+hbG0lxThIw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=GAC6MOkYYxwFJ1YJ59IySZ1DkuDxYhr3RAFOv6ZsUPg=; b=Rgj/i+MGwv97O0ArU2iWQIHcWU/N9lwSxlxb/CnntXTZzQie1mZe+mV6Dl//l2PMjzPPDGTnT7wZzd0p1chm4YAqQBC2CjaGqHvJHeN9uMZWCYe3W1dDLuzWgO8ICOdetwmhDorbp6X/XljF+foNwFGfY0WUdqI/lyTY8uMZ6kW7rk/9N+XuIjGJLQ+Cy7wPzY3L4pl1xwFmpTORVIzSxYOVzeVUDMcfSq7Z8a0udI3Zx0YFQg4BaOzqXgtVtMv9smemxgCuc/+lFV9LLotD5WfR5uRgbhpbi2DRKE1LoAhgZBK/JYVxgVR+iF4jUftv7JGPCUQNd3ksJQqbEcmkiw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.com; arc=none Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=MChang@suse.com; Received: from BY5PR18MB3188.namprd18.prod.outlook.com (2603:10b6:a03:1ac::18) by BY5PR18MB3411.namprd18.prod.outlook.com (2603:10b6:a03:195::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.14; Wed, 4 Mar 2020 06:45:13 +0000 Received: from BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::28ac:20e6:d692:e83]) by BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::28ac:20e6:d692:e83%5]) with mapi id 15.20.2772.019; Wed, 4 Mar 2020 06:45:13 +0000 From: Michael Chang To: Subject: [PATCH v3 2/2] docs: Document notes on LVM cache booting Date: Wed, 4 Mar 2020 14:44:53 +0800 Message-ID: <20200304064453.20973-2-mchang@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200304064453.20973-1-mchang@suse.com> References: <20200304064453.20973-1-mchang@suse.com> Content-Type: text/plain X-ClientProxiedBy: LO2P265CA0006.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::18) To BY5PR18MB3188.namprd18.prod.outlook.com (2603:10b6:a03:1ac::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from mazu.suse.de (60.251.47.115) by LO2P265CA0006.GBRP265.PROD.OUTLOOK.COM (2603:10a6:600:62::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2772.18 via Frontend Transport; Wed, 4 Mar 2020 06:45:11 +0000 X-Mailer: git-send-email 2.16.4 X-Originating-IP: [60.251.47.115] X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: f9e237f5-3953-439e-3b8d-08d7c00796d8 X-MS-TrafficTypeDiagnostic: BY5PR18MB3411: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 0332AACBC3 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4636009)(366004)(346002)(376002)(39860400002)(136003)(396003)(199004)(189003)(186003)(52116002)(5660300002)(2906002)(55236004)(6666004)(66946007)(16526019)(66556008)(26005)(66476007)(6916009)(6506007)(8676002)(8936002)(478600001)(81166006)(316002)(81156014)(6486002)(2616005)(36756003)(86362001)(956004)(6512007)(1076003); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR18MB3411; H:BY5PR18MB3188.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: suse.com does not designate permitted sender hosts) X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: tJVKTjW3QxGO3p+ZxbMzaxJC5jiVhDLEu0rwc0tadeqxfWY+ZQmeXagL/pI03J8KMRkl2NQ4t+sday0lb7Cq2WLXc/tjAH9VBW8bKEoliNAIYifPC/LXRMAWoe7LFM+CWMZYFXwbWysIywaKE39TmCyo8FplVy/h2l4Z88E9Ez7zrvCKyxfNT86bBdsP649KgVgevTDzvmMRjp7jHTmQjeJen9kuPrEvPPrQTJ+1EA2RsASftDzyQ7Z7Mhnkse+mXs1biWxXerUtkcjQO00cHV+MptD5KJ50AEWwRe9Kqlt2p/dmpGWRaWRopCmP2gpAY/UlqoYkf+l+ZMfE0QkWgVuJ5fZTgPYysiAvhKf70DgMG8kdCbIvc35GLqLr3NoHQYfkZ6Bfo03RcLetdZsQ4kGKQD0FBuixhQusHwycqnf7os+P84Zb7YUmfry3wAFd X-MS-Exchange-AntiSpam-MessageData: cXlcisL+t0GniSsP8Yb0yJ2oPHwa9Yp4kcITGRKBjuTGZb4v/KOhHlDRUV4/2nAKD3XZr5XDLmOwL3osP9vAhesPZvAcAkQKOiFRuFaxsUQ4tLh1By7P7TfI2rlYPDyizQw05d6Mqnm7JV0UuwlXpA== X-MS-Exchange-CrossTenant-Network-Message-Id: f9e237f5-3953-439e-3b8d-08d7c00796d8 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Mar 2020 06:45:12.9079 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 856b813c-16e5-49a5-85ec-6f081e13b527 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9cAnqIQgnQ6yiQwIrZNwZWqF9VRFA1LHeiQ1wt7neAkPpc/LNJNzjZqSEkUvipNs X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR18MB3411 X-OriginatorOrg: suse.com X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 15.124.64.91 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Mar 2020 06:58:22 -0000 Add notes on LVM cache booting to the GRUB manual to help user understanding the outstanding issue and status. Signed-off-by: Michael Chang --- docs/grub.texi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi index 83979af38..8e6f9acec 100644 --- a/docs/grub.texi +++ b/docs/grub.texi @@ -894,6 +894,7 @@ magic. @menu * General boot methods:: How to boot OSes with GRUB generally * Loopback booting:: Notes on booting from loopbacks +* LVM cache booting:: Notes on booting from LVM cache logical volume * OS-specific notes:: Notes on some operating systems @end menu @@ -991,6 +992,26 @@ way. Please consider alternative boot methods like copying all files from the image to actual partition. Consult your OS documentation for more details +@node LVM cache booting +@section Booting from LVM cache logical volume + +The LVM cache logical volume is the logical volume consisting of the original +and the cache pool logical volume. The original is usually on a larger and +slower storage device while the cache pool is on a smaller and faster one. The +performance of the original volume can be improved by storing the frequently +used data on the cache pool to utilize the greater performance of faster +device. + +GRUB boots from LVM cache logical volume merely by reading it's original +logical volume so that dirty data in cache pool volume is disregarded. This is +not a problem for "writethrough" cache mode as it ensures that any data written +will be stored both on the cache and the origin LV. For the other cache mode +"writeback", which delays writing from the cache pool back to the origin LV to +boost performance, GRUB may fail to boot in the wake of accidental power outage +due to it's inability to assemble the cache device for reading the required +dirty data left behind. The situation will be improved after adding full +support to the LVM cache logical volume in the future. + @node OS-specific notes @section Some caveats on OS-specific issues -- 2.16.4