Re: What is the correct way to reuse an existing RAID/LVM configuration

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

 



On Thu, 2013-08-22 at 20:05 +0200, Anders Blomdell wrote:
> On a system with the following disk layout:
> 
> 
>    Disk /dev/sda: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
>    Units = sectors of 1 * 512 = 512 bytes
>    Sector size (logical/physical): 512 bytes / 4096 bytes
>    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
>    Disk label type: dos
>    Disk identifier: 0x83dae9c4
> 
>       Device Boot      Start         End      Blocks   Id  System
>    /dev/sda4            2048  3907029167  1953513560    5  Extended
>    /dev/sda5            4096     4198399     2097152   fd  Linux raid autodetect
>    /dev/sda6         4200448  3907029167  1951414360   fd  Linux raid autodetect
> 
>    Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes, 3907029168 sectors
>    Units = sectors of 1 * 512 = 512 bytes
>    Sector size (logical/physical): 512 bytes / 4096 bytes
>    I/O size (minimum/optimal): 4096 bytes / 4096 bytes
>    Disk label type: dos
>    Disk identifier: 0x88b817cf
> 
>       Device Boot      Start         End      Blocks   Id  System
>    /dev/sdb4            2048  3907029167  1953513560    5  Extended
>    /dev/sdb5            4096     4198399     2097152   fd  Linux raid autodetect
>    /dev/sdb6         4200448  3907029167  1951414360   fd  Linux raid autodetect
>    
>    PV         VG   Fmt  Attr PSize PFree
>    /dev/md1   vg0  lvm2 a--  1.82t 1.63t
> 
>    LV   VG   Attr      LSize  Pool Origin Data%  Move Log Copy%  Convert
>    opt  vg0  -wi-a---- 60.00g
>    root vg0  -wi-a---- 60.00g
>    src  vg0  -wi-d---- 60.00g
>    swap vg0  -wi-a---- 16.00g
> 
> I'm trying to kickstart a Fedora-19 system with the following partitioning:
> 
>    part raid.0a --onpart=sda5 --noformat
>    part raid.0b --onpart=sdb5 --noformat
>    raid /boot --fstype=ext4 --level=1 --device=md0 raid.0a raid.0b
> 
>    part raid.1a --onpart=sda6 --noformat
>    part raid.1b --onpart=sdb6 --noformat
>    raid pv.0 --level=1 --device=md1 raid.1a raid.1b
I think you'd need to use '--useexisting' and '--noformat' when
specifying raids and drop 'part' lines for raid members.

Also the 'volgroup' command shouldn't have PV members listed when using
'--useexisting'.

See:
http://fedoraproject.org/wiki/Anaconda/Kickstart#raid
http://fedoraproject.org/wiki/Anaconda/Kickstart#volgroup

-- 
Vratislav Podzimek

Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic

_______________________________________________
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