메뉴 닫기

Ubuntu Tips

ISCSI 관련

  • at host
    • tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2019-02.com.cache:host1
    • tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 --backing-store=/dev/nvme0n1p5
    • (listing) tgtadm --lld iscsi --mode target --op show
    • (save the configurations) tgt-admin --dump > /etc/tgt/targets.conf
    • tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL
    • (delete) tgtadm --lld iscsi --op delete --mode target --tid 1
  • at client
    • iscsiadm --mode discovery --type sendtargets --portal 10.0.0.201
    • iscsiadm -m node --targetname iqn.2019-02.com.cache:host1 -p 10.0.0.201 -l
    • iscsiadm -m node -p 10.0.0.201 --login
    • iscsiadm -m node --login
    • (delete) iscsiadm -m node -o delete -T "iqn.2019-02.com.cache:host1" --portal 10.0.0.201:3260

LVM 다시 연결하기

(참고: https://kldp.org/node/60097)

volume group확인: pvdisplay /dev/hdd2
volume group활성화: vgchange -a y VolGroup00
logical volume확인: lvdisplay -v /dev/VolGroup00
logical volume mount: mount -t ext3 /dev/VolGroup00/LogVol00 /mnt/hdd

성능 분석 도구 perf 설치

sudo apt install linux-tools-common linux-tools-generic linux-cloud-tools-generic

(커널 버전에 맞는 패키지를 선택해서 깔아야하는 경우도 있음)

sudo apt install linux-tools-$(uname -r) linux-cloud-tools-$(uname -r)

*사용 방법

perf record -ag sleep 5

perf report --stdio

or

perf report

Ubuntu 깔고 나서.

sudo adduser hcpark

sudo vi /etc/sudoers

apt-get update

apt install linux-tools-common sysstat vim git lrzsz samba

Ubuntu 부트 메뉴 설정

sudo vi /etc/default/grub

GRUB_DEFAULT=0
#GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=0
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="console=tty1 console=ttyS0"
GRUB_CMDLINE_LINUX=""

  • 위에서 GRUB_DEFAULT를 메뉴에 맞게 설정함
    • GRUB_DEFAULT="1>6"
      • 1번: Advanced Ubuntu, 6번: 그 안에서 내가 원하는 옵션
    • GRUB_DEFAULT=saved 
      • 라고 하면 마지막에 부팅된 커널
  • 메뉴 확인
    • GRUB_TIMEOUT=3
    • 그리고 위에서 HIDDEN_TIMEOUT 을 주석 처리해야 메뉴를 확인할 수 있음
  • Cloud image 인 경우,
    • sudo vi /etc/default/grub.d/50-cloudimg-settings.cfg
    • 이 내부에서 GRUB_DEFAULT, GRUB_TIMEOUT 옵션을 바꾸어주어야 함
  • 다하고 나면
    • update-grub2
    • reboot

Ramdisk 이용 방법 (w/ ext4 fs)

(참고: https://unix.stackexchange.com/questions/401295/how-can-i-create-an-ext4-ramdisk)

  • ramdisk image file: /mnt/ramdisk/ext4.image
  • mount point: /mnt/ext4ramdisk
  • 작업 수행 내용 (아래 명령 설명)
    • Ramfs 를 사용하는 디렉토리 내에 ext4.image 라는 파일을 512MB 크기로 만들고,
    • 해당 파일의 내용을 ext4 파일 시스템 형태로 포맷한 후에, (mkfs)
    • ext4.image 파일을 가상 디스크로 이용하여 /mnt/ext4ramdisk 에 ext4 FS 로 mount 함

mkdir /mnt/ramdisk

mount -t ramfs ramfs /mnt/ramdisk

dd if=/dev/zero of=/mnt/ramdisk/ext4.image bs=1M count=512

mkfs.ext4 /mnt/ramdisk/ext4.image

mkdir /mnt/ext4ramdisk

mount -t ext4 -o loop /mnt/ramdisk/ext4.image /mnt/ext4ramdisk

NFS 서버 세팅

  • source: https://www.fun25.co.kr/blog/linux-ubuntu-16-04-nfs-setting/
# apt-get update
# apt-get install nfs-common nfs-kernel-server portmap

공유할 디렉토리 생성

# mkdir /home/nfs
# chmod 777 /home/nfs

/etc/exports 파일에 추가 (192.168.0.1 아이피만 접근 가능)

/home/nfs 192.168.0.1 (rw,all_squash,async)

NFS 클라이언트에서는 mount 명령어로 마운트해서 사용

# apt-get install nfs-common
# mount -t nfs 192.168.0.2:/home/nfs /mnt

위와 같이 하면 nfs 서버의 /home/nfs 디렉토리를 로컬의 /mnt 디렉토리로 마운트해서 사용가능

People

Advisor

Prof. Hyunchan Park

 

Operating systems, Storage systems, Virtualization, Solid-state drives, Block chain

hyunchan.park at jbnu ac kr

Students (undergraduate course)

Ye-jin Seo

Cloud Computing

yjin9187 at naver com

 

Yun-jeong Jang

Cloud Computing, Big Data

rhdtls1206 at jbnu ac kr

Young-hun Go

Algorithm, Machine Learning

dmsqh423 at jbnu ac kr

Yoseph Kim

Operating System, File System

kjs940207 at gmail com

Alumni

Seung-ji Chu

Operating systems, NVMe SSD, ML

csgm2328 at gmail com

 

Hyeong-jung Kim

Cloud Computing, Security

gaegom0209 at gmail com

 

Chang-heon Lee

Deep Learning, AI, Game

2ch1999 at naver com

 

Ji-min Choi

 

 

Jun-hue Jang

 

 

Ju-yong Seong

 

 

Joona Yoon

Operating systems, Algorithm

joona at jbnu ac kr

 

Publications

International

[12] Hyunchan Park, and Young Pil Kim,
“CLIK: Cloud-based Linux kernel practice environment and judgment system.,”

Computer Applications in Engineering Education, vol.8, pp.59315-59325, 23 Mar. 2020
(doi: 10.1109/cae.22289, SCI Indexed, IF: 1.435, Category rank: 49.43% in JCR 2018)

 

[11] Hyunchan Park, Young Pil Kim, and Seehwan Yoo,
“AvaTar: Zero-Copy Archiving With New Kernel-Level Operations,”

IEEE Access, vol.8, pp.59315-59325, 23 Mar. 2020
(doi: 10.1109/ACCESS.2020.2982688, SCI Indexed, IF: 4.098, Category rank: 14.52% in JCR 2018)

 

[10] Hyunchan Park, Munkyu Lee, and Cheol Ho Hong
“FirepanIF: High performance host-side flash cache warm-up method in cloud computing,”

Applied Sciences, vol.10, no.3, Article ID 1014, Feb. 2020
(doi: 10.3390/app10031014, SCI Indexed, IF: 2.217, Category rank: 44.93% in JCR 2018)

 

[9] Cheol Ho Hong, Kyungwoon Lee, Jaehyun Hwang, Hyunchan Park, and Chuck Yoo,
“Kafe: Can OS Kernels Forward Packets Fast Enough for Software Routers?,”

IEEE/ACM Transactions on Networking, vol.26, no.6, pp.2734-2747, Nov. 2018
(doi: 10.1109/TNET.2018.2879752, SCI Indexed, IF: 3.110, Category rank: 10.58% in JCR 2016)

 

[8] Young Pil Kim, Hyunchan Park, Cheol Ho Hong, and Chuck Yoo,
“CRIM: Conditional Remapping to Improve the Reliability of Solid-State Drives with Minimizing Lifetime Loss,”

Scientific Programming, vol. 2018, Article ID 8171096, 10 pages, Sep. 2018
(doi: 10.1155/2018/8171096, SCI Indexed, IF: 1.344, Category rank: 49.52% in JCR 2017)

 

[7] Cheol Ho Hong, Young Pil Kim, Hyunchan Park, and Chuck Yoo,
“Synchronization support for parallel applications in virtualized clouds,”

Journal of Supercomputing, vol.72, no.9, pp.3348-3365, Sep. 2016
(doi: 10.1007/s11227-015-1476-y, SCI Indexed, IF: 0.870, Category rank: 46.08% in JCR 2015)

 

[6] Hyunchan Park, Seehwan Yoo, Cheol-Ho Hong, Chuck Yoo,
“Storage SLA Guarantee with Novel SSD I/O Scheduler in Virtualized Data Centers,”

IEEE Transactions on Parallel and Distributed Systems, vol.27, no.8, pp.2422-2434, Aug. 2016
(doi: 10.1109/TPDS/2015.2493524, SCI Indexed, IF: 2.661, Category rank: 8.60% in JCR 2015)

 

[5] Cheol-Ho Hong, Kyungwoon Lee, Hyunchan Park, Chuck Yoo,
“ANCS: Achieving QoS through Dynamic Allocation of Network Resources in Virtualized Clouds,”

Scientific Programming, Jun. 2016
(doi: 10.1155/2016/4708195, SCI Indexed, IF: 0.455, Category rank: 89.60% in JCR 2015)

 

[4] Hyunchan Park, Hanchan Jo, Cheol-Ho Hong, Young-Pil Kim, Seehwan Yoo, and Chuck Yoo,
“SSD-Tailor: Automated Customization System for Solid-State Drives,”
IEEE Transactions on Computer-Aided Design of Integrated Circuits and Systems, vol.34, no.5, pp.862-866, May. 2015
(doi: 10.1109/TCAD.2015.2394500, SCI Indexed, IF: 1.003, Category rank: 46.00% in JCR 2014)

 

[3] Hyunchan Park, Sam H. Noh, and Chuck Yoo,
“O1FS: Flash file system with O(1) crash recovery time,”

Journal of Systems and Software, vol.97, pp.86-96, Nov. 2014
(doi: 10.1016/j.jss.2014.07.008, SCIE Indexed, IF: 1.245, Category rank: 28.43% in JCR 2013)

 

[2] Hyunchan Park and Chuck Yoo,
“Effect of buffer cache on storage performance in virtualised environment,”

IET Electronics Letters , vol.49, no.4, pp.251-253, Feb. 2013
(doi: 10.1049/el.2012.4069, SCI Indexed, IF: 1.038, Category rank: 52.67% in JCR 2012)

[1] Seehwan Yoo, Chuck Yoo, and Hyunchan Park,
“Fairness of proportional work-conserving I/O scheduling,”

IET Electronics Letters , vol.48, no.12, pp.682-684, Jun. 2012
(doi: 10.1049/el.2012.0261, SCI Indexed, IF: 0.965 Category rank: 53.47% in JCR 2011)

 

Domestic

Under construction

Patents

Under construction

Contact

Feel free to contact us! 

e-mail

hyunchan.park at jbnu ac kr​

Tel

+82-63-270-3932​

Fax

+82-63-270-2394 (shared)

Lab

공과대학 7호관 533호 (Room 533, Engineering Building 7)

Advisor’s Office

공과대학 7호관 626호 (Room 626, Engineering Building 7)

Division of Compter Science and Engineering,
Jeonbuk National University,
Room 626, Engineering Building 7,
Dukjin-dong 1Ga 661-14, Dukjin-gu, Jeonju, Jeonbuk 54896, Korea