Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 1490194 Details for
Bug 1635798
No way to skip "You must create a new file system on the root device"
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
The Kickstart file
punkcluster-kickstart-btrfs-dup.sh (text/plain), 5.16 KB, created by
lukasstraub2
on 2018-10-03 18:00:09 UTC
(
hide
)
Description:
The Kickstart file
Filename:
MIME Type:
Creator:
lukasstraub2
Created:
2018-10-03 18:00:09 UTC
Size:
5.16 KB
patch
obsolete
>#version=RHEL7 ># Install OS instead of upgrade >install > ># Poweroff after installation >poweroff > ># Use network installation >url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-28&arch=x86_64" >repo --name=fedora-updates --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f28&arch=x86_64" --cost=0 > ># License agreement >eula --agreed > ># Use graphical install >#graphical > ># Use text mode install >text > ># Do not configure the X Window System >skipx > ># Run the Setup Agent on first boot >firstboot --enable > ># Keyboard layouts >keyboard --vckeymap=de --xlayouts='de' > ># System language >lang en_US.UTF-8 > ># Network information >network --bootproto=dhcp --noipv6 --activate >network --hostname=kickstart > ># Root password >rootpw --plaintext xxx > ># System services >services --enabled="NetworkManager,sshd" > ># System timezone >timezone Europe/Berlin --isUtc > ># Clear the Master Boot Record >zerombr > ># Include partition scheme >%include /tmp/partitioning.txt > >%pre >#!/bin/bash ># Use RAID+LVM or just LVM to partition the disk > ># Get the disks >COUNT=0 >for DISK in $(awk '{if ($NF ~ "^(s|h)d|cciss" && $NF !~ "((s|h)d|c.d.)[a-z][0-9]$") print $4}' /proc/partitions); do > DISKSECTORS=$(blockdev --getsz /dev/${DISK}) > if [ $((${DISKSECTORS}/2/1024)) -lt 4000 ]; then continue; fi; > DEVS[${COUNT}]="/dev/${DISK}" > DISKS[${COUNT}]="${DISK//\/dev\/}" > let COUNT++ >done > >BOOTPARTSIZE=512 >ROOTFSSIZE=$((5000*2)) >SWAPSIZE=4096 >ROOTPARTSIZE=$((${ROOTFSSIZE}+${SWAPSIZE}+2048)) >SPARES=0 >LEVEL=-1 > ># Define the RAID level >if [ ${COUNT} -eq "1" ]; then > LEVEL=-1 >elif [ ${COUNT} -eq "2" ]; then > LEVEL=1 >elif [ ${COUNT} -eq "3" ]; then > LEVEL=1 >elif [ ${COUNT} -eq "4" ]; then > LEVEL=10 > SPARES=0 > ROOTPARTSIZE=$((2*${ROOTPARTSIZE}/${COUNT})) >elif [ ${COUNT} -ge "5" ]; then > LEVEL=10 > SPARES=$(((${COUNT}/2)-1)) > ROOTPARTSIZE=$(((2+${SPARES})*${ROOTPARTSIZE}/${COUNT})) >fi > ># Calculate the SWAP size over the amount of RAM >#MEM=$(($(sed -n 's/^MemTotal: \+\([0-9]*\) kB/\1/p' /proc/meminfo) / 1024)) >#if [ "${MEM}" -lt "2048" ]; then > #SWAP=$((MEM * 2)) >#elif [ "${MEM}" -gt "2048" ] && [ "${MEM}" -le "4096" ]; then > #SWAP=${MEM} >#elif [ "${MEM}" -ge "4096" ]; then > #SWAP=4096 >#fi > ># Stop Existing Volume Groups >vgchange -an >for n in /dev/md*; >do > mdadm -S $n; >done > ># If the system has two disks (or more), it will create the RAID + LVM >if [ ${LEVEL} -ge "1" ]; then > DEVS=${DEVS[@]} > ALLDISKS=${DISKS[@]} > echo "ignoredisk --only-use=${ALLDISKS// /,}" > /tmp/partitioning.txt > echo "clearpart --all --drives=${ALLDISKS// /,}" >> /tmp/partitioning.txt > for ((i=0; i < ${#DEVS[@]}; i++)); do > x=$((${i}+1)) > echo "part raid.0${i} --fstype=\"mdmember\" --size=${BOOTPARTSIZE} --ondisk=${DISKS[$i]}" >> /tmp/partitioning.txt > echo "part raid.1${i} --fstype=\"mdmember\" --size=${ROOTPARTSIZE} --ondisk=${DISKS[$i]}" >> /tmp/partitioning.txt > echo "part pv.0${x} --fstype=\"lvmpv\" --grow --ondisk=${DISKS[$i]}" >> /tmp/partitioning.txt > number=$(printf "%03d" $i) > echo "volgroup data${number}vg pv.0${x}" >> /tmp/partitioning.txt > echo "logvol none --thinpool --profile=thin-performance --size=1 --grow --name=thinpool --vgname=data${number}vg" >> /tmp/partitioning.txt > echo "logvol /mnt/bricks/data${number} --fstype=\"ext4\" --thin --poolname=thinpool --profile=thin-performance --size=1 --grow --name=data --vgname=data${number}vg" >> /tmp/partitioning.txt > RAIDPARTSBOOT[$i]="raid.0${i}" > RAIDPARTSROOT[$i]="raid.1${i}" > done > echo "raid /boot --device=0 --fstype=\"ext4\" --level=raid1 ${RAIDPARTSBOOT[@]:0}" >> /tmp/partitioning.txt > echo "raid pv.00 --device=1 --fstype=\"lvmpv\" --level=raid${LEVEL} --spares=${SPARES} ${RAIDPARTSROOT[@]:0}" >> /tmp/partitioning.txt > ># Otherwise, it will use just LVM >else > # g = new GPT partition table; n = new partition, offset, size; w = save changes > fdisk -w always -W always ${DEVS[@]} <<EOF >g >n >1 > >+${BOOTPARTSIZE}M >n >2 > >+${ROOTPARTSIZE}M >n >3 > > >w >EOF > > for ((i=2; i <= 3; i++)); do > pvcreate -ff ${DEVS[@]}${i} > done > > vgcreate -ff rootvg ${DEVS[@]}2 # Should evaluate to /dev/sda2 > vgcreate -ff data000vg ${DEVS[@]}3 > > lvcreate -y -L ${ROOTFSSIZE}M -n root rootvg > lvcreate -y -L ${SWAPSIZE}M -n swap rootvg > > mkfs.ext4 -F -L boot ${DEVS[@]}1 > mkfs.btrfs -L root -d dup -m dup /dev/rootvg/root > mkswap /dev/rootvg/swap > > echo "volgroup --noformat --useexisting data000vg" >> /tmp/partitioning.txt > echo "part /boot --noformat --onpart ${DEVS[@]}1" >> /tmp/partitioning.txt # Note the DEVS vs. DISKS >fi > ># Define the volume group and logical volumes >cat >> /tmp/partitioning.txt <<EOF >volgroup --noformat --useexisting rootvg >logvol swap --noformat --useexisting --name=swap --vgname=rootvg >logvol / --noformat --useexisting --name=root --fsoptions="noatime" --vgname=rootvg >EOF > >#vgchange -an > >%end > ># Packages to install >%packages >kexec-tools >wget >nano >screen >tar >gpg >hdparm >lm_sensors >NetworkManager-tui >snapraid >glusterfs >glusterfs-server >glusterfs-fuse >libvirt >lxc >lxc-templates >lxcfs >qemu >corosync >pacemaker >pacemaker-cli >pcs >drbd >drbd-pacemaker >vtun >%end
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1635798
: 1490194