JH 개인 블로그
close
프로필 배경
프로필 로고

JH 개인 블로그

  • All (143)
    • Cloud (18)
      • AWS(Amazon Web Service) (4)
      • NCP(Naver Cloud Platform) (8)
      • OCI(Oracle Cloud Infrastruc.. (6)
    • DataBase (78)
      • Oracle (14)
      • MySQL & MariaDB (43)
      • PostgreSQL (8)
      • MSSQL (13)
    • DataBase Admin (14)
      • DB Admin (8)
      • Trouble shooting (6)
    • Others (31)
      • DB Monitoring (15)
      • Opensource Tool (16)
    • 여가 생활 (2)
      • 해외 여행 (0)
      • 맛집 탐방 (2)
      • 호캉스 (0)
  • 홈
  • 태그
  • 방명록
[NCP - Object Storage 마운트] use. awscli

[NCP - Object Storage 마운트] use. awscli

Naver Cloud의 오브젝트 스토리지를 블록스토리지처럼 서버에 마운트하여 데이터를 올리는 테스트를 해보았습니다. ■ golang install golang URL : https://go.dev/dl/ Downloads - The Go Programming Language Downloads After downloading a binary release suitable for your system, please follow the installation instructions. If you are building from source, follow the source installation instructions. See the release history for more information about..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 11. 5.
  • textsms
[NCP - CloudDB for MySQL 데이터 마이그레이션] use. mysqldump

[NCP - CloudDB for MySQL 데이터 마이그레이션] use. mysqldump

안녕하세요 이번글에서는 Naver Cloud의 CloudDB for MySQL서비스에서의 데이터 마이그레이션 작업을 진행해보겠습니다. 실제 사이트에서 작업중 일어난 에러들도 함께 정리해보았습니다. 해결방법은 제 개인적인 생각으로 진행했으므로 최선의 방법이 아닐 수 있습니다 테스트 환경 기존 DB : CloudDB for MySQL -> AS-IS 대상 DB : CloudDB for MySQL -> TO-BE 마이그레이션을 위한 임시 서버 생성 -> VM 인스턴스 (mig) Export ※ 에러 1번 TABLE1 테이블이 오랜 미관리로 인해 손상되어 있어 dump불가하며 조회시 없다고 나옵니다. [root@mig ~]# mysqldump -h -u -p --routines --triggers --singl..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 8. 12.
  • textsms
[NCP - CloudDB for MySQL Slave 부하 분산] use. Loadbalancer

[NCP - CloudDB for MySQL Slave 부하 분산] use. Loadbalancer

Naver Cloud 플랫폼에서 지원하는 관리형 DB인 Cloud DB for Mysql에 LB를 추가하여 부하 분산 해볼 예정입니다. Cloud DB for Mysql에서 고가용성으로 생성하게 되면 Master-Slave 구조로 생성됩니다. 이 두 노드는 failover시 서로 role이 바뀌어가기 때문에 standby master의 role을 가진 slave DB는 LB에 추가 할 수도 접속 할 수도 없습니다. 따라서 이번 테스트에서는 Master와 Standby Master 두 노드를 제외한 Slave DB 2개를 추가하여 구성하였습니다. 전체적인 구성은 위 그림과 같습니다. WAS에서 아래와 같이 설정하여 Slave노드에 read작업을 부하분산 하도록 설정하였습니다. Write 작업 -> Mast..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 7. 9.
  • textsms
[NCP - mail 전송 방법] use.(sendmail/mutt)

[NCP - mail 전송 방법] use.(sendmail/mutt)

일반 텍스트 메일 보내는 방법(sendmail) ▶ sendmail 설치 [root@mysql]# yum install -y sendmail sendmail-cf ▶ config 수정 [root@mysql]# vi /etc/mail/sendmail.mc -- 52,53라인에 dnl을 삭제 [root@mysql bin]# m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf ▶ 25번 포트 open 확인 [root@mysql]# netstat -anp | grep sendmail | grep LISTEN tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 22675/sendmail: acc ▶ start [root@mysql]# systemctl start..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 5. 14.
  • textsms
[NCP - window서버 스토리지 추가]

[NCP - window서버 스토리지 추가]

▶ 콘솔에서 Server -> Storage -> 스토리지 생성 클릭 원하는 서버에 원하는 크기의 스토리지를 추가해줍니다. ■ 대상서버 접속 ▶디스크 초기화 시작 -> windows 관리 도구 -> 컴퓨터 관리 -> 디스크 관리 ▶ 할당되지 않은 디스크를 찾아 우클릭 후 새 단순 볼륨 클릭 ▶ 전부 다음 클릭 ▶ 해당 디스크 우클릭 ->드라이브 문자 및 경로 변경 클릭 ▶ 추가 -> 드라이브 문자 할당 -> 확인 ▶ 확인

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 4. 23.
  • textsms
[NCP - Tomcat & MySQL 연동 방법]

[NCP - Tomcat & MySQL 연동 방법]

안녕하세요 오늘은 tomcat & mysql 연동 하도록하겠습니다. 테스트 환경은 NCP에서 진행하였으면 일반 vm에서 해도 동일할거 같습니다 테스트 환경 Version mysql 5.7 tomcat 8.5 connector 5.1.40 OS - ubuntu linux 18.04 사전 구성 ※ tomcat과 mysql 사전 설치 되어 있어야합니다. 테스트 시작 ■ mysql connector 설치 (jdbc) https://dev.mysql.com/downloads/connector/j/ MySQL :: Download Connector/J MySQL Connector/J 8.0 is highly recommended for use with MySQL Server 8.0, 5.7 and 5.6. Plea..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 1. 22.
  • textsms
[NCP - Cloud DB for Redis & Tomcat 연동 (session clustering)]

[NCP - Cloud DB for Redis & Tomcat 연동 (session clustering)]

Naver Cloud에서 제공하는 Cloud for DB Redis 서비스를 이용해서 was(tomcat)과 연동하여 session clustering을 진행하도록 하겠습니다. 테스트 환경 was1(tomcat) , was2(tomcat) redis 서버(고가용성) 테스트 시작 ■ Redis 생성 버전과 라이센스 선택 불가..고가용성 선택 시 자동 리다이렉션 됩니다. ■ 생성 후 아래와 같이 확인 가능하며 도메인 확인은 관리->Redis 설정 에서 가능합니다. ■ Redis에 접속할 서버를 redis DB ACG에 추가해줍니다. ■ 생성 후 redis 접속을 위해 redis client 설치 root@was001:~# mkdir -p /etc/redis-client root@was001:~# cd /et..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 1. 22.
  • textsms
[NCP - VPC환경 vip생성 방법]

[NCP - VPC환경 vip생성 방법]

네이버클라우드 플랫폼에서 VPC환경에선 vip를 생성할때 naver cli를 이용해야합니다. 이번 글에선 naver cli 이용하여 api로 vip생성 방법에 대해 포스팅 하겠습니다. 사전 확인 1.네이버 콘솔에서 Secret key와 Access key를 확인 후 기록해둔다. Access key : A Secret key : B 2.네이버 콘솔에서 CLI 파일을 download 받습니다. ■ 네이버 CLI파일 [root@jh-post001 ~]# unzip CLI_1.1.1_20210916.zip [root@jh-post001 ~]# cd cli_linux [root@jh-post001 cli_linux]# chmod -R 755 /root/cli_linux/ ## 경로 수정 root@jh-post00..

  • format_list_bulleted Cloud/NCP(Naver Cloud Platform)
  • · 2022. 1. 20.
  • textsms
  • navigate_before
  • 1
  • navigate_next
전체 카테고리
  • All (143)
    • Cloud (18)
      • AWS(Amazon Web Service) (4)
      • NCP(Naver Cloud Platform) (8)
      • OCI(Oracle Cloud Infrastruc.. (6)
    • DataBase (78)
      • Oracle (14)
      • MySQL & MariaDB (43)
      • PostgreSQL (8)
      • MSSQL (13)
    • DataBase Admin (14)
      • DB Admin (8)
      • Trouble shooting (6)
    • Others (31)
      • DB Monitoring (15)
      • Opensource Tool (16)
    • 여가 생활 (2)
      • 해외 여행 (0)
      • 맛집 탐방 (2)
      • 호캉스 (0)
최근 글
인기 글
최근 댓글
태그
  • #mha
  • #monitoring
  • #mysql
  • #oci
  • #PostgreSQL
  • #mssql
  • #ncp
  • #navercloud
  • #oracle
  • #MariaDB
전체 방문자
오늘
어제
전체

티스토리툴바