ocfs2 on HC2

Post Reply
pekabo
Posts: 3
Joined: Tue May 28, 2019 9:38 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

ocfs2 on HC2

Unread post by pekabo » Tue May 28, 2019 11:36 pm

Hello @ all

I'm trying to install ocfs2 on drbd.
drbd works fine, I can't mount ocfs2.

get the following error

FATAL: Module ocfs2_stackglue not found in directory /lib/modules/4.14.120-160.
FATAL: Module ocfs2_dlmfs not found in directory /lib/modules/4.14.120-160.

Am I missing a kernel module?

I tried this solution https://serverfault.com/questions/95077 ... al-modules
There is no installation package for Linux modules-extra
apt install linux-module-extra-4.14.120-160

Anyone have any idea how to get ocfs2 to run on odroid HC2?
Any help is welcome

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: ocfs2 on HC2

Unread post by odroid » Wed May 29, 2019 9:08 am

OCFS2 driver was not enabled in our default configuration.
https://github.com/hardkernel/linux/blo ... nfig#L5510

Download Kernel source and enable the driver as a module and build/install it.
Refer to this instruction for the custom kernel build process.
https://wiki.odroid.com/odroid-xu4/os_i ... rnel_build

Once you can confirm the driver functionality and stability, we will add it in the next Kernel update package.
These users thanked the author odroid for the post:
pekabo (Wed May 29, 2019 4:50 pm)

pekabo
Posts: 3
Joined: Tue May 28, 2019 9:38 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: ocfs2 on HC2

Unread post by pekabo » Wed May 29, 2019 3:52 pm

Thanks for hint.

enclosed my HowTo:
Login in to your odroid with ssh.

check your kernel version with
$ uname -r

I get the Kernel version 4.14.120-160

switch to home dir
$ cd ~

I installed the developers tool and cloned the repository.
$ sudo apt install git gcc g++ build-essential libssl-dev bc flex bison

then installed with ncurses-devel
$ sudo apt install libncurses5-dev

clone Linux Kernel from hardkernel github to loacl device
$ sudo git clone --depth 1 https://github.com/hardkernel/linux -b odroidxu4-4.14.y
You will see in the Terminal
Cloning into 'linux'...

switch to the linux dir
$ cd linux

Then I download the current odroid config from /proc/config.gz to a folder on my pc and extract it with 7zip
Rename the config filr to ".config-org"
Upload the extractet .config-org" file to /home/odroid/linux
Start Kernel Konfiguration with
$ sudo make menuconfig

in menuconfig load the extractet .config-org" file.

Enter in menuconfig to "File systems --->"
aktivate "ocfs2 file system Support, hit "m" on the keyboard to install it as module.
Exit menu "File system --->" and go to "General setup --->"
Cange "Local version -append to kernel release" to "-161"
save the new config as .config" and exit menuconfig

$ make -j8

Please note that native kernel compile on ODROID-XU4 will take about 25 minutes.

$ sudo make modules_install
check if the folder ocfs2 exist in "/lib/modules/4.14.120-161+/kernel/fs"

$ sudo cp -f arch/arm/boot/zImage /media/boot
$ sudo cp -f arch/arm/boot/dts/exynos5422-odroid*dtb /media/boot
$ sync

Before you start with new Linux kernel v4.14
You would check all necessary files are in place as below before reboot. The file size would differ

-rwxr-xr-x 1 root root 9536 Oct 25 23:29 boot.ini
-rwxr-xr-x 1 root root 753 Aug 20 22:38 boot.ini.default
-rwxr-xr-x 1 root root 62565 Nov 2 01:24 exynos5422-odroidxu3.dtb
-rwxr-xr-x 1 root root 61814 Nov 2 01:24 exynos5422-odroidxu3-lite.dtb
-rwxr-xr-x 1 root root 62225 Nov 2 01:24 exynos5422-odroidxu4.dtb
-rwxr-xr-x 1 root root 61714 Oct 25 23:30 exynos5422-odroidxu4-kvm.dtb
-rwxr-xr-x 1 root root 9996513 Nov 2 01:27 uInitrd
-rwxr-xr-x 1 root root 4844744 Nov 2 01:24 zImage

Reboot odroid device
$ sudo reboot

check your kernel new version with
$ uname -r

Now I the Kernel version 4.14.120-161+

I successfully booted the new kernel version 4.14.120-161+.
Now I will setup ocfs2, if it runs stable for 2-3 month I will let you now.
Last edited by pekabo on Wed May 29, 2019 7:08 pm, edited 4 times in total.

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: ocfs2 on HC2

Unread post by odroid » Wed May 29, 2019 7:03 pm

Glad to know that you made it work. ;)

pekabo
Posts: 3
Joined: Tue May 28, 2019 9:38 pm
languages_spoken: english
Has thanked: 1 time
Been thanked: 0
Contact:

Re: ocfs2 on HC2

Unread post by pekabo » Wed May 29, 2019 7:51 pm

Yes it works, I mounted successfully ocfs2 :D :D :D

User avatar
odroid
Site Admin
Posts: 31760
Joined: Fri Feb 22, 2013 11:14 pm
languages_spoken: English
ODROIDs: ODROID
Has thanked: 83 times
Been thanked: 241 times
Contact:

Re: ocfs2 on HC2

Unread post by odroid » Wed Jun 26, 2019 11:43 am

We enabled it by default with Kernel 4.14.127 release.
https://github.com/hardkernel/linux/com ... 62d5581078

Post Reply

Return to “Ubuntu”

Who is online

Users browsing this forum: No registered users and 3 guests