File: lvm_tree_thin_provision.yaml

package info (click to toggle)
python-diskimage-builder 3.39.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,704 kB
  • sloc: sh: 7,474; python: 6,454; makefile: 37
file content (122 lines) | stat: -rw-r--r-- 2,071 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
- local_loop:
    name: image0

- partitioning:
    base: image0
    name: mbr
    label: mbr
    partitions:
      - name: root
        base: image0
        flags: [ boot,primary ]
        size: 3G

- lvm:
    base: mbr
    pvs:
      - name: pv
        options: ["--force"]
        base: root

    vgs:
      - name: vg
        base: ["pv"]
        options: ["--force"]

    lvs:
      - name: lv_thinpool
        type: thin-pool
        base: vg
        size: 2800MiB

      - name: lv_root
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 1800MiB

      - name: lv_tmp
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 100MiB

      - name: lv_var
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 500MiB

      - name: lv_log
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 100MiB

      - name: lv_audit
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 100MiB

      - name: lv_home
        type: thin
        thin-pool: lv_thinpool
        base: vg
        size: 200MiB

- mkfs:
    name: fs_root
    base: lv_root
    label: "img-rootfs"
    type: "xfs"
    mount:
      mount_point: /
      fstab:
          options: "rw,relatime"
          fsck-passno: 1

- mkfs:
    name: fs_var
    base: lv_var
    type: "xfs"
    mount:
      mount_point: /var
      fstab:
          options: "rw,relatime"

- mkfs:
    name: fs_log
    base: lv_log
    type: "xfs"
    mount:
      mount_point: /var/log
      fstab:
          options: "rw,relatime"

- mkfs:
    name: fs_audit
    base: lv_audit
    type: "xfs"
    mount:
      mount_point: /var/log/audit
      fstab:
          options: "rw,relatime"

- mkfs:
    name: fs_tmp
    base: lv_tmp
    type: "xfs"
    mount:
      mount_point: /tmp
      fstab:
          options: "rw,nosuid,nodev,noexec,relatime"

- mkfs:
    name: fs_home
    base: lv_home
    type: "xfs"
    mount:
      mount_point: /home
      fstab:
          options: "rw,nodev,relatime"