Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build cstor for arm, cannot create cstor pool #1493

Closed
wangzihao3 opened this issue Oct 22, 2019 · 0 comments · Fixed by mayadata-io/cstor#278
Closed

build cstor for arm, cannot create cstor pool #1493

wangzihao3 opened this issue Oct 22, 2019 · 0 comments · Fixed by mayadata-io/cstor#278

Comments

@wangzihao3
Copy link
Contributor

Is this a BUG REPORT or FEATURE REQUEST?

Choose one: FEATURE REQUEST

What happened:
I changed the codes of openebs/cstor and openebs/libcstor for arm buildings. It can be compiled and built successfully but shows errors when create cstor pool. I can create cstor pool by using sparse blockdevice but failed by using disk blockdevice.
What you expected to happen:
create cstor pool by using disk blockdevice
How to reproduce it (as minimally and precisely as possible):
Here are the code changes wangzihao3/cstor@aafeeef and wangzihao3/libcstor@7282578.
the codes I changed mostly according to https://github.com/DPDK/dpdk/tree/master/lib/librte_eal/common/include/arch/arm.

Anything else we need to know?:
reference: https://openebs-community.slack.com/archives/C3NPGQ6G3/p1571453110322800
Environment:

  • Maya version (use maya version):
    1.3.0

  • M-apiserver version (use m-apiserver version):
    1.3.0

  • OS (e.g. from /etc/os-release):
    Master: Centos7.6 Node1: Ubuntu18.04 Node2: Centoos7.6

  • Kernel (e.g. uname -a):
    Master: Linux master 4.14.0-115.10.1.el7a.aarch64 Create a Nomad demo setup - Type 1 #1 SMP Tue Jul 30 14:50:37 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
    Node1: Linux ubuntu 4.15.0-45-generic Getting runtime stats from replica #48-Ubuntu SMP Tue Jan 29 16:32:18 UTC 2019 aarch64 aarch64 aarch64 GNU/Linux
    Node2: Linux node1 4.14.0-115.el7a.0.1.aarch64 Create a Nomad demo setup - Type 1 #1 SMP Sun Nov 25 20:54:21 UTC 2018 aarch64 aarch64 aarch64 GNU/Linux

  • Install tools:

  • Others:
    I used the disks I didn't use before and didn't do the wipe out operation.
    Here are the information of disk.

Name:         blockdevice-94b501381f87bd82b00f8a743aec99f2
Namespace:    openebs
Labels:       kubernetes.io/hostname=ubuntu
              ndm.io/blockdevice-type=blockdevice
              ndm.io/managed=true
Annotations:  <none>
API Version:  openebs.io/v1alpha1
Kind:         BlockDevice
Metadata:
  Creation Timestamp:  2019-10-20T10:14:20Z
  Generation:          4
  Resource Version:    1710
  Self Link:           /apis/openebs.io/v1alpha1/namespaces/openebs/blockdevices/blockdevice-94b501381f87bd82b00f8a743aec99f2
  UID:                 09dcc043-135a-4c62-aac7-4c9f96aba019
Spec:
  Capacity:
    Logical Sector Size:   512
    Physical Sector Size:  0
    Storage:               3999999721472
  Details:
    Compliance:         SPC-3
    Device Type:
    Firmware Revision:
    Model:              AVAGO
    Serial:             6101b5442bcc70001c374ffe2a306e01
    Vendor:             AVAGO
  Devlinks:
    Kind:  by-id
    Links:
      /dev/disk/by-id/scsi-36101b5442bcc70001c374ffe2a306e01
      /dev/disk/by-id/wwn-0x6101b5442bcc70001c374ffe2a306e01
    Kind:  by-path
    Links:
      /dev/disk/by-path/pci-0000:03:00.0-scsi-0:2:4:0
  Filesystem:
  Node Attributes:
    Node Name:  ubuntu
  Partitioned:  No
  Path:         /dev/sde
Status:
  Claim State:  Unclaimed
  State:        Active
Events:         <none>
@wangzihao3 wangzihao3 changed the title build cstor for arm build cstor for arm, cannot create cstor pool Oct 22, 2019
jjjighg added a commit to jjjighg/cstor that referenced this issue Nov 13, 2019
when __aarch64__ is defined, the file sys_defs.h should not define __arm__, otherwise it will cause a logical error in the file libaio.h. After modification, we successfully run on Huawei ARMv8 Kunpeng920 CPU.

fixed: openebs-archive/maya#1493

Signed-off-by: jjjighg <[email protected]>
jjjighg added a commit to jjjighg/cstor that referenced this issue Nov 14, 2019
when __aarch64__ is defined, the file sys_defs.h should not define __arm__, otherwise it will cause a logical error in the file libaio.h. After modification, we successfully run on Huawei ARMv8 Kunpeng920 CPU.

fixed: openebs-archive/maya#1493

Signed-off-by: jjjighg <[email protected]>
jjjighg added a commit to jjjighg/cstor that referenced this issue Nov 14, 2019
when __aarch64__ is defined, the file sys_defs.h should not define __arm__, otherwise it will cause a logical error in the file libaio.h. After modification, we successfully run on Huawei ARMv8 Kunpeng920 CPU.

fixed: openebs-archive/maya#1493

Signed-off-by: jjjighg <[email protected]>
wangzihao3 added a commit to wangzihao3/libcstor that referenced this issue Nov 15, 2019
wangzihao3 added a commit to wangzihao3/libcstor that referenced this issue Nov 18, 2019
wangzihao3 added a commit to wangzihao3/libcstor that referenced this issue Nov 18, 2019
mynktl pushed a commit to openebs-archive/libcstor that referenced this issue Nov 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant