[Dev] Kernel panic when passing noatime in bootargs on bare metal install
by fb.dev.clx
Hi all,
As I wanted to experiment a few kernel parameters on a bare metal
install, this resulted in a kernel panic with `rootflags=noatime`
passed in `/boot/loader/entries/Clear-linux-native-*.conf` file:
```
Error: unrecognized mount option 'noatime' or missing value
[...]
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-
block(8,3)
```
Any suggestion?
-- Ben
4 years, 8 months
[Dev] Is a reboot required each time the kernel is updated?
by fb.dev.clx
Hi all,
With all updates coming with Clear Linux, I was wondering if a reboot
is required each time the kernel is updated as a few methods (kpatch,
kexec, Ksplice, KernelCare) have emerged lately for loading a whole new
Linux kernel from a running system.
Any comments?
-- Ben
4 years, 8 months
[Dev] Clear Linux bare metal install SSD optimization
by fb.dev.clx
Hi all,
As I would like to use Clear Linux as my main system on a laptop with 2
SSDs, I was wondering what should be prefered to improve the
performance and life span of these SSDs in terms of:
- partition scheme (dedicated partition for virtual disk images?)
- partitions alignment
- filesystem (EXT4, XFS, etc.)
- automatic trimming method
- mount options (noatime, etc.)
- I/O scheduler
- swappiness setting
- others?
Also, is there a Clear Linux way to set all of this settings?
Regards,
-- FB
4 years, 8 months
[Dev] startup time
by Prateek Sharma
Hello everyone,
What would be a good, reliable way to measure the boot-time of
Clear-containers? Since it boots up so fast, would NTP suffice? Or is
there a way to get the TSC values from inside the VM/container?
I know this is a bit general, but I am eager to measure the actual
clear-containers start times.
Thanks!
--Prateek
4 years, 8 months
[Dev] install issues
by ph.uk.at
Hello Good Folks,
I have been trying to install ClearLinux (build v7280) and it has been
failing. It proceeds till the automatic partition screen, starts the
install but fails. This is true even from manual install.
Issue 1:
------------
I have been trying to install ClearLinux on a machine which was earlier
used as a ESXi host. And I believe I was using a single concatenated
datastore volume (sda+sdb).
When I saw the debug log it stated that failed to mount the
VMFS_volume_member. This is inspite of the fact that I don't have any
partitions on the two disks (sda & sdb).
After the failed installation, the installer brings me to a window where I
can '< View log >', '< Shell >', '< Reboot >' or '< Shutdown >'
Actual error from the debug mentioned below:
>>>>
425-Debug: Error mount: unknown filesystem type 'VMFS_volume_member'
425-Error: Couldn't install ClearLinux
425-Info: Cleaning up
425-Debug: Failed: Exception(' mount /dev/sda1
/tmp/ister-7230-yonmwyhf/boot failed',)
<<<<
Issue 2:
------------
Now if I enter the shell, and enter an command 'ip' without any parameters
or arguments, the installer crashes and throws an python assert. At this
point soft reboot does not work and I have to hard reset.
My assumption is that on the shell if a user keys in a command which has
populated the STDERR handle, then the shell within the installer throws an
assert and crashes.
Thanks.
Regards Phukat
4 years, 8 months
[Dev] swupd bundle remover does not manage dependencies (rev. 7770 and 7820)
by fb.dev.clx
Hi all,
swupd seems to remove `kernel-kvm` which was previously automagically
installed as a dependency of the `kvm-host` bundle:
```
$ sudo swupd bundle-remove kernel-kvm
swupd-client bundle remover 3.5.3
Copyright (C) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 5
Untracking bundle from system...
Success: Bundle removed
```
and so `kernel-kvm` is not present anymore in the list of installed
bundles:
```
$ ls -1 /usr/share/clear/bundles/kernel-kvm
ls: cannot access '/usr/share/clear/bundles/kernel-kvm': No such file
or directory
```
But, as `kernel-kvm` was installed as a dependency of `kvm-host`, it
would be better if it could not be uninstalled while `kvm-host` is
still present on the system.
Fortunately, `swupd verify --fix` corrects the situation and reinstalls
the dependency, so `kernel-kvm` is back again on the system:
```
$ sudo swupd verify --fix
[...]
$ ls -1 /usr/share/clear/bundles/kernel-kvm
/usr/share/clear/bundles/kernel-kvm
```
Regards,
-- FB
4 years, 9 months
[Dev] sudoers rights lost when removing kvm-host bundle (rev. 7770)
by fb.dev.clx
Hi all,
While removing `kvm-host` and `kernel-kvm` bundles on a bare metal
Clear Linux rev. 7160 install upgraded to rev. 7770, I was stuck as a
standard user without any option since removing `kvm-host` put me out
of the sudoers file. Here are the steps done:
At first,
```
$ sudo swupd bundle-remove kvm-host kernel-kvm
swupd-client bundle
remover 3.5.2
Copyright (c) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 230
Untracking bundle from system...
Success: Bundle removed
```
Then,
```
sudo swupd verify --fix
We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:
#1) Respect the privacy of the others.
#2) Think before you type
#3) With great power comes great responsibility.
Password:
clruser is not in the sudoers file. This incident will be reported.
```
After a reboot (log out and then log in again was not sufficient), the
system was able to read correctly `/etc/sudoers.d/clruser` in order to
behave again as if the standard user originally created at install time
was in the sudoers file.
This bug is reproducible.
--------------------
NOTE: on Sat, 02 Apr 2016, I wrote to the list as swupd verify wanted
to delete sudoers.d after adding kvm-host bundle on a new bare metal
install (rev. 7160). Maybe there is a relation?
--------------------
-- FB
4 years, 9 months
[Dev] swupd bundle remover only manage one bundle at a time (rev. 7770 and 7820)
by fb.dev.clx
Hi all,
swupd bundle-remover seems to only manage one bundle at a time but one
can pass several bundles to be removed without any warning:
```
# swupd bundle-remove kvm-host kernel-kvm
swupd-client bundle remover
3.5.3
Copyright (C) 2012-2016 Intel Corporation
Deleting bundle files...
Total deleted files: 230
Untracking bundle from system...
Success: Bundle removed
```
`kvm-host` bundle was removed, but `kernel-kvm` is still present in the
list of installed bundles:
```
$ ls -1 /usr/share/clear/bundles/kernel-kvm
/usr/share/clear/bundles/ker
nel-kvm
```
Regards,
-- FB
4 years, 9 months