partition encryption in LVM
2014-09-01 13:29
239 查看
Tested the partition encryption of LVM in RHEL6
1, vgs -report information about volume group
2, lvs-report the information about logical volumes
3, create the logic volume, size 100M
lvcreate -n lv_lockbox -L 100M vgsrv
4, format the logic volume just created
mkfs.ext4 /dev/vgsrv/lv_lockbox
5, create the mount point
mkdir /mnt/lockbox
6, for security reasons, dump random data to the logic volume created
cat /dev/urandom > /dev/vgsrv/lv_lockbox
7, create the encryption partition based on step 4, here needs to input the passphrase.
cryptsetup luksFormat /dev/vgsrv/lv_lockbox
8, luksOpen the logic volume to lockbox, here needs to input the passphrase setup earlier.
cryptsetup luksOpen /dev/vgsrv/lv_lockbox lockbox
9, create file system based on the luksOpen lockbox
mkfs.ext4 /dev/mapper/lockbox
10, mount the lockbox to /mnt/lockbox
mount /dev/mapper/lockbox /mnt/lockbox/
11, copy files to /mnt/lockbox for testing,
cp /etc/services /mnt/lockbox
12, grep http /mnt/lockbox/services
1, vgs -report information about volume group
2, lvs-report the information about logical volumes
3, create the logic volume, size 100M
lvcreate -n lv_lockbox -L 100M vgsrv
4, format the logic volume just created
mkfs.ext4 /dev/vgsrv/lv_lockbox
5, create the mount point
mkdir /mnt/lockbox
6, for security reasons, dump random data to the logic volume created
cat /dev/urandom > /dev/vgsrv/lv_lockbox
7, create the encryption partition based on step 4, here needs to input the passphrase.
cryptsetup luksFormat /dev/vgsrv/lv_lockbox
8, luksOpen the logic volume to lockbox, here needs to input the passphrase setup earlier.
cryptsetup luksOpen /dev/vgsrv/lv_lockbox lockbox
9, create file system based on the luksOpen lockbox
mkfs.ext4 /dev/mapper/lockbox
10, mount the lockbox to /mnt/lockbox
mount /dev/mapper/lockbox /mnt/lockbox/
11, copy files to /mnt/lockbox for testing,
cp /etc/services /mnt/lockbox
12, grep http /mnt/lockbox/services
相关文章推荐
- How to extend the root partition in LVM
- WARNING: Data partition already in use. Changes will not persist!
- Using Padding in Encryption
- the partition is misaligned by 1536 this may result in very poor ...解决方法
- Topology activation failed. Each partition must have at least one index component from the previous topology in the new topology, in the same host.
- Resizing LVM Volumes in Linux
- AES encryption of files in Python with PyCrypto
- A problem in function PartitionMotionSearch()
- pidCrypt - AES (Advanced Encryption Standard) in CBC mode
- AES - How to do encryption using AES in Openssl
- ORA-14099: all rows in table do not qualify for specified partition
- linux_How Do I Access or Mount Windows/USB NTFS Partition in RHEL/CentOS/Fedora
- Ubuntu - 硬盘分区、格式化、自动挂载配置 | Hard disk add new partition, format, auto mount in ubuntu
- user quota and lvm operations in linux
- Using Padding in Encryption
- RSA Encryption in C#
- Ubuntu - 硬盘分区、格式化、自动挂载配置 | Hard disk add new partition, format, auto mount in ubuntu
- ORA-14517: Subpartition of index "string.string" is in unusable state
- Searching for Outlook Compressible Encryption (PST Data) in the Unallocated Clusters
- Analysis Services Partition Creation in SSIS