Translated message

A translation of this page exists in English.

如何使用dm-crypt在LVM(版本是LVM2)上创建一个加密的逻辑卷?

已更新 -

解决方法:

这是一个样例:

1. 使用命令lvcreate创建一个名字是CRYPTO的逻辑卷(LV) :  :

     [root@testmachine /]# lvcreate -n CRYPTO -L+100M DATA
     Logical volume "CRYPTO" created

2. Create a crypto blockdevice on CRYPTO using cryptsetup使用cryptsetup命令把逻辑卷CRYPTO设置成为加密的块设备:

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content