7aeaf168053e0aafd2c5f1163c4df49d090a1b4d
ubuntu/lvm/\346\226\260\343\201\237\343\201\253\346\232\227\345\217\267\345\214\226\343\201\225\343\202\214\343\201\237\343\203\207\343\202\243\343\202\271\343\202\257\343\202\222\350\277\275\345\212\240\343\201\231\343\202\213.md
... | ... | @@ -0,0 +1,30 @@ |
1 | +``` |
|
2 | +$ sudo fdisk /dev/sdb |
|
3 | +``` |
|
4 | + |
|
5 | +``` |
|
6 | +$ sudo cryptsetup luksFormat /dev/sdb1 |
|
7 | +``` |
|
8 | + |
|
9 | +``` |
|
10 | +$ sudo cryptsetup open /dev/sdb sdb1_crypt |
|
11 | +``` |
|
12 | + |
|
13 | +`/dev/mapper/sdb1_crypt`にマウントされる. |
|
14 | + |
|
15 | + |
|
16 | +``` |
|
17 | +$ sudo pvcreate /dev/mapper/sdb1_crypt |
|
18 | +``` |
|
19 | + |
|
20 | +``` |
|
21 | +$ sudo vgcreate [Volume Group Name] /dev/mapper/sdb1_crypt |
|
22 | +``` |
|
23 | + |
|
24 | +``` |
|
25 | +$ sudo lvcreate -l 100%FREE -n [partation name] [Volume Group Name] |
|
26 | +``` |
|
27 | + |
|
28 | +``` |
|
29 | +$ sudo mkfs.ext4 /dev/mapper/[created-partation] |
|
30 | +``` |
|
... | ... | \ No newline at end of file |