Re: [DRBD-user] drbd-9.0.9-1 compilation error on centos7.3: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:

2017-09-16 Thread Trevor Hemsley
Why not just use kmod-drbd90 from ELRepo?

On 16/09/17 13:35, T.J. Yang wrote:
> Hi All
>
> Anyone know how I can resolve this issue ? 
> According to R1, we need to pass "EXTRA_CFLAGS += -fno-pie" option to
>  gcc compiler.
> Quick look at Makefile and drbd-kernel.spec, not sure where can I pass
> on no-pie ?
>
> [ME@miq01t drbd-9.0.9-1]$
> KDIR=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64  make kmp-rpm
>
> Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
>
> scripts/basic/fixdep.c:462:1: fatal error: opening dependency file
> scripts/basic/.fixdep.d: Permission denied
>
> }
>
> ^
>
> compilation terminated.
>
> make[2]: *** [scripts/basic/fixdep] Error 1
>
> make[1]: *** [scripts_basic] Error 2
>
> checking for presence of 9\.0\.9-1 in various changelog files
>
> drbd-kernel.spec:9.0.9-1%{?dist}
>
> ChangeLog:9.0.9-1 (api:genl2/proto:86-112/transport:14)
>
> test -s .filelist
>
> rm -f drbd-9.0.9-1
>
> ln -s . drbd-9.0.9-1
>
> for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ;
> exit 1; done
>
> grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \
>
> 
>
> + cd /home/ME/rpmbuild/BUILD 
>
> + cd drbd-9.0.9-1
>
> + rm -rf
> /home/ME/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64
> 
>
> + exit 0
>
> You have now:
>
> /home/ME/rpmbuild/RPMS/x86_64/kmod-drbd-9.0.9_3.10.0_514.26.2-1.el7.centos.x86_64.rpm
>
> /home/ME/rpmbuild/RPMS/x86_64/drbd-kernel-debuginfo-9.0.9-1.el7.centos.x86_64.rpm
>
> [ME@miq01t drbd-9.0.9-1]$ gcc -v Using built-in specs. COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
> Target: x86_64-redhat-linux Configured with: ../configure
> --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info
> --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap
> --enable-shared --enable-threads=posix --enable-checking=release
> --with-system-zlib --enable-__cxa_atexit
> --disable-libunwind-exceptions --enable-gnu-unique-object
> --enable-linker-build-id --with-linker-hash-style=gnu
> --enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto
> --enable-plugin --enable-initfini-array --disable-libgcj
> --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install
> --with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install
> --enable-gnu-indirect-function --with-tune=generic
> --with-arch_32=x86-64 --build=x86_64-redhat-linux Thread model: posix
> gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) [ME@miq01t
> drbd-9.0.9-1]$
>
>
> Thanks for you help
>
>
> R1: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982
> -- 
> T.J. Yang
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __
>
>
> ___
> drbd-user mailing list
> drbd-user@lists.linbit.com
> http://lists.linbit.com/mailman/listinfo/drbd-user


___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


Re: [DRBD-user] drbd-9.0.9-1 compilation error on centos7.3: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:

2017-09-16 Thread T.J. Yang
Hi Trevor

Thanks for the pointer. I would rather use the wheel other already built.

I haven't used drbd pkg from elrepo for a while.
The drbd9 pkg looks built against centos 7.4 which is not  officially
released yet, only the CR for 7.4 is out.
I will give a try and look into elrepo's drbd9 spec  file

 yum info kmod-drbd90.x86_64
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.cogentco.com
 * elrepo: reflector.westga.edu
 * extras: mirror.cs.uwp.edu
 * updates: centos.mirrors.tds.net
Available Packages
Name: kmod-drbd90
Arch: x86_64
Version : 9.0.9
Release : 1.el7_4.elrepo
Size: 258 k
Repo: elrepo
Summary : drbd90 kernel module(s)
URL : http://www.drbd.org/
License : GPLv2
Description : This package provides the drbd90 kernel module(s) built
: for the Linux kernel using the x86_64 family of processors.


On Sat, Sep 16, 2017 at 9:17 AM, Trevor Hemsley 
wrote:

> Why not just use kmod-drbd90 from ELRepo?
>
>
> On 16/09/17 13:35, T.J. Yang wrote:
>
> Hi All
>
> Anyone know how I can resolve this issue ?
> According to R1, we need to pass "EXTRA_CFLAGS += -fno-pie" option to
>  gcc compiler.
> Quick look at Makefile and drbd-kernel.spec, not sure where can I pass on
> no-pie ?
>
> [ME@miq01t drbd-9.0.9-1]$ KDIR=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64
>  make kmp-rpm
>
> Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
> -fstack-protector-strong not supported by compiler
>
> scripts/basic/fixdep.c:462:1: fatal error: opening dependency file
> scripts/basic/.fixdep.d: Permission denied
>
> }
>
> ^
>
> compilation terminated.
>
> make[2]: *** [scripts/basic/fixdep] Error 1
>
> make[1]: *** [scripts_basic] Error 2
>
> checking for presence of 9\.0\.9-1 in various changelog files
>
> drbd-kernel.spec:9.0.9-1%{?dist}
>
> ChangeLog:9.0.9-1 (api:genl2/proto:86-112/transport:14)
>
> test -s .filelist
>
> rm -f drbd-9.0.9-1
>
> ln -s . drbd-9.0.9-1
>
> for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ;
> exit 1; done
>
> grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \
>
> 
>
> + cd /home/ME/rpmbuild/BUILD 
>
> + cd drbd-9.0.9-1
>
> + rm -rf /home/ME/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64
> 
>
> + exit 0
>
> You have now:
>
> /home/ME/rpmbuild/RPMS/x86_64/kmod-drbd-9.0.9_3.10.0_514.26.
> 2-1.el7.centos.x86_64.rpm
>
> /home/ME/rpmbuild/RPMS/x86_64/drbd-kernel-debuginfo-9.0.9-1.
> el7.centos.x86_64.rpm
>
> [ME@miq01t drbd-9.0.9-1]$ gcc -v Using built-in specs. COLLECT_GCC=gcc
> COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
> Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr
> --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=
> http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared
> --enable-threads=posix --enable-checking=release --with-system-zlib
> --enable-__cxa_atexit --disable-libunwind-exceptions
> --enable-gnu-unique-object --enable-linker-build-id
> --with-linker-hash-style=gnu --enable-languages=c,c++,objc,
> obj-c++,java,fortran,ada,go,lto --enable-plugin --enable-initfini-array
> --disable-libgcj --with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-
> x86_64-redhat-linux/isl-install --with-cloog=/builddir/build/
> BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install
> --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64
> --build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623
> (Red Hat 4.8.5-11) (GCC) [ME@miq01t drbd-9.0.9-1]$
>
> Thanks for you help
>
>
> R1: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982
> --
> T.J. Yang
>
> __
> This email has been scanned by the Symantec Email Security.cloud service.
> For more information please visit http://www.symanteccloud.com
> __
>
>
> ___
> drbd-user mailing 
> listdrbd-user@lists.linbit.comhttp://lists.linbit.com/mailman/listinfo/drbd-user
>
>
>


-- 
T.J. Yang
___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


[DRBD-user] drbd-9.0.9-1 compilation error on centos7.3: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:

2017-09-16 Thread T.J. Yang
Hi All

Anyone know how I can resolve this issue ?
According to R1, we need to pass "EXTRA_CFLAGS += -fno-pie" option to  gcc
compiler.
Quick look at Makefile and drbd-kernel.spec, not sure where can I pass on
no-pie ?

[ME@miq01t drbd-9.0.9-1]$ KDIR=/usr/src/kernels/3.10.0-514.26.2.el7.x86_64
 make kmp-rpm

Makefile:641: Cannot use CONFIG_CC_STACKPROTECTOR_STRONG:
-fstack-protector-strong not supported by compiler

scripts/basic/fixdep.c:462:1: fatal error: opening dependency file
scripts/basic/.fixdep.d: Permission denied

}

^

compilation terminated.

make[2]: *** [scripts/basic/fixdep] Error 1

make[1]: *** [scripts_basic] Error 2

checking for presence of 9\.0\.9-1 in various changelog files

drbd-kernel.spec:9.0.9-1%{?dist}

ChangeLog:9.0.9-1 (api:genl2/proto:86-112/transport:14)

test -s .filelist

rm -f drbd-9.0.9-1

ln -s . drbd-9.0.9-1

for f in $(<.filelist) ; do [ -e $f ] && continue ; echo missing: $f ; exit
1; done

grep debian .filelist >/dev/null 2>&1 && _DEB=-debian || _DEB="" ; \



+ cd /home/ME/rpmbuild/BUILD 

+ cd drbd-9.0.9-1

+ rm -rf /home/ME/rpmbuild/BUILDROOT/drbd-kernel-9.0.9-1.el7.centos.x86_64


+ exit 0

You have now:

/home/ME/rpmbuild/RPMS/x86_64/kmod-drbd-9.0.9_3.10.0_514.26.2-1.
el7.centos.x86_64.rpm

/home/ME/rpmbuild/RPMS/x86_64/drbd-kernel-debuginfo-9.0.9-1.el7.
centos.x86_64.rpm

[ME@miq01t drbd-9.0.9-1]$ gcc -v Using built-in specs. COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/libexec/gcc/x86_64-redhat-linux/4.8.5/lto-wrapper
Target: x86_64-redhat-linux Configured with: ../configure --prefix=/usr
--mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=
http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared
--enable-threads=posix --enable-checking=release --with-system-zlib
--enable-__cxa_atexit --disable-libunwind-exceptions
--enable-gnu-unique-object --enable-linker-build-id
--with-linker-hash-style=gnu
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada,go,lto
--enable-plugin --enable-initfini-array --disable-libgcj
--with-isl=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/isl-install
--with-cloog=/builddir/build/BUILD/gcc-4.8.5-20150702/obj-x86_64-redhat-linux/cloog-install
--enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64
--build=x86_64-redhat-linux Thread model: posix gcc version 4.8.5 20150623
(Red Hat 4.8.5-11) (GCC) [ME@miq01t drbd-9.0.9-1]$


Thanks for you help


R1: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1574982
-- 
T.J. Yang
___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user


Re: [DRBD-user] DRBD over ZFS - or the other way around?

2017-09-16 Thread Gionatan Danti

Il 15-09-2017 17:12 David Bruzos ha scritto:

Hi Danti,
The behavior you are experiencing is normal.  As I pointed out
previously, I've been using this setup for many years and I've seen
the same thing.  You will encounter that when the filesystem is
written on the DRBD device without the use of a partition table.
As a side note, I've had some nasty stability issues with the DRBD
version in the kernel (4.4/4.9 kernels) when running on ZFS, but DRBD
8.4.10 and ZFS 0.6.5.11 seem to be running great.  I also run the
storage as part of dom0, which many admins don't recommend, but
generally it works alright.  The stability issues were typically rare
and happened under high I/O loads and were DRBD related deadlock type
crashes.  Again, those problems seem to be resolve in the latest DRBD
8 RELEASE.

David


Hi David, thanks again for taking the time to report your findings.
I plan to use CentOS, which has no build-in DRBD support, so I will use 
ELRepo's DRBD packages + the official ZFS 0.7.x repository.


Regards.

--
Danti Gionatan
Supporto Tecnico
Assyoma S.r.l. - www.assyoma.it
email: g.da...@assyoma.it - i...@assyoma.it
GPG public key ID: FF5F32A8
___
drbd-user mailing list
drbd-user@lists.linbit.com
http://lists.linbit.com/mailman/listinfo/drbd-user