더북(TheBook)

8. stack 디렉터리를 생성했다면 이제 mount 명령어를 이용해 생성한 디렉터리를 마운트합니다. 그리고 stack1에 있는 모든 내용을 stack으로 이동시키고 stack1은 삭제합니다.

root@ubuntu:/opt# mount -a
root@ubuntu:/opt# chmod stack stack
root@ubuntu:/opt# ll
total 12
drwxr-xr-x 3 root root 4096 May 5 20:07 ./
drwxr-xr-x 23 root root 4096 May 15 18:03 ../
drwxr-xr-x 13 stack root 4096 May 5 18:46 stack/
drwxr-xr-x 13 stack root 4096 May 5 18:45 stack1/
mv            stack1/*
              stack/
root@ubuntu:/opt# rm -rf stack1


9. df-h 명령어를 이용해 마운트된 디렉터리를 확인합니다.

root@ubuntu:/opt# df -h
Filesystem Size Used Avail Use% Mounted on
udev 2.0G 0 2.0G 0% /dev
tmpfs 396M 5.8M 390M 2% /run
/dev/sda1 3.9G 3.3G 403M 90% /
tmpfs 2.0G 4.0K 2.0G 1% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/sdb1 20G 922M 18G 5% /opt/stack
cgmfs 100K 0 100K 0% /run/cgmanager/fs
tmpfs 396M 0 396M 0% /run/user/1000
/home/nalee/.Private 3.9G 3.3G 403M 90% /home/nalee


10. 모든 설정이 완료되었습니다. 다시 stack 계정의 데브스택으로 돌아가 ./stack.sh를 실행합니다.

stack@ubuntu:~/devstack$ ./stack.sh
신간 소식 구독하기
뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.