Re: Referencing disks by-path in kickstart

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

 



On 03/19/2010 07:59 AM, Chris Lumens wrote:
Is it possible yet to reference disks "by-path" in kickstart files?

Yes, it should be possible to reference disks by-anything, as long as
that's in /dev/disk/.  You will have to reference the disk as
"/dev/disk/by-path/whatever", though.  You can also use globs.

See commits 3abbd27ac33739946d30c51a49ca223674d42b6c and
ba470b1e6ac12253fde82564317585bc863a8f7c for more details.

If you find a place where this is not working, please let me know.

- Chris

Thanks.  At first I tried without the /dev like this:

clearpart --all --drives=disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0,disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0 --initlabel part raid.100000 --size=128 --ondisk=disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0 part raid.100003 --size=128 --ondisk=disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0 part raid.100001 --size=10000 --grow --ondisk=disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0 part raid.100004 --size=10000 --grow --ondisk=disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0

because of this from http://fedoraproject.org/wiki/Anaconda/Kickstart

        --ondisk= or --ondrive=

Forces the partition to be created on a particular disk. Do not prefix the disk name with /dev.

Just tried:

clearpart --all --drives=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0,/dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0 --initlabel part raid.100000 --size=128 --ondisk=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0 part raid.100003 --size=128 --ondisk=/dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0 part raid.100001 --size=10000 --grow --ondisk=/dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0 part raid.100004 --size=10000 --grow --ondisk=/dev/disk/by-path/pci-0000:00:1f.1-scsi-1:0:0:0

but with 13.35 I get the error:

Speciefied nonexistent disk /dev/disk/by-path/pci-0000:00:1f.1-scsi-0:0:0:0 in clearpart command.

That link does indeed exist.

--
Orion Poplawski
Technical Manager                     303-415-9701 x222
NWRA/CoRA Division                    FAX: 303-415-9702
3380 Mitchell Lane                  orion@xxxxxxxxxxxxx
Boulder, CO 80301              http://www.cora.nwra.com

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux