RE: RAID 0 Disk config.
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Forgive my ignorance, I understand the basic use of FAI but I had no hand in installing the suite or configuring it, so I am more than happy to learn more about the mechanics of it. You said wipe-all was a script and partition.WIPEDISK is a hook, yet you suggest putting wipe-all into the hooks directory. /srv/fai/config/hooks $ ls debconf.CENTOS instsoft.DEBIAN repository.CENTOS setup.DEFAULT.sh updatebase.DEBIAN debconf.IMAGE instsoft.UBUNTU savelog.LAST.shupdatebase.CENTOS updatebase.UBUNTU would include partition.WIPEDISK (wipe-all script) and in 50-host-classes we have (eg) *-dbnode*) echo "FAIBASE UBUNTU FOCAL64 BOND JUMBO-DBNODE GRUB_EFI" ;; The fact that hooks, classes, and more have similar naming is a bit confusing. However, the new class definition for the above example would then be: *-dbnode*) echo "FAIBASE UBUNTU WIPEDISK FOCAL64 BOND JUMBO-DBNODE GRUB_EFI" ;; -Original Message- From: linux-fai On Behalf Of Thomas Lange Sent: Wednesday, April 5, 2023 9:57 AM To: fully automatic installation for Linux Subject: RE: RAID 0 Disk config. EXTERNAL >>>>> On Wed, 5 Apr 2023 07:34:11 +, Marc Hoppins via linux-fai >>>>> said: > Would the wipe-all script sit in class, like > 20-hwdetect.sh > 21-wipe-all.sh No, put those script into hooks/ and name them for e.g. partition.WIPEDISKS Then it get executed before the partitioning task starts if the class WIPEDISKS is defined. -- viele Grüße Thomas --- End Message ---
RE: RAID 0 Disk config.
> On Wed, 5 Apr 2023 07:34:11 +, Marc Hoppins via linux-fai > said: > Would the wipe-all script sit in class, like > 20-hwdetect.sh > 21-wipe-all.sh No, put those script into hooks/ and name them for e.g. partition.WIPEDISKS Then it get executed before the partitioning task starts if the class WIPEDISKS is defined. -- viele Grüße Thomas
RE: RAID 0 Disk config.
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Thanks Thomas. Would the wipe-all script sit in class, like 20-hwdetect.sh 21-wipe-all.sh or does it live in (eg) scripts/UBUNTU/ along with 10-rootpw 20-capabilities 30-interface 40-misc -Original Message- From: linux-fai On Behalf Of Thomas Lange Sent: Tuesday, April 4, 2023 4:26 PM To: fully automatic installation for Linux Subject: RE: RAID 0 Disk config. EXTERNAL Here you can find two small bash scripts, one called wipe-all which removes all partitions without caring about raid or lvm. The other script is called partition.WIPEDISKS is a FAI hooks and first stops lvm and raid then does the wipefs call. https://fai-project.org/download/misc/ --- End Message ---
RE: RAID 0 Disk config.
Here you can find two small bash scripts, one called wipe-all which removes all partitions without caring about raid or lvm. The other script is called partition.WIPEDISKS is a FAI hooks and first stops lvm and raid then does the wipefs call. https://fai-project.org/download/misc/
RE: RAID 0 Disk config.
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- For installation one would expect a clean sheet. Maybe installation could have a script which purges existing partitions first. And/or have a re-insallation option to preserve existing. However, it may seem that existing partitions may cause a lot of failures due to the issues I experienced with nvme, existing partitions, and the bash cannot set terminal process group (1076): inappropriate ioctl for device messages. Food for thought. Marc -Original Message- From: linux-fai On Behalf Of Thomas Lange Sent: Tuesday, April 4, 2023 2:39 PM To: fully automatic installation for Linux Subject: RE: RAID 0 Disk config. EXTERNAL >>>>> On Tue, 4 Apr 2023 12:11:23 +, Marc Hoppins via linux-fai >>>>> said: > Another disk question if I may, does FAI test for existing partitions on the target disk? I think the reason I was getting failures is that the target probably had partitions created by a previous, failed FAI. Yes it tests for existing partition, because you may want to preserve the partition and/or the data in it. regards Thomas --- End Message ---
RE: RAID 0 Disk config.
> On Tue, 4 Apr 2023 12:11:23 +, Marc Hoppins via linux-fai > said: > Another disk question if I may, does FAI test for existing partitions on the target disk? I think the reason I was getting failures is that the target probably had partitions created by a previous, failed FAI. Yes it tests for existing partition, because you may want to preserve the partition and/or the data in it. regards Thomas
RE: RAID 0 Disk config.
Diese Nachricht wurde eingewickelt um DMARC-kompatibel zu sein. Die eigentliche Nachricht steht dadurch in einem Anhang. This message was wrapped to be DMARC compliant. The actual message text is therefore in an attachment.--- Begin Message --- Thanks, Thomas. Another disk question if I may, does FAI test for existing partitions on the target disk? I think the reason I was getting failures is that the target probably had partitions created by a previous, failed FAI. -Original Message- From: linux-fai On Behalf Of Thomas Lange Sent: Monday, April 3, 2023 10:14 PM To: fully automatic installation for Linux Subject: Re: RAID 0 Disk config. EXTERNAL >>>>> On Thu, 23 Mar 2023 14:56:35 +, Marc Hoppins via linux-fai >>>>> said: > For a RAID config, the documentation only specifies pre-sized partitions which I do not want. I currently have: Hi Marc, without checking I guess our tool does not support raw disks for this setup. But you can use a size of 1G- which means create a partition with a size of at least 1Gbytes but maximize the partition with no limit. That means the partition will get the whole size of the disk. This may be similar to what you want. It looks likes this: disk_config /dev/sda fstabkey:uuid align-at:1M primary - 1G- - - - Then you can use the partitions to create your raid0. -- regards Thomas --- End Message ---
Re: RAID 0 Disk config.
> On Thu, 23 Mar 2023 14:56:35 +, Marc Hoppins via linux-fai > said: > For a RAID config, the documentation only specifies pre-sized partitions which I do not want. I currently have: Hi Marc, without checking I guess our tool does not support raw disks for this setup. But you can use a size of 1G- which means create a partition with a size of at least 1Gbytes but maximize the partition with no limit. That means the partition will get the whole size of the disk. This may be similar to what you want. It looks likes this: disk_config /dev/sda fstabkey:uuid align-at:1M primary - 1G- - - - Then you can use the partitions to create your raid0. -- regards Thomas