Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
systemd dmraid swap and boot partitions wont mount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 91
Location: FRANCE /Montpellier

PostPosted: Sun Nov 29, 2015 7:37 pm    Post subject: systemd dmraid swap and boot partitions wont mount Reply with quote

Hello everybody,
after take a while to find solution to my issue i decide to make a topic
My server is a Dell powerEdge SC1425 with SCSI Adapteur.
Hard drive are setup with raid 0 array.
The system boots but i got an issue to mount my /boot partition and it does not load the swap partition also (at booting).
Before event if the boot partition was unloaded after kernel boot, it was possible to mount it again to adjuste kernel image.
Sometimes there is a job which is during 1m30 before countinuing the boot process on the load of swap partition.
The error message is :
Code:

systemd[1]: Job dev-mapper-asr_serveraid3.device/start timed out.
nov. 29 20:30:22 services systemd[1]: Timed out waiting for device dev-mapper-asr_serveraid3.device.
nov. 29 20:30:22 services systemd[1]: Job dev-mapper-asr_serveraid3.swap/start failed with result 'dependency'.
nov. 29 20:30:22 services systemd[1]: Job dev-mapper-asr_serveraid3.device/start failed with result 'timeout'


When i try to mount the /boot partition :
Code:

Nov 29 20:35:29 services systemd[1]: Unit boot.mount is bound to inactive service. Stopping, too.
Nov 29 20:35:29 services systemd[1]: Unmounting /boot...
Nov 29 20:35:29 services systemd[1]: Unmounted /boot.


Here my fstab :
Code:
/dev/mapper/asr_serveraid2              /boot           ext2            noauto,noatime  0 2
/dev/mapper/asr_serveraid4              /               ext4            noatime         0 1
/dev/mapper/asr_serveraid3              none            swap            sw              0 0
#UUID="e9cf029c-c02d-4c8a-8efa-9d12d6d68df1"    none            swap            sw              0 0
#/dev/cdrom             /mnt/cdrom      auto            noauto,ro       0 0
#/dev/fd0               /mnt/floppy     auto            noauto          0 0

if someones have ideas, thanks in advance to share it !

Flav
Back to top
View user's profile Send private message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 91
Location: FRANCE /Montpellier

PostPosted: Mon Nov 30, 2015 12:34 pm    Post subject: Reply with quote

Hi there,
finally i found a trics to mount the boot partition:
On a shell :
Code:

systemctl start boot.mount

and on the otherone :
Code:

mount /boot

I still have a issue with the swap partition cannot be set at boot process
Back to top
View user's profile Send private message
szatox
Veteran
Veteran


Joined: 27 Aug 2013
Posts: 1746

PostPosted: Mon Nov 30, 2015 7:25 pm    Post subject: Reply with quote

There is swapon and swapoff for enabling/disabling SWAP.
Code:
/dev/mapper/asr_serveraid2              /boot           ext2            noauto,noatime  0 2

This line keeps your /boot from mounting. It's fine, if you create a separate /boot it's probably because you want a tiny bit of extra protection for your kernel. As you noticed you can mount /boot when you need it.
The line for SWAP looks fine and it should activate swap automatically.

What does "free -h" show? Run it just after boot, before you manually activate swap.
Quote:
Sometimes there is a job which is during 1m30 before countinuing the boot process on the load of swap partition
weird. What RAID is it? Path suggests device mapper, but it doesn't follow LVM's naming convention.
Back to top
View user's profile Send private message
Flav
Tux's lil' helper
Tux's lil' helper


Joined: 11 Sep 2004
Posts: 91
Location: FRANCE /Montpellier

PostPosted: Mon Nov 30, 2015 9:16 pm    Post subject: Reply with quote

Hello, thanks for your answer,
exactly when i'm booting i have
Code:
Sometimes there is a job which is during 1m30 before countinuing the boot process on the load of swap partition

free -h without activating swap at boot looks :
Code:

services ~ # free -h
              total       utilisé      libre     partagé tamp/cache   disponible
Mem:           5,8G         74M        1,3G        948K        4,4G        5,7G
Partition d'échange:          0B          0B          0B

when i try to swapon directly the correct partition at a moment it was working but now in my logs the i have the same issue like the boot partition.
Code:
Nov 30 22:09:16 services kernel: Adding 1048572k swap on /dev/mapper/asr_serveraid3.  Priority:-1 extents:1 across:1048572k <-- so it's meen it works correctly but behing systemd taking back
the management?

Nov 30 22:09:16 services systemd[1]: Unit dev-mapper-asr_serveraid3.swap is bound to inactive service. Stopping, too.
Nov 30 22:09:16 services systemd[1]: Deactivating swap /dev/mapper/asr_serveraid3...
Nov 30 22:09:16 services systemd[1]: Deactivated swap /dev/mapper/asr_serveraid3.

and finally i'm getting back without swap partitition available to the system.
I wasn't using LVM Configuration because for it was for different disque capacity?. (perhaps i'm not using correctly and i should use LVM?)
My system is a raid stripping on SCSI Adaptatere.
Code:

services ~ # dmesg |grep Adap
[    6.330030] scsi host2: Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
                       <Adaptec (Dell OEM) 39320 Ultra320 SCSI adapter>
[   11.446028] scsi host3: Adaptec AIC79XX PCI-X SCSI HBA DRIVER, Rev 3.0
                       <Adaptec (Dell OEM) 39320 Ultra320 SCSI adapter>
[   16.441277] Adaptec aacraid driver 1.2-1[40709]-ms
[   16.488306] aic94xx: Adaptec aic94xx SAS/SATA driver version 1.0.3 loaded


So i 'm new with systemd, I will continue to use it, perhaps it miss a better way to install the system correctly?

thanks in advance,

Flav
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum