CENTOS with LVM layout

Antanas Masevicius antanas.masevicius at gmail.com
Thu Nov 6 16:00:34 CET 2014


Hello,

posting setup-storage relative config:

========

Starting setup-storage 1.7
Using config file: /var/lib/fai/config/disk_config/CENTOS
    Creating directory "/run/lock/lvm"
    Finding all volume groups
  No volume groups found
Executing: parted -s /dev/sda mklabel msdos
Executing: parted -s /dev/sda mkpart primary "ext3" 1048576B 315621375B
Executing: parted -s /dev/sda set 1 boot on
Executing: parted -s /dev/sda mkpart extended "" 315621376B 1199101181951B
Executing: parted -s /dev/sda mkpart logical "" 315622400B 1199101181951B
Executing: mkfs.ext4  /dev/sda1
Executing: parted -s /dev/sda set 5 lvm on
Executing: pvcreate -ff -y  /dev/sda5
Executing: vgcreate  vg1  /dev/sda5
Executing: vgchange -a y vg1
Executing: lvcreate  -n root_ -L 12288 vg1
Executing: mkfs.ext4  /dev/vg1/root_
Executing: lvcreate  -n swap -L 4096 vg1
Executing: mkswap  /dev/vg1/swap
Executing: lvcreate  -n tmp -L 1024 vg1
Executing: mkfs.ext4  /dev/vg1/tmp
Executing: lvcreate  -n var -L 1114410.4890332 vg1
Executing: mkfs.ext4  /dev/vg1/var
/dev/sda1 UUID=c6106925-9cef-4478-b350-9469fe95d596
/dev/vg1/var UUID=12938bce-950f-4cda-ab85-85c2e94791b9
/dev/vg1/swap UUID=9abd06ab-8be0-4ad3-906f-135fb6f5755b
/dev/vg1/root_ UUID=6ea314e1-0585-4cde-9cce-43729c87ccfd
/dev/vg1/tmp UUID=90fa6b42-e229-4bed-bd56-4e8644e4e812
Calling task_mountdisks
Enable swap device /dev/vg1/swap
Mounting UUID=6ea314e1-0585-4cde-9cce-43729c87ccfd to /target/
Mounting UUID=c6106925-9cef-4478-b350-9469fe95d596 to /target/boot
Mounting UUID=90fa6b42-e229-4bed-bd56-4e8644e4e812 to /target/tmp
Mounting UUID=12938bce-950f-4cda-ab85-85c2e94791b9 to /target/var
Calling task_extrbase
Unpacking Debian base archive
ftar: extracting /var/lib/fai/config/basefiles/CENTOS7_64.tar.xz to /target/
Ramdisk mounted onto /target/var/lib/rpm
Ramdisk mounted onto /target/var/cache/yum
Calling hook: debconf.CENTOS
debconf.CENTOS       OK.
Skiping task_debconf
Calling hook: repository.CENTOS
cp: `/etc/mtab' and `/target/etc/mtab' are the same file
ainsl: appending to /target/etc/hosts: ipreplaced.38 centos.tendo.lt centos
repository.CENTOS    FAILED with exit code 1.
Skiping task_repository
Calling hook: updatebase.CENTOS
Updating base
...


best regards,

Antanas Masevicius
TENDO LT
https://tendo.lt


On Thu, Nov 6, 2014 at 3:30 PM, Kerim Güney <kgueney at uni-koeln.de> wrote:

> Hey,
>
> do you have a fai.log you could post?
>
> It might be a setup-storage issue.
>
> Best regards,
> Kerim
>
> 6 Kasım 2014 14:19:47 CET, Antanas Masevicius <
> antanas.masevicius at gmail.com> yazdı:
>
>> Hello,
>>
>> lately i tried installing CENTOS 6 and 7 with LVM partitions:
>>
>> disk_config disk1 bootable:1 fstabkey:uuid
>> primary /boot  300      ext4    rw
>> logical -           0-           -       -
>>
>> disk_config lvm fstabkey:uuid
>> vg vg1 disk1.5
>> vg1-root_  /        12G  ext4     rw,errors=remount-ro
>> vg1-swap swap      4G   swap     rw
>> vg1-tmp  /tmp      1G    ext4     rw,nosuid
>> vg1-var  /var      30G-  ext4     rw
>>
>> but after successful installation, rebooting stops at:
>>
>> dracut-initqueue: Warning: /dev/mapper/vg1-root_ does not exists
>>
>>
>> my soft:
>>
>> dracut                    040+1-1
>>
>> dracut-network      040+1-1
>>
>> fai-client                4.3
>>
>> fai-doc                  4.3
>>
>> fai-nfsroot              4.3
>>
>> fai-quickstart         4.3
>>
>> fai-server               4.3
>>
>> fai-setup-storage   4.3
>>
>> liblinux-lvm-perl     0.17-2
>>
>> please advice.
>>
>>
>> best regards,
>>
>> Antanas Masevicius
>> TENDO LT
>> https://tendo.lt
>>
>>
> --
> Sent from my phone. Please excuse my brevity.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20141106/59438295/attachment.html>


More information about the linux-fai mailing list