how to create lvm partion by kickstart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All,
 
I try to use kickstart to install server and set disk layout by lvm.
But there is error when I execute the pvs after installation.
 
Maybe there is something wrong with my ks files ? But I am not sure where. If there is anyone can give me any suggestion ?
 
  Couldn't find device with uuid GmxJ6H-uM3f-AQrp-Hmh7-h0Zt-WfP8-mLaI3M.
  Couldn't find device with uuid AcBVR7-iF01-ujlx-C4L8-mfr6-R7pg-j1eBe6.
  Couldn't find device with uuid Ph6vrv-k2AP-Hnpc-lrEM-5SkJ-Whsl-8e1Ivm.
  PV                VG         Fmt  Attr PSize   PFree
  /dev/cciss/c0d2p1 vg_data    lvm2 a--    1.36T    0
  /dev/md1          vg_sys     lvm2 a--  119.97G    0
  /dev/md2          vg_app     lvm2 a--  159.16G    0
  /dev/sda1         VolGroup00 lvm2 a--    3.72G    0
  unknown device    VolGroup00 lvm2 a-m  279.34G    0
  unknown device    VolGroup00 lvm2 a-m    1.36T    0
  unknown device    VolGroup00 lvm2 a-m  279.25G    0
 
Here is the ks snippet I used to setup lvm:
 
####################################################################
# LD0 300G
# LD1 300G
# LD2 1.39T
clearpart --drives=$LD0,$LD1,$LD2 --all --initlabel
#------------------------------------------------------------------------#
#-------------------------------------------------------------------------#
# /boot
# /, /usr, /var, swap
# /opt, /home
 
part raid.00 --size 204       --_ondrive_=$LD0  --asprimary
part raid.10 --size 204       --_ondrive_=$LD1  --asprimary
part raid.01 --size 122880    --_ondrive_=$LD0  --asprimary
part raid.11 --size 122880    --_ondrive_=$LD1  --asprimary
part raid.02 --size 1 --grow  --_ondrive_=$LD0
part raid.12 --size 1 --grow  --_ondrive_=$LD1
 
part pv.10   --size=1 --grow  --_ondisk_=$LD2
 
raid /boot   --fstype ext3 --device md0 --level=RAID1 raid.00 raid.10
raid pv.1    --fstype ext4 --device md1 --level=RAID1 raid.01 raid.11
raid pv.2    --fstype ext4 --device md2 --level=RAID1 raid.02 raid.12
 
volgroup vg_sys   pv.1
volgroup vg_app   pv.2
volgroup vg_data  pv.10
logvol /     --vgname=vg_sys     --size=52428        --name=lv_root
logvol swap  --vgname=vg_sys     --size=$SWAP_SIZE   --name=lv_swap
logvol /usr  --vgname=vg_sys     --size=10240        --name=lv_usr
logvol /var  --vgname=vg_sys     --size=1 --grow     --name=lv_var
 
logvol /opt  --vgname=vg_app     --size=52428        --name=lv_opt
logvol /home --vgname=vg_app     --size=1 --grow     --name=lv_home
 
logvol /data --vgname=vg_data    --size=1 --grow     --name=lv_data
####################################################################
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Index of Archives]     [Red Hat General]     [CentOS Users]     [Fedora Users]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]

  Powered by Linux