“ubuntu教程”cobbler部署ubuntu的preseed文件中关于硬
来源: 电脑维修教程 阅读:次 发表时间:
cobbler摆设ubuntu的preseed文件中关于硬盘lvm分区的2种方式阐述 本文转自http://www.5ilinux.com/2013/08/cobbler_ubuntu_preseed_lvm.html 在做cobbler的ubuntu主动化安装摆设进程
cobbler摆设ubuntu的preseed文件中关于硬盘lvm分区的2种方式阐述
本文转自http://www.5ilinux.com/2013/08/cobbler_ubuntu_preseed_lvm.html
在做cobbler的ubuntu主动化安装摆设进程中,ubuntu的preseed文件关于lvm的界说,我们凡是有2种体例,这边做测试的时辰,别离作了记实
########atomic模式##########################
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto-lvm/guided_size string 10gb
#卷组利用巨细10g,可使用参数 max或者50%
d-i partman-auto/choose_recipe select atomic
d-i partman/choose_partition select finish partitioning and write changes to disk
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman/confirm_nooverwrite boolean true
###成果 主动分了250m的/boot分区 。 10g的卷组,此中逻辑卷swap巨细跟内存一样,其它残剩的分给逻辑卷分区 /
##########手工lvm分区模式#############################
##原硬盘巨细50g,要求分一个ext2格局的boot分区(256m),操纵残剩的空间50%做lvm的卷组,卷组名为vg00
#root分区在卷组里的逻辑分区中,巨细10g,格局为ext4
#swap分区在卷组里的逻辑分区中,512m 格局化为swap分区
#/www分区在卷组里的逻辑分区中,巨细为5g,格局为ext4
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
d-i partman-auto/method string lvm
d-i partman-lvm/device_remove_lvm boolean true
d-i partman-md/device_remove_md boolean true
d-i partman-lvm/confirm boolean true
d-i partman-auto-lvm/new_vg_name string vg00
d-i partman-auto-lvm/guided_size string 50%
d-i partman-auto/choose_recipe select boot-root
d-i partman-auto/expert_recipe string
boot-root ::
256 50 256 ext2
$primary{ } $bootable{ }
method{ format } format{ }
use_filesystem{ } filesystem{ ext2 }
mountpoint{ /boot }
.
10240 60 10240 ext4
$defaultignore{ }
$lvmok{ }
lv_name{ root }
method{ format }
format{ }
use_filesystem{ }
filesystem{ ext4 }
mountpoint{ / }
.
512 60 512 swap
$defaultignore{ }
$lvmok{ }
lv_name{ swap }
method{ swap }
format{ }
.
5120 70 5120 ext4
$defaultignore{ }
$lvmok{ }
lv_name{ www }
method{ format }
format{ }
use_filesystem{ }
filesystem{ ext4 }
mountpoint{ /www }
.
d-i partman-md/confirm boolean true
d-i partman-partitioning/confirm_write_new_label boolean true
d-i partman/choose_partition select finish partitioning and write changes to disk
d-i partman-lvm/confirm_nooverwrite boolean true
d-i partman/confirm_nooverwrite boolean true
以上是:解决“ubuntu教程”cobbler部署ubuntu的preseed文件中关于硬问题的详细资料教程