DB2 LUW. 11.5.xx - Mac M1 ready
https://community.ibm.com/community/user/hybriddatamanagement/discussion/db2-luw-115xx-mac-m1-ready![Jürgen Jost](https://higherlogicdownload.s3.amazonaws.com/IMWUC/Images/ProfileImageDefault/T6FlabNTze4G0FTAa1dq_EvqA7zSoTduJ6W40ZlyZ_user_icon_lg_200_50.jpg)
Jürgen JostMon January 18, 2021 07:58 PM
Hello, Is the DB2 LUW community edition 11.5.xx (may be on docker) M1 ready? https://isapplesiliconready.com/de ...-
1. DB2 LUW. 11.5.xx - Mac M1 ready
1 LikeJürgen Jost Posted Mon January 18, 2021 07:58 PM Reply Hello, Is the DB2 LUW community edition 11.5.xx (may be on docker) M1 ready? https://isapplesiliconready.com/de My profile https://community.ibm.com/community/user/hybriddatamanagement/network/members/profile/myaccount/inbox Juergen Jost
-
2. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJürgen Jost Posted Tue January 19, 2021 02:54 AM Reply maybe there is some testing of LUW 11.5.xx on Rosetta
from macrumors:
Macs powered by Apple silicon, such as the M1 MacBook Pro, can run both iOS apps and Mac apps, but they can also run x86-64 software that's been built to work on Intel architecture, thanks to something called Rosetta 2.
------------------------------
Jürgen Jost
DB2 DBA (LUW / zOS)
------------------------------
Original Message
-
3. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJonathan Herdt Posted Wed January 26, 2022 10:21 AM Reply It doesn't look good from everything I can see. The official Docker image lists itself as not compatible with arm64, and when you try via Rosetta/x86 emulation, you run into problems as described here.
------------------------------
Jonathan Herdt
------------------------------
Original Message
-
4. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJonathan Herdt Posted Wed January 26, 2022 10:30 AM Reply
Would love to know the same. Having changed computers recently to an M1 and realizing that none of the IBM DB2 stuff works was disappointing.
I am talking about both the Docker image (https://hub.docker.com/r/ibmcom/db2), as well as the CLI driver (https://public.dhe.ibm.com/ibmdl/export/pub/software/data/db2/drivers/odbc_cli/).
For us, the Docker image does not seem to know the db2 command, even when run in x86 mode:/bin/bash: db2stop: command not found
As it stands, this makes development with M1 very hard because we now have to find ways around these hurdles.
------------------------------
Jonathan Herdt
------------------------------
Original Message
-
5. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJürgen Jost Posted Thu January 27, 2022 05:07 AM Reply
When downloading the docker image, I got the following:
latest: Pulling from ibmcom/db2no matching manifest for linux/arm64/v8 in the manifest list entries
PS
postgresql works on M1
------------------------------
Jürgen Jost
DB2 DBA (LUW / zOS)
------------------------------
Original Message
-
6. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJonathan Herdt Posted Thu January 27, 2022 08:12 AM Reply You can try the following to make it run in x86 emulated mode:
docker run -it --name db2 -e DBNAME=testdb -v ~/:/database -e DB2INST1_PASSWORD=GD1OJfLGG64HV2dtwK -e LICENSE=accept -p 50000:50000 --privileged=true --platform=linux/amd64 ibmcom/db2
As stated above, this will not work as it will not be able to find db2 and db2stop. For me, I get the following output:
(*) Previous setup has not been detected. Creating the users... (*) Creating users ... (*) Creating instance ... DBI1446I The db2icrt command is running. DB2 installation is being initialized. Total number of tasks to be performed: 4 Total estimated time for all tasks to be performed: 309 second(s) Task #1 start Description: Setting default global profile registry variables Estimated time 1 second(s) Task #1 end Task #2 start Description: Initializing instance list Estimated time 5 second(s) Task #2 end Task #3 start Description: Configuring DB2 instances Estimated time 300 second(s) Task #3 end Task #4 start Description: Updating global profile registry Estimated time 3 second(s) Task #4 end The execution completed successfully. For more information see the DB2 installation log at "/tmp/db2icrt.log.195". DBI1070I Program db2icrt completed successfully. (*) Fixing /etc/services file for DB2 ... /bin/bash: db2stop: command not found
And then a lot of error output follows.
------------------------------
Jonathan Herdt
------------------------------
Original Message
-
7. RE: DB2 LUW. 11.5.xx - Mac M1 ready
0 LikeJonathan Herdt Posted Thu February 10, 2022 03:07 AM Reply I would very much like to hear a response from an IBM employee on this. M1 has been around for a year and is now the default architecture for new Macs. More and more people are getting M1 Macs so this issue will not go away but rather become more pressing over time.
------------------------------
Jonathan Herdt
------------------------------
Original Message
-
8. RE: DB2 LUW. 11.5.xx - Mac M1 ready
1 LikeIRINA DELIDJAKOVA Posted Fri February 11, 2022 10:04 AM Reply @Jonathan Herdt I'm aware of the issue and will investigate. Will provide a response to this thread once I know more.
------------------------------
IRINA DELIDJAKOVA
------------------------------
Original Message
-
9. RE: DB2 LUW. 11.5.xx - Mac M1 ready
2 LikeIRINA DELIDJAKOVA Posted Wed March 02, 2022 01:03 PM Reply Hi All, this will not be an easy fix and we will need to support Db2 server on arm64 architectures before the container can support it as well. We are planning this for a future Db2 version - no particular date in plan yet as it is currently being evaluated.
------------------------------
IRINA DELIDJAKOVA
------------------------------
Original Message
-
10. RE: DB2 LUW. 11.5.xx - Mac M1 ready
1 LikeJonathan Herdt Posted Thu March 03, 2022 03:23 AM Reply @IRINA DELIDJAKOVA Hey Irina, thanks a lot for being open about this and very good to hear that you're working on it. I understand that this will be challenging and that it can take time. Any chance you could work on making the x86 emulation work in the meantime, in case that's easier/quicker (see my message above for how to start Docker like this)? 标签:...,database,11.5,LUW,Mac,command,2022,M1,DB2 From: https://www.cnblogs.com/z-cm/p/17017762.html