Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jEoBT-0004xq-Ty for mharc-grub-devel@gnu.org; Thu, 19 Mar 2020 01:57:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47441) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jEoBR-0004xd-Ie for grub-devel@gnu.org; Thu, 19 Mar 2020 01:57:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jEoBQ-00021d-FM for grub-devel@gnu.org; Thu, 19 Mar 2020 01:57:33 -0400 Received: from m9a0014g.houston.softwaregrp.com ([15.124.64.90]:43499) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jEoBQ-0001yi-9C for grub-devel@gnu.org; Thu, 19 Mar 2020 01:57:32 -0400 Received: FROM m9a0014g.houston.softwaregrp.com (15.121.0.191) BY m9a0014g.houston.softwaregrp.com WITH ESMTP FOR grub-devel@gnu.org; Thu, 19 Mar 2020 05:56:24 +0000 Received: from M9W0068.microfocus.com (2002:f79:bf::f79:bf) by M9W0068.microfocus.com (2002:f79:bf::f79:bf) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1591.10; Thu, 19 Mar 2020 05:56:29 +0000 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (15.124.72.14) by M9W0068.microfocus.com (15.121.0.191) 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; Thu, 19 Mar 2020 05:56:29 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=iCnhqj/05OI1mEOazClBmEZcs+j3Ncxugp2sZ2NX9asZ1s99F+Nsbnt9EBjc5YvZFcrhZGe6NVBksN/ExnKBJ0XfSGnD1XO9l9/+W3VxsDf5ti8xXC35BH73kOCYa2pa7ISbh+ta3gFlfpA4RopD+3FvJSM8j9dAprmeZbxilyPan5bW8Z+H8wYvwrh4OiNAOG7O2oVJRsXxqvdBFO2nfcVqaUWxpqyPpQfexV0iWFneqidObtrtl9MN4YraTlOZPma7AtDPeD7v87UaZx+MnewG4cAD0B8YJo+V97l8JIdbSeOWwtdyJxFv78UvOHzS3vtkxS1fz9BD0Tf8Jl/f9w== 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=a77HSJMcxHI33+N2AJFn9vqwtOWrgtawYMgQ55VGcnY=; b=GOb7NI5rglxBpPVjDBivIAi9N0QacXKhp6Z3Zm9DNJP7dE3fhh9u9ZTxWFHJLdNy9+waTOXM23ml3Z9QsWNNd5+yavbcluVE1c0GxOdiCTG9QOi5pLc9dAbxI/BMNa/g7XgNPoK5iU/blgHiHRMECTIG4MPMpN8itr+OGXN2Ws9fdTW7KUYTeGhd202KsJT1TLsQnRs40oU9QaT6rkkRomUwoaLxVUXvpEt5K/4YAjKxob1bUsImn/1yqfCKM70M70K/oi6/wQpoOYOrODxR6kL04w5NGs7i/CA2tQ3a7cEhSEWlgvBXH4iH5f1E+dnzv93aTC4zRjlsEKMHgrmlVA== 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 BY5PR18MB3395.namprd18.prod.outlook.com (2603:10b6:a03:194::32) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19; Thu, 19 Mar 2020 05:56:27 +0000 Received: from BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::450b:5974:aa1b:8a9c]) by BY5PR18MB3188.namprd18.prod.outlook.com ([fe80::450b:5974:aa1b:8a9c%7]) with mapi id 15.20.2814.021; Thu, 19 Mar 2020 05:56:27 +0000 From: Michael Chang To: Subject: [PATCH v4 2/2] docs: Document notes on LVM cache booting Date: Thu, 19 Mar 2020 13:56:14 +0800 Message-ID: <20200319055614.6764-2-mchang@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200319055614.6764-1-mchang@suse.com> References: <20200319055614.6764-1-mchang@suse.com> Content-Type: text/plain X-ClientProxiedBy: HK2PR04CA0055.apcprd04.prod.outlook.com (2603:1096:202:14::23) To BY5PR18MB3188.namprd18.prod.outlook.com (2603:10b6:a03:1ac::18) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 Received: from linux-9gqx.suse (60.251.47.115) by HK2PR04CA0055.apcprd04.prod.outlook.com (2603:1096:202:14::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2835.19 via Frontend Transport; Thu, 19 Mar 2020 05:56:26 +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: e58ac64c-f22e-4031-bdf1-08d7cbca4362 X-MS-TrafficTypeDiagnostic: BY5PR18MB3395: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:5797; X-Forefront-PRVS: 0347410860 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(4636009)(136003)(366004)(376002)(346002)(396003)(39860400002)(199004)(66946007)(6666004)(316002)(16526019)(26005)(5660300002)(6486002)(2906002)(66476007)(36756003)(66556008)(186003)(2616005)(956004)(478600001)(86362001)(8936002)(8676002)(52116002)(6506007)(81156014)(81166006)(8886007)(55236004)(6512007)(1076003)(6916009); DIR:OUT; SFP:1102; SCL:1; SRVR:BY5PR18MB3395; H:BY5PR18MB3188.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A: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: m0SwsBnTp9IIvPQINRAAGtm3MXrezTJzHMf8bAEz6GOn76uvUu2R0+C6uX3uSiuSqH1astyF92vmAyqFceDNUHCjmbmgP8G0rpWGhhnM/Bkn98yimnJ9dVHSRvCVFlo5CpJ6kknks83uJwB62EUcl+IK+S43tTS9F5DKU/Hs2p9eNGmXZKfJZnNeJo1bPOF+pAGgoixzvftI4x6XyVjBLS6P3frd91E98jLk2D5rTUjjqepuhG8sQJHjOpUBZsQEy1nZVoZYKlY1iPy0G4srZ5UzMvVVDusUL1Q608rIU9WdXCs4Fomvf3bFMAW2TsVpewMjo9I0i83y/fRD1W/DuOtjjjrdRRdjvmqpyBFA5V1cwRiyVqvn0SaKsOyLp6eIUbqKQFERfinqzpYJeqOQR5KB90fE0rhoz1JrdGYR68elE17LLqyTbrvDYwu8bSys X-MS-Exchange-AntiSpam-MessageData: xLsWepa2t/izJnzr1gA7RbXM7sxTvFIpS7TlE82AXzMs3832uUZNdv4ul427Y46qChbFnbuvd6HtNxOyPutpKZiXcC8fQFN71mldQNd9cj6WiZe2FnFvFqn1aS5kmpxX0LA5+le0TboFcx6jvVX5pg== X-MS-Exchange-CrossTenant-Network-Message-Id: e58ac64c-f22e-4031-bdf1-08d7cbca4362 X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Mar 2020 05:56:27.3899 (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: XwmVChq2Ku3qbkB/D8+NaXKb8DhzpQ5YRTxzBCCbq9t8EkPVqEMNOKHGqOsgE8Q6 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR18MB3395 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.90 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: Thu, 19 Mar 2020 05:57:34 -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 Reviewed-by: Daniel Kiper --- 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