1. SAN & NAS Storage Mount

1.1 SAN & Local DISK

1.1.1 SAN

SAN (Storage Area Network) ์Šคํ† ๋ฆฌ์ง€ ์žฅ์น˜๋ฅผ ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ์ด์šฉํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. SAN์€ ์›๊ฒฉ์—์žˆ๋Š” ๋””์Šคํฌ ์žฅ์น˜์˜ ๋””์Šคํฌ๋ฅผ ๋งˆ์น˜ ๋กœ์ปฌ ๋””์Šคํฌ์ฒ˜๋Ÿผ ๋‹ค๋ฃฐ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ฆ‰, ํด๋ผ์ด์–ธํŠธ๋Š” ๋ธ”๋ก ์žฅ์น˜๋กœ ์ทจ๊ธ‰ํ•˜๋ฏ€๋กœ ํด๋ผ์ด์–ธํŠธ OS์— ์ ํ•ฉํ•œ ํŒŒ์ผ ์‹œ์Šคํ…œ์„ ๊ตฌ์ถ•ํ•˜์—ฌ ์‚ฌ์šฉํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋˜ํ•œ SAN์€ ๊ณ ์† ํŒŒ์ด๋ฒ„ ์ฑ„๋„ ๋“ฑ ์Šคํ† ๋ฆฌ์ง€ ์ „์šฉ ๋„คํŠธ์›Œํฌ๋ฅผ ์ด์šฉํ•˜๊ณ  ์žˆ๊ธฐ ๋•Œ๋ฌธ์—, ๋†’์€ ์ž…์ถœ๋ ฅ ์„ฑ๋Šฅ์ด ์š”๊ตฌ๋˜๋Š” ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค ๋ฐ HPC ๋“ฑ์˜ ์šฉ๋„์˜ ์Šคํ† ๋ฆฌ์ง€์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

1.1.2 Local DISK

Local DISK๋Š” ์ผ๋ฐ˜์ ์œผ๋กœ ํ˜ธ์ŠคํŠธ ๋ฒ„์Šค ์–ด๋Œ‘ํ„ฐ (๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•˜์ง€ ์•Š๊ณ  ํ˜ธ์ŠคํŠธ ์„œ๋ฒ„์— ์ง์ ‘ ์ €์žฅ ์žฅ์น˜์™€ ๋„คํŠธ์›Œํฌ ์žฅ๋น„๋ฅผ ์—ฐ๊ฒฐํ•˜๋Š” ํ•˜๋“œ์›จ์–ด)๋ฅผ ํ†ตํ•ด ์ง์ ‘ ์ปดํ“จํ„ฐ ๋ณธ์ฒด์— ์—ฐ๊ฒฐ๋œ ์Šคํ† ๋ฆฌ์ง€์ž…๋‹ˆ๋‹ค. ์ผ๋ฐ˜์ ์œผ๋กœ HARD DISK๋ผ๊ณ  ๋ถ€๋ฅด๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

Local DISK, SAN๊ณผ NAS๋Š” ๊ธฐ์ˆ ์ ์ธ ๋ฒ”์ฃผ์—์„œ ๋งํ•˜๋ฉด ๋ฐ˜๋Œ€๋˜๋Š” ๊ฐœ๋…์ด์ง€๋งŒ, ์—ฌ๊ธฐ์— ํ•˜๋‚˜์˜ Posting์—์„œ ๋‹ค๋ฃจ๊ณ  ์žˆ๋Š” ์ด์œ ๋Š” ๊ทธ ์šฉ๋„๊ฐ€ ๋™์ผํ•˜๊ธฐ ๋•Œ๋ฌธ์ž…๋‹ˆ๋‹ค. SoftLayer๋Š” ์„œ๋ฒ„์˜ ๊ธฐ๋ณธ ์Šคํ† ๋ฆฌ์ง€๋กœ SAN๊ณผ Local DISK๋ฅผ ๋ฐฐ์น˜ํ•˜๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค.

SoftLayer๋Š” FISRT DISK (OS ์˜์—ญ) ๋ฐ ํ™•์žฅ DISK๋ฅผ SAN ๋˜๋Š” Local DISK ์ค‘ ํ•˜๋‚˜์—์„œ ์„ ํƒํ•˜๋„๋ก ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค.

1.1.3 FIRST DISK (Root ๋ณผ๋ฅจ : OS ์˜์—ญ) ์„ ํƒ

FIRST DISK๋Š” Root ๋ณผ๋ฅจ (OS ์˜์—ญ)์—์„œ SAN๊ณผ Local์—์„œ 25GB ๋˜๋Š” 100GB ์ค‘ ํ•˜๋‚˜๋ฅผ ์„ ํƒํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

1.1.4 ํ™•์žฅ DISK (SECOND-FIFTH) ์ถ”๊ฐ€

Virtual Machine์€ FIRST DISK ์™ธ์— 4 ๊ฐœ์˜ DISK๋ฅผ ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. SAN๊ณผ Local์—์„œ ์„ ํƒํ•  ์ˆ˜ ์žˆ์ง€๋งŒ, ์„ ํƒํ•  ์ˆ˜ ์žˆ๋Š” ์ตœ๋Œ€ ํฌ๊ธฐ๊ฐ€ ๋‹ค๋ฆ…๋‹ˆ๋‹ค.

[SAN]

[Local]

์ธ์Šคํ„ด์Šค๋ฅผ ์‹œ์ž‘ํ•œ ํ›„์—๋„ ํ™•์žฅ DISK ์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์ธ์Šคํ„ด์Šค ์‹œ์ž‘ ํ›„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ํ•ด๋‹น ์ธ์Šคํ„ด์Šค ์Šคํ† ๋ฆฌ์ง€๋ฅผ ๋ณ€๊ฒฝ/์ถ”๊ฐ€ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋‹จ, ์ธ์Šคํ„ด์Šค ์‹œ์ž‘ ํ›„ ํ™•์žฅ ๊ฐ€๋Šฅํ•œ DISK์˜ ์ข…๋ฅ˜๋Š” SAN์œผ๋กœ๋งŒ ํ•œ์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค.

1.1.5 ํ™•์žฅ DISK ๋งˆ์šดํŠธ / ์–ธ ๋งˆ์šดํŠธ

Server1 / Server2

ํ™•์žฅ DISK๋Š” ์ธ์Šคํ„ด์Šค์— ๋ธ”๋ก ์žฅ์น˜๋กœ ๋งˆ์šดํŠธ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋‚˜ ํ™•์žฅ DISK ์žฅ์น˜๋กœ ์—ฐ๊ฒฐ ๋˜์–ด์žˆ๊ธฐ ๋•Œ๋ฌธ์— ๋งˆ์šดํŠธ๋Š” ์‚ฌ์šฉ์ž๊ฐ€ ์ง์ ‘ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

์•„๋ž˜ ๋ช…๋ น์–ด๋กœ ํ™•์ธ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

# df -h
Filesystem Size Used Avail Use % Mounted on
/ dev / xvda2 25G 1.2G 23G 5 % /
tmpfs 497M 0 497M 0 % / dev / shm
๋งˆ์šดํŠธ๋˜์–ด ์žˆ์ง€ ์•Š๊ธฐ ๋•Œ๋ฌธ์— ๋ณด์ด์ง€ ์•Š์Šต๋‹ˆ๋‹ค..

# mount
/ dev / xvda2 on / type ext3 (rw, noatime)
proc on / proc type proc (rw)
sysfs on / sys type sysfs (rw)
devpts on / dev / pts type devpts (rw, gid = 5, mode = 620)
tmpfs on / dev / shm type tmpfs (rw)
/ dev / xvda1 on / boot type ext3 (rw, noatime)
none on / proc / sys / fs / binfmt_misc type binfmt_misc (rw)
none on / proc / xen type xenfs (rw)
์žฅ์น˜ ๋ชฉ๋ก์„ ๋ณด๋ฉด ์—ฐ๊ฒฐ๋˜์–ด ์žˆ๋Š” ๊ฒƒ์„ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

# fdisk -l

… ์ค‘๋žต …
Disk / dev / xvdc : 10.7 GB, 10737418240 bytes
255 heads, 63 sectors / track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical / physical) : 512 bytes / 512 bytes
I / O size (minimum / optimal) : 512 bytes / 512 bytes
Disk identifier : 0x00000000
… ์ค‘๋žต …
DISK๋ฅผ ํฌ๋งท
# mkfs.ext4 / dev / xvdc

๋งˆ์šดํŠธ ํฌ์ธํŠธ ์ž‘์„ฑ
# mkdir / mnt / san2

๋งˆ์šดํŠธ ์ˆ˜ํ–‰
# mount -t ext4 / dev / xvdc / mnt / san2

๋งˆ์šดํŠธ ๊ฒฐ๊ณผ ํ™•์ธ

# df -h
Filesystem Size Used Avail Use % Mounted on
/ dev / xvda2 25G 1.1G 23G 5 % /
tmpfs 497M 0 497M 0 % / dev / shm
/ dev / xvda1 248M 56M 180M 24 % / boot
/ dev / xvdc 9.9G 151M 9.2G 2 % / mnt / san2
์˜จ ๋ถ€ํŠธ ๋งˆ์šดํŠธ ์„ค์ •

# vi / etc / fstab
/ dev / xvdc / mnt / san2 ext3 defaults 0 0

1.1.6 ํ™•์žฅ DISK ๊ด€๋ฆฌ

ํ™•์žฅ DISK ๊ด€๋ฆฌ๋Š” ๋ฉ”์ธ ๋ฉ”๋‰ด์—์„œ Storage โ†’ Portable Storage์—์„œ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค. ์ธ์Šคํ„ด์Šค์—์„œ DISK๋ฅผ ๋ถ„๋ฆฌ/๋ถ€์ฐฉ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

๋ถ„๋ฆฌ ๋œ DISK๋Š” ๋‹ค๋ฅธ ์ธ์Šคํ„ด์Šค์— ๋ถ€์ฐฉ ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

1.1.7 ํ™•์žฅ DISK ๋ฐฑ์—…

ํ™•์žฅ DISK๋Š” FIRST DISK ํ•จ๊ป˜ ์Šค๋ƒ… ์ƒท์„ ์ฐ์„ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ํ™•์žฅ DISK์™€ ํ•จ๊ป˜ ์Šค๋ƒ… ์ƒท์„ ์ฐ์€ ํ…œํ”Œ๋ฆฟ์—์„œ ์„œ๋ฒ„๋ฅผ ์‹œ์ž‘ํ•˜๋ฉด DISK ๊ตฌ์„ฑ๊ณผ ๋ฐ์ดํ„ฐ์˜ ๋‚ด์šฉ์ด ๊ทธ๋Œ€๋กœ ๋ณต์›๋ฉ๋‹ˆ๋‹ค.

Disk-backup

EVault ๋“ฑ์˜ ์ œํ’ˆ์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์ง€๋งŒ ๊ทธ๊ฒƒ์€ ๋‹ค๋ฅธ Posting์—์„œ ์„ค๋ช…ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค.

1.1.8 ์ธ์Šคํ„ด์Šค ์ทจ์†Œ์‹œ์ฃผ์˜ ์‚ฌํ•ญ

ํ™•์žฅ DISK๋ฅผ ์—ฐ๊ฒฐ ํ•œ ์ƒํƒœ์—์„œ ์ธ์Šคํ„ด์Šค๋ฅผ ์ทจ์†Œํ•˜๋ฉด ํ™•์žฅ DISK๋„ ํ•จ๊ป˜ ์‚ฌ๋ผ์ง‘๋‹ˆ๋‹ค. SAN ๋””์Šคํฌ๋ฅผ ์œ ์ง€ํ•˜๋ ค๋ฉด ์ธ์Šคํ„ด์Šค์—์„œ ๋ฏธ๋ฆฌ ๋ถ„๋ฆฌํ•ด ๋‘์–ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.

1.2 NAS (Network Attatched Storage)

1.2.1 NAS

์Šคํ† ๋ฆฌ์ง€ ์žฅ์น˜๋ฅผ ๋„คํŠธ์›Œํฌ๋ฅผ ํ†ตํ•ด ์ด์šฉํ•˜๋Š” ๋ฐฉ์‹์ž…๋‹ˆ๋‹ค. ๋„คํŠธ์›Œํฌ ์Šคํ† ๋ฆฌ์ง€๋ผ๊ณ  ํ•˜๋Š” ๊ฒƒ์€ SAN๋„ ๋™์ผํ•˜์ง€๋งŒ NAS๋Š” ํŒŒ์ผ ๋‹จ์œ„๋กœ ์ฒ˜๋ฆฌํ•ฉ๋‹ˆ๋‹ค.

์ผ๋ฐ˜์ ์œผ๋กœ CIFS ๋ฐ NFS์™€ ๊ฐ™์€ ํ‘œ์ค€ ๋„คํŠธ์›Œํฌ ํŒŒ์ผ ๊ณต์œ  ํ”„๋กœํ† ์ฝœ์„ ํ†ตํ•ด ๋„คํŠธ์›Œํฌ์ƒ์˜ ํด๋ผ์ด์–ธํŠธ์— ๊ณต์œ  ์Šคํ† ๋ฆฌ์ง€ ์„œ๋น„์Šค๋ฅผ ์ œ๊ณตํ•ฉ๋‹ˆ๋‹ค.

์„ฑ๋Šฅ๋ฉด์—์„œ๋Š” SAN๋ณด๋‹ค ๋Š๋ฆฌ์ง€๋งŒ, ์„ค์ • ๋ฐ ๊ด€๋ฆฌ๊ฐ€ ๋งค์šฐ ๊ฐ„๋‹จํ•˜๊ณ  ํŒŒ์ผ ์„œ๋ฒ„ ๋“ฑ์— ์ ํ•ฉํ•ฉ๋‹ˆ๋‹ค.

1.2.2 NAS ๋งŒ๋“ค๊ธฐ

๋ฉ”์ธ ๋ฉ”๋‰ด์—์„œ Storage โ†’ NAS โ†’ Order NAS๋ฅผ ์„ ํƒํ•˜์‹ญ์‹œ์˜ค.

Order-nas

Location San Jose ํ™ˆ ๋ฐ์ดํ„ฐ ์„ผํ„ฐ๋ฅผ ์„ ํƒ
Select Size 20GB ๋ณผ๋ฅจ ํฌ๊ธฐ๋ฅผ ์„ ํƒ
์„œ๋น„์Šค์— ๋™์˜ ํ•œ ๋‹ค์Œ Place Order๋ฅผ ๋ˆ„๋ฅด์‹ญ์‹œ์˜ค.

๋งŒ๋“  NAS๋Š” ๋ฉ”์ธ ๋ฉ”๋‰ด์—์„œ Storage โ†’ NAS]์—์„œ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ๋˜ํ•œ ๋ชฉ๋ก์„ ํด๋ฆญํ•˜๋ฉด ๊ธฐ๋ณธ ์•”ํ˜ธ๋ฅผ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

Nas-list

NAS์˜ ์ƒํƒœ๋Š” PING์œผ๋กœ ํ™•์ธํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

ping nas501.service.softlayer.com

1.2.3 NAS ๋งˆ์šดํŠธ

Server1 / server2์—์„œ ๊ฐ๊ฐ CIFS (Common Internet File System) ๊ด€๋ฆฌ ์œ ํ‹ธ๋ฆฌํ‹ฐ๋ฅผ ์„ค์น˜ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค.
[root @ server1 ~] # yum install cifs-utils -y
๋งˆ์šดํŠธ ํฌ์ธํŠธ ์ž‘์„ฑ
[root @ server1 ~] # mkdir / mnt / nas
NAS๋Š” ๋„คํŠธ์›Œํฌ ์Šคํ† ๋ฆฌ์ง€์ด๋ฏ€๋กœ URL์ด ์ƒ์„ฑ๋ฉ๋‹ˆ๋‹ค. ๋ชฉ๋ก์„ ํด๋ฆญํ•˜๋ฉด ์•ก์„ธ์Šค๋ฅผ์œ„ํ•œ ์•”ํ˜ธ๋ฅผ ๋ณผ ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค.

UserName SLnnnnnn-n ๊ณ„์ • ID ๋ฐ ์ผ๋ จ ๋ฒˆํ˜ธ
Hostname nas501.service.softlayer.com SoftLayer์˜ ์ธํ„ฐ๋„ ๋„คํŠธ์›Œํฌ
Password ******** ๋น„๋ฐ€๋ฒˆํ˜ธ

NAS ๋งˆ์šดํŠธ
[root @ server1 ~] # mount -t cifs //nas501.service.softlayer.com/SLnnnnnn-n -o username = SLnnnnnn-n, password = ********, rw, nounix, iocharset = utf8 , file_mode = 0664 dir_mode = 0755 / mnt / nas
๋งˆ์šดํŠธ ๊ฒฐ๊ณผ ํ™•์ธ

[root @ server1 ~] # df -Th
Filesystem Type Size Used Avail Use % Mounted on
/ dev / xvda2 ext3 25G 1.2G 22G 6 % /
tmpfs tmpfs 497M 0 497M 0 % / dev / shm
/ dev / xvda1 ext3 248M 56M 180M 24 % / boot
//nas501.service.softlayer.com/SLnnnnnn-n
cifs 8.0T 6.9T 1.2T 86 % / mnt / nas
/ etc / fstab์— ์˜จ ๋ถ€ํŠธ ๋งˆ์šดํŠธ ์„ค์ •. (์„ค์ •ํ•˜์ง€ ์•Š์œผ๋ฉด ์„œ๋ฒ„๋ฅผ ๋‹ค์‹œ ์‹œ์ž‘ํ•  ๋•Œ ๋งˆ์šดํŠธ ํ•ด์ œ๋ฉ๋‹ˆ๋‹ค.)

//nas501.service.softlayer.com/SLnnnnnn-n / mnt / nas cifs defaults, username = SLnnnnnn-n, password = ******** 0 0
๊ฒ€์ฆ์„ ์œ„ํ•ด Server1์—์„œ ๋”๋ฏธ ํŒŒ์ผ์„ ๋งŒ๋“ค๊ณ  ๋ญ”๊ฐ€ ์จ ๋‘ก์‹œ๋‹ค.
[root @ server1 ~] # touch / mnt / nas / testfile
[root @ server1 ~] # ls -l / mnt / nas / testfile
-rw-r – r– 1 root root 0 Apr 1 01:41 / mnt / nas / testfile
[root @ server1 ~] # echo Hello!> / mnt / nas / testfile
๊ทธ๋ฆฌ๊ณ  Server2์—์„œ Server1์— ๊ธฐ๋ก ๋œ ๋‚ด์šฉ์„ ํ™•์ธํ•˜์—ฌ ๋ณด์‹ญ์‹œ์˜ค.

[root @ sever2 ~] # ls -l / mnt / nas
total 4
-rwxr – r– 1 204037 513 7 Apr 1 21:44 testfile
[root @ sever2 ~] # cat / mnt / nas / testfile
Hello!

๋งˆ์šดํŠธ ํ•ด์ œ
[root @ server1 ~] # mount / mnt / nas /

NAS๋Š” Private VLAN์„ ์‚ฌ์šฉํ•˜์—ฌ ํ†ต์‹ ํ•˜๊ณ  SoftLayer์˜ ๋ฐ์ดํ„ฐ ์„ผํ„ฐ ์ „๋ฐ˜์— ์ธ์Šคํ„ด์Šค ๊ฐ„์˜ ํŒŒ์ผ ๊ณต์œ ๊ฐ€ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค.

ํ† ๋ก  ์ฐธ๊ฐ€

์ด๋ฉ”์ผ์€ ๊ณต๊ฐœ๋˜์ง€ ์•Š์Šต๋‹ˆ๋‹ค. ํ•„์ˆ˜ ์ž…๋ ฅ์ฐฝ์€ * ๋กœ ํ‘œ์‹œ๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค