mount - How to fix slow boot issue in RAID? - Ask Ubuntu


i switched hardware raid1 , noticed significant boot time increase. see yourselves sample dmesg output:

... [    2.316879] dell_wmi: detected dell wmi interface version 1 [    2.316928] input: dell wmi hotkeys /devices/virtual/input/input8 [    2.329702] input: hda intel pch headphone mic /devices/pci0000:00/0000:00:1f.3/sound/card0/input9 [    2.329755] input: hda intel pch line out /devices/pci0000:00/0000:00:1f.3/sound/card0/input10 [    2.332544] nvidia-uvm: loaded uvm driver in 8 mode, major device number 241 [    2.527704] ext4-fs (dm-2): mounted filesystem ordered data mode. opts: (null) [    2.606030] audit: type=1400 audit(1477798402.176:2): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine" pid=978 comm="apparmor_parser" [    2.606034] audit: type=1400 audit(1477798402.176:3): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=978 comm="apparmor_parser" [    2.606909] audit: type=1400 audit(1477798402.176:4): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session" pid=972 comm="apparmor_parser" [    2.606913] audit: type=1400 audit(1477798402.176:5): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/lightdm/lightdm-guest-session//chromium" pid=972 comm="apparmor_parser" [    2.607887] audit: type=1400 audit(1477798402.176:6): apparmor="status" operation="profile_load" profile="unconfined" name="/sbin/dhclient" pid=973 comm="apparmor_parser" [    2.607891] audit: type=1400 audit(1477798402.176:7): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/networkmanager/nm-dhcp-client.action" pid=973 comm="apparmor_parser" [    2.607895] audit: type=1400 audit(1477798402.176:8): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/networkmanager/nm-dhcp-helper" pid=973 comm="apparmor_parser" [    2.607898] audit: type=1400 audit(1477798402.176:9): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/lib/connman/scripts/dhclient-script" pid=973 comm="apparmor_parser" [    2.608931] audit: type=1400 audit(1477798402.180:10): apparmor="status" operation="profile_load" profile="unconfined" name="/usr/sbin/cups-browsed" pid=981 comm="apparmor_parser" [    2.791921] clocksource: switched clocksource tsc [    2.995463] nvrm: system not configured drive vga console [    2.995464] nvrm: on primary vga device. nvidia linux graphics driver [    2.995464] nvrm: requires use of text-mode vga console. use of other console [    2.995465] nvrm: drivers including, not limited to, vesafb, may result in [    2.995465] nvrm: corruption , stability problems, , not supported. [    3.118394] input: hda nvidia hdmi/dp,pcm=3 /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input11 [    3.118480] input: hda nvidia hdmi/dp,pcm=7 /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input12 [    3.118560] input: hda nvidia hdmi/dp,pcm=8 /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input13 [    3.118625] input: hda nvidia hdmi/dp,pcm=9 /devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1/input14 [   92.261466] audit_printk_skb: 60 callbacks suppressed [   92.261467] audit: type=1400 audit(1477798491.830:31): apparmor="denied" operation="open" profile="/usr/sbin/cupsd" name="/etc/ld.so.preload" pid=1140 comm="cupsd" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 [   92.262088] cgroup: new mount options not match existing superblock, ignored [   92.331553] audit: type=1400 audit(1477798491.898:32): apparmor="denied" operation="open" profile="/usr/sbin/cups-browsed" name="/etc/ld.so.preload" pid=1224 comm="cups-browsed" requested_mask="r" denied_mask="r" fsuid=0 ouid=0 ... 

i suspecting bad uuids in /etc/fstab, please, look, uncommented swap necessary things included:

~$ sudo blkid  /dev/sda: type="isw_raid_member" /dev/sdb: type="isw_raid_member" /dev/sdc1: uuid="8c6a54af-7820-4590-851d-d11bcb06f642" type="crypto_luks" partuuid="1a92ebcc-01" /dev/sdc2: uuid="9660a50c-cd39-4366-85c4-b4f0485914c5" type="swap" partuuid="1a92ebcc-02" /dev/mapper/isw_deehbehggj_towervolume1: uuid="04e2666d-4dbf-47d9-87ae-84cc06914d32" type="ext4" pttype="dos" partuuid="074e8ddc-01" /dev/mapper/isw_deehbehggj_towervolume2: uuid="e17a84b2-3f2a-471f-a928-d7a265993e1e" type="ext4" partuuid="074e8ddc-02" /dev/mapper/isw_deehbehggj_towervolume: ptuuid="074e8ddc" pttype="dos" 

and @ /etc/fstab

~$ cat /etc/fstab  # /etc/fstab: static file system information. # # use 'blkid' print universally unique identifier # device; may used uuid= more robust way name devices # works if disks added , removed. see fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> # / on /dev/sda1 during installation uuid=04e2666d-4dbf-47d9-87ae-84cc06914d32 /               ext4    errors=remount-ro 0       1 # /home on /dev/sda6 during installation uuid=e17a84b2-3f2a-471f-a928-d7a265993e1e /home           ext4    defaults        0       2 # swap on /dev/sdc during installation #uuid=9660a50c-cd39-4366-85c4-b4f0485914c5 none            swap    sw              0       0 

i these uuids match, why getting

[   92.262088] cgroup: new mount options not match existing superblock, ignored 

?

p.s.

/dev/sda 256gb ssd (adata ssd s559)

/dev/sdb 256gb ssd (liteon cv3-ce256)

sda , sdb set in raid1

/dev/sdc 1tb hdd thats divided encrypted drive(/dev/sdc1) , 8gb swap (/dev/sdc2)

/dev/mapper/isw_deehbehggj_towervolume raid1 volume representation

raid info:

~$ lspci -vv | grep -i raid 00:17.0 raid bus controller: intel corporation sata controller [raid mode] (rev 31)     subsystem: dell sata controller [raid mode] 

here proof no software raid being used:

~$ cat /proc/mdstat  personalities :  unused devices: <none> 

running ubuntu 16.10

here systemd-analyze blame output, see nothing strange

~$ systemd-analyze blame           9.609s networkmanager-wait-online.service           5.074s nmbd.service           3.817s apt-daily.service           2.078s upower.service           1.209s vmware.service            904ms user@1000.service            545ms vmware-workstation-server.service            414ms systemd-timesyncd.service            348ms dev-mapper-isw_deehbehggj_towervolume1.device            289ms click-system-hooks.service            282ms snapd.firstboot.service            240ms networking.service            131ms networkmanager.service            110ms modemmanager.service            107ms smbd.service            102ms accounts-daemon.service            101ms systemd-resolved.service             97ms keyboard-setup.service             92ms udisks2.service             87ms apparmor.service             82ms vmware-usbarbitrator.service             82ms bluetooth.service             78ms teamviewerd.service             54ms thermald.service             45ms gpu-manager.service             45ms pppd-dns.service             43ms rsyslog.service             42ms systemd-udev-trigger.service             41ms systemd-fsck@dev-disk-by\x2duuid-e17a84b2\x2d3f2a\x2d471f\x2da928\x2dd7a265993e1e.service             38ms systemd-tmpfiles-setup-dev.service             37ms irqbalance.service             36ms grub-common.service             34ms lightdm.service             34ms systemd-tmpfiles-setup.service             30ms polkitd.service             26ms systemd-udevd.service             23ms systemd-tmpfiles-clean.service             22ms colord.service             19ms apport.service             18ms avahi-daemon.service             18ms packagekit.service             16ms systemd-journald.service             16ms systemd-modules-load.service             16ms ssh.service             16ms speech-dispatcher.service             15ms plymouth-read-write.service             15ms rc-local.service             14ms systemd-logind.service             14ms alsa-restore.service             12ms plymouth-start.service             10ms sys-kernel-debug.mount             10ms binfmt-support.service             10ms dev-hugepages.mount             10ms systemd-remount-fs.service              9ms dev-mqueue.mount              8ms ureadahead-stop.service              7ms home.mount              7ms snapd.boot-ok.service              6ms dns-clean.service              6ms systemd-sysctl.service              5ms console-setup.service 

and ~$ systemd-analyze plot output

systemd-analyze plot

for playing raid or otherwise reformatting disks, not forget following:

check both /etc/fstab and /etc/crypttab files.

for me /etc/crypttab had line specifying nonexisting encrypted swap volume. after removing, boot in under 15secs.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User

sql server - "Configuration file does not exist", Event ID 274 - Super User