live CD via CentOs 7: a problem with copying files to RAMdisk

General support questions
rGoblin
Posts: 1
Joined: 2017/12/07 13:49:33

live CD via CentOs 7: a problem with copying files to RAMdisk

Postby rGoblin » 2017/12/07 14:01:12

I am creating my customized Live CD based on CentOS 7.3. For this I use livecd-creator program and custom kickstart-file. This time I have a problem: RAM-disk, created by My livecd, uses maximum 4 GB of PC RAM.

But, in this case, I can't copy some files when I have free memory less than 500 MB of this 4 GB memory block.

I think, in this operations OS is limited by this 4GB memory block - although much more memory blocks may be availaible in RAM. OS detects all the memory in fact.

During the copy operation, the system logs this:

Code: Select all

Dec  7 04:06:57 localhost kernel: device-mapper: snapshots: Invalidating snapshot: Unable to allocate exception.
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 839070)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838045
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838046)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838046
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838047)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838047
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838048)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838048
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838049)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838049
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838050)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838050
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838051)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838051
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838052)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838052
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838053)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838053
Dec  7 04:06:57 localhost kernel: EXT4-fs warning (device dm-0): ext4_end_bio:316: I/O error -5 writing to inode 155909 (offset 0 size 0 starting block 838054)
Dec  7 04:06:57 localhost kernel: Buffer I/O error on device dm-0, logical block 838054

After this error, the filesystem turns to read-only mode. Many other commands (including "reboot" and "shutdown"), will then return "Bus Error".

What can I do to solve this? Kickstart file:

Code: Select all

lang en_US.UTF-8
keyboard us

auth --useshadow --enablemd5
rootpw P@ssw0rd

selinux --enforcing
firewall --disabled

graphical

autopart --type=plain
repo --name=base --mirrorlist=http://mirrorlist.centos.org/?release=7&arch=$basearch&repo=os&infra=stock
repo --name=epel --baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch

xconfig --defaultdesktop=xfce-desktop

%packages --excludedocs
@core --nodefaults
@fonts
@multimedia
@x11
@xfce-desktop
@input-methods
grub2-efi-x64-cdboot-2.02-0.64.el7.centos.x86_64
-iscsi-initiator-utils
-libiscsi
-yum
-sssd-client
-man-pages
-bzip2
-ethtool
-iptables
-iproute
-iputils
-man-db
-openssh
bash
kernel
passwd
policycoreutils
chkconfig
authconfig
rootfiles
autofs
lshw
mc
unzip
firefox
xdotool
%end
%post --nochroot
cp -Rf /var/livecd/files/etc/* $INSTALL_ROOT/etc/
cp -Rf /var/livecd/files/var/* $INSTALL_ROOT/var/

%end