You are not logged in.

#1 2014-08-10 01:07:13

arch-sash
Member
Registered: 2014-06-02
Posts: 6

Stability Issues (Freezes) and Mount SWAP Partition during Boot

Hi,

i'm having the following 2 Issues:

1. Stability issues, The System freezes randomly an i have no hint to get rid of the freezes.
2. At bootyp the Swap Partition won't be mounted. If the bootup ist completet and i type "swapon -a" - everything ist ok

Because i'm a Newbie - i don't know how i could get rid of these Problems.

If you can tell me what i could try or what i schould check - please tell me.

thx
sash

Offline

#2 2014-08-10 02:03:37

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

Define 'freeze'. For how long, what were you doing at that time, does systemd's journal, htop or iotop show what could be the cause, do you have to reboot to make it go away?
Post your /etc/fstab.

Offline

#3 2014-08-10 02:32:27

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

Not a Kernel issue, moving to NC...


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#4 2014-08-10 15:03:29

arch-sash
Member
Registered: 2014-06-02
Posts: 6

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

karol wrote:

Define 'freeze'. For how long, what were you doing at that time, does systemd's journal, htop or iotop show what could be the cause, do you have to reboot to make it go away?
Post your /etc/fstab.

thx for you answer. I think i have to explain what i mean with "freeze" --> the pc isn't responding, that mean - no key input, no ssh responding. The PC has noch Graphical interface, only console and is uptodate and acts at home as my "server" thats why i cant say what it is exactly doing.

I think the only way is to get all log-files and search for the issue - what logs do i have to check?
How could i check why my swap partition couldn't be activatet at startup, but after login and "swapon -a" everything is fine?

uname -a

Linux server 3.15.9-2-ck #1 SMP PREEMPT Fri Aug 8 03:02:21 EDT 2014 x86_64 GNU/Linux

/etc/fstab:

# UUID=0eb5dbfa-94af-4614-ab65-f223bc367b81 LABEL=Arch
/dev/mapper/enc-sda2    /               btrfs           rw,relatime,ssd,discard,space_cache,compress,subvol=__active    0 0
# /dev/mapper/enc-sda2  /               btrfs           rw,relatime,ssd,discard,space_cache,compress,subvol=__active    0 0

# UUID=7ff9cb11-3931-42c8-9987-d0512c50a26e LABEL=boot
/dev/sda1               /boot           ext4            rw,relatime,data=ordered        0 2

# 640GB SWD Blue
/dev/mapper/enc-sdb1    /mnt/data1               btrfs           rw,relatime,compress,autodefrag,subvol=data1    0 0
/dev/mapper/enc-sdb1    /mnt/timemachine         btrfs           rw,relatime,compress,autodefrag,subvol=timemachine    0 0

# 1TB
/dev/mapper/enc-sdc1    /mnt/data2               btrfs           rw,relatime,space_cache,compress,autodefrag,subvol=data2    0 0

# 2TB
/dev/mapper/enc-sdd1    /mnt/backup               btrfs           rw,relatime,space_cache,compress,autodefrag,subvol=__active    0 0

# UUID=b9855c07-c383-42d0-b30f-ab3bfc60c8be LABEL=swap
/dev/mapper/enc-sda3    none            swap            defaults,discard        0 0

/etc/crypttab

enc-sda2        /dev/sda2       /root/key/root.key
enc-sda3        /dev/sda3       /root/key/root.key      swap
enc-sdb1        /dev/sdb1       /root/key/root.key
enc-sdc1        /dev/sdc1       /root/key/root.key
enc-sdd1        /dev/sdd1       /root/key/root.key

And i decrypt my /root partition with a key on my usb-stick at boot-time.

Last edited by arch-sash (2014-08-10 15:05:06)

Offline

#5 2014-08-10 22:29:26

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

Check systemd's journal.
Have you tried using the stock kernel?

Offline

#6 2014-08-11 06:04:52

arch-sash
Member
Registered: 2014-06-02
Posts: 6

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

Yes, i'm having the same Issues, with Stock Kernel.

I don't know how to see the Systemd's Messages for boot-Time. If i Type:

journalctl /usr/lib/systemd/systemd -b

i only get this, but no output for the boottime?!

-- Logs begin at Sa 2014-07-12 11:00:37 CEST, end at Mo 2014-08-11 08:03:32 CEST
Aug 10 18:31:05 server systemd[702]: Starting Paths.
Aug 10 18:31:05 server systemd[702]: Reached target Paths.
Aug 10 18:31:05 server systemd[702]: Starting Timers.
Aug 10 18:31:05 server systemd[702]: Reached target Timers.
Aug 10 18:31:05 server systemd[702]: Starting Sockets.
Aug 10 18:31:05 server systemd[702]: Reached target Sockets.
Aug 10 18:31:05 server systemd[702]: Starting Basic System.
Aug 10 18:31:05 server systemd[702]: Reached target Basic System.
Aug 10 18:31:05 server systemd[702]: Starting Default.
Aug 10 18:31:05 server systemd[702]: Reached target Default.
Aug 10 18:31:05 server systemd[702]: Startup finished in 5ms.
Aug 11 08:00:22 server systemd[702]: Stopping Default.
Aug 11 08:00:22 server systemd[702]: Stopped target Default.
Aug 11 08:00:22 server systemd[702]: Stopping Basic System.
Aug 11 08:00:22 server systemd[702]: Stopped target Basic System.
Aug 11 08:00:22 server systemd[702]: Stopping Paths.
Aug 11 08:00:22 server systemd[702]: Stopped target Paths.
Aug 11 08:00:22 server systemd[702]: Stopping Timers.
Aug 11 08:00:22 server systemd[702]: Stopped target Timers.
Aug 11 08:00:22 server systemd[702]: Stopping Sockets.
Aug 11 08:00:22 server systemd[702]: Stopped target Sockets.
Aug 11 08:00:22 server systemd[702]: Starting Shutdown.
Aug 11 08:00:22 server systemd[702]: Reached target Shutdown.

Offline

#7 2014-08-11 20:41:43

arch-sash
Member
Registered: 2014-06-02
Posts: 6

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

Any Suggestions?

Offline

#8 2014-08-11 21:53:15

davidm
Member
Registered: 2009-04-25
Posts: 371

Re: Stability Issues (Freezes) and Mount SWAP Partition during Boot

There is some weirdness with btrfs right now where it is causing deadlock conditions.  It could be related?  I believe I saw another user on the forum also using btrfs with encryption having problems.  The encryption may make it more likely to occur (just speculation)?

https://www.mail-archive.com/linux-btrf … 36238.html

On my system it seems (assuming it is related) to result in one or more cores becoming 100% cpu use and "locked".  Trying to kill the process with even "kill -9" is impossible.  Based on this message the fix should hit the mainline kernel soon. 

I think systemd now usually handles the swap, no?  I use a loopback swap file on mine since it's all btrfs.  But are oyu using an encrypted swap setup of some sort?  If so maybe see https://wiki.archlinux.org/index.php/Dm … encryption  If not maybe see https://wiki.archlinux.org/index.php/Sw … by_systemd

Last edited by davidm (2014-08-11 21:56:38)

Offline

Board footer

Powered by FluxBB