The init status is the centos 7 keeping pop error message about ata, /dev/sda, and then system hang.
Sometimes system keeping running more than one day, sometimes just few hours.
But there is everything fine in smartctl, excepted age.
After system hang several times, decided to change SSD.
-
have to upgrade motherboard's firmware version to support SSD.
-
change the SATA port (still not sure does this is issue or not)
-
For ubuntu installation, have to search live installation image, seach string as
ubuntu live minimal image 22
, for the minimal installation, that can choice when installation. (minimal or default) -
not to install any service when ubuntu installing, that build services based on "snap". some cases that behavor is difference as normal manually install, this might caused no solution on internet. for example, docker. to remove snap =>
snap list
,snap remove docker
. -
for myself, migrating mongo db folder is a bad idea, using mongorestore.
-
ubuntu default using LVM for system disk. if not well setting when installing, using
df -h
andvgdisplay
,vgdisplay {vg_name}
to get information, thenlvextend -l +100%FREE {name, as /dev/mapper/ubuntu--vg-ubuntu--lv}
resize2fs {name as /dev/mapper/ubuntu--vg-ubuntu--lv}
to allocate all space into the vg. -
ubuntu will spent 2 mins when booting if network is not config well. the booting screen will show
start job is running for wait for network to be configured
and count down 2 mins. can usingsystemctl status systemd-networkd-wait-online.service
to check status after login, and alsonetworkctl
to learn which interface not config well. usingcd /etc/netplan; grep -r {interface_name}
to get the yaml file that system using. open the file and change to bedhcp4: no
,optional: true
if no need for the interface. more example. -
delete many file might got error, try this
find . -maxdepth 1 -name '*.*' -delete
-
after installed ssh, also have to install rsyslog for
/var/log/auth
log if using minimal installation. without auth log, fail2ban cannot work.
the time spent more than I expected, sigh...
Comments
comments powered by Disqus