금요일, 2월 13, 2009

XLV 로 디스크 Striping 시키기

간단한건데 안쓰다보면 이건가 저건가하고 아리까리 해진다.

그래서 간단하게 정리하고 넘어가겠다.





전반적인 XLV를 구성한 시스템 구조이다.


IRIS_1 1# hinv
2 250 MHZ IP30 Processors
CPU: MIPS R10000 Processor Chip Revision: 3.4
FPU: MIPS R10010 Floating Point Chip Revision: 0.0
Main memory size: 2048 Mbytes
Xbow ASIC: Revision 1.3
Instruction cache size: 32 Kbytes
Data cache size: 32 Kbytes
Secondary unified instruction/data cache size: 2 Mbytes
Integral SCSI controller 0: Version QL1040B (rev. 2), single ended
Disk drive: unit 1 on SCSI controller 0
Integral SCSI controller 1: Version QL1040B (rev. 2), single ended
Integral SCSI controller 2: Version Fibre Channel AIC-1160, revision 2
Disk drive: unit 0 on SCSI controller 2
Disk drive: unit 1 on SCSI controller 2
Disk drive: unit 2 on SCSI controller 2
Disk drive: unit 3 on SCSI controller 2
Disk drive: unit 4 on SCSI controller 2
Disk drive: unit 5 on SCSI controller 2
Disk drive: unit 6 on SCSI controller 2
Disk drive: unit 7 on SCSI controller 2
Integral SCSI controller 3: Version Fibre Channel AIC-1160, revision 2
IOC3/IOC4 serial port: tty1
IOC3/IOC4 serial port: tty2
IOC3 parallel port: plp1
Graphics board: V6
Integral Fast Ethernet: ef0, version 1, pci 2
Iris Audio Processor: version RAD revision 12.0, number 1

controller 2 에 8개의 디스크로 구성되어 있는것을 XLV 로 Stripe 시키면

IRIS_1 18# xlv_make
xlv_make> vol lv0
lv0
xlv_make> data
lv0.data
xlv_make> plex
lv0.data.0
xlv_make> ve -stripe dks2d0s0 dks2d1s0 dks2d2s0 dks2d3s0 dks2d4s0 dks2d5s0 dks2d6s0 dks2d7s0
lv0.data.0.0
xlv_make> end
Object specification completed
xlv_make> vol lv1
lv1
xlv_make> data
lv1.data
xlv_make> plex
lv1.data.0
xlv_make> ve -force -stripe dks2d0s1 dks2d1s1 dks2d2s1 dks2d3s1 dks2d4s1 dks2d5s1 dks2d6s1 dks2d7s1
lv1.data.0.0
xlv_make> end
Object specification completed
xlv_make> exit
Newly created objects will be written to disk.
Is this what you want?(yes) yes
Invoking xlv_assemble


xlv_mgr
xlv_mgr> show -verbose all
xlv_mgr> exit
mkfs /dev/xlv/lv0
mkfs /dev/xlv/lv1

lv0 과 lv1 을 이제 마운트 해주면 된다.


* 설명하기 귀찮아서 패스하려다가 간단하게 언급하고 넘어가겠다. *
* XLV 로 Stripe 시킬때 중요한것은 파티션 0 과 1 만 만들어주면 되기때문에
아래의 방법대로 안하고 다른 방법으로 만들어줘도 잘 돌아간다. *





위에 그림에서 보면 알수 있듯이 XLV 는 Striping 시켜놨을때 0 과 1 로 2개의 파티션으로 묶어진다.

당연히 fx 작업을 할때 0 과 1 의 파티션을 만들어 주어야만 묶어진다는 말이다.

예를 들어서 disk 4 (SCSI ID 4) on SCSI controller 1

fx 로 파티션을 만들어 줄때

# fx -x
fx version 6.3, Nov 26, 1996
fx: "device-name" = (dksc)
fx: ctlr# = (0) 1
fx: drive# = (1) 4
fx: lun# = (0)
...opening dksc(1,4,0)
...controller test...OK
Scsi drive type == AVID DGHS18U 0210

----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat

fx> l/sh/part

----- partitions-----
part type cyls blocks Megabytes (base+size)
7: xfs 2 + 6404 11190 + 35830380 5 + 17495
8: volhdr 0 + 2 0 + 11190 0 + 5
10: volume 0 + 6406 0 + 35841570 0 + 17501

----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx>
fx> r

----- partitions-----
part type cyls blocks Megabytes (base+size)
7: xfs 2 + 6404 11190 + 35830380 5 + 17495
8: volhdr 0 + 2 0 + 11190 0 + 5
10: volume 0 + 6406 0 + 35841570 0 + 17501

capacity is 35843670 blocks

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive [o]ptiondrive [e]xpert
[u]srrootdrive [re]size
fx/repartition> e


Warning: you will need to re-install all software and restore user data
from backups after changing the partition layout. Changing partitions
will cause all data on the drive to be lost. Be sure you have the drive
backed up if it contains any user data. Continue? y
Enter .. when done
fx/repartition/expert: change partition = (0)
before: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 0 cyls, 0 blks, 0 Mb
fx/repartition/expert: partition type = (volhdr) xfs
fx/repartition/expert: base cyl = (0) 2
fx/repartition/expert: number of cyls (max 6404) = (0) 5000
after: type xfs base: 2 cyls, 11190 blks, 5 Mb
len: 5000 cyls, 27975000 blks, 13660 Mb
fx/repartition/expert: change partition = (1)
before: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 0 cyls, 0 blks, 0 Mb
fx/repartition/expert: partition type = (volhdr) xfs
fx/repartition/expert: base cyl = (0) 5002
fx/repartition/expert: number of cyls (max 1404) = (0) 1404
after: type xfs base: 5002 cyls, 27986190 blks, 13665 Mb
len: 1404 cyls, 7855380 blks, 3836 Mb
fx/repartition/expert: change partition = (6)
before: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 0 cyls, 0 blks, 0 Mb
fx/repartition/expert: partition type = (volhdr)
fx/repartition/expert: base cyl = (0)
fx/repartition/expert: number of cyls (max 6406) = (0)
after: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 0 cyls, 0 blks, 0 Mb
fx/repartition/expert: change partition = (7)
before: type xfs base: 2 cyls, 11190 blks, 5 Mb
len: 6404 cyls, 35830380 blks, 17495 Mb
fx/repartition/expert: partition type = (xfs)
fx/repartition/expert: base cyl = (2)
fx/repartition/expert: number of cyls (max 6404) = (6404) 0
after: type xfs base: 2 cyls, 11190 blks, 5 Mb
len: 0 cyls, 0 blks, 0 Mb
fx/repartition/expert: change partition = (8)
before: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 2 cyls, 11190 blks, 5 Mb
fx/repartition/expert: partition type = (volhdr)
fx/repartition/expert: base cyl = (0)
fx/repartition/expert: number of cyls (max 6406) = (2)
after: type volhdr base: 0 cyls, 0 blks, 0 Mb
len: 2 cyls, 11190 blks, 5 Mb

----- partitions-----
part type cyls blocks Megabytes (base+size)
0: xfs 2 + 5000 11190 + 27975000 5 + 13660
1: xfs 5002 + 1404 27986190 + 7855380 13665 + 3836
8: volhdr 0 + 2 0 + 11190 0 + 5
10: volume 0 + 6406 0 + 35841570 0 + 17501

capacity is 35843670 blocks

----- please choose one (? for help, .. to quit this menu)-----
[ro]otdrive [o]ptiondrive [e]xpert
[u]srrootdrive [re]size

fx/repartition> ..
----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx> l/sync

writing label info to dksc(1,4,0)

----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat
fx> l/se/para


fx/label/set/parameters: Error correction = (enabled)
fx/label/set/parameters: Data transfer on error = (enabled)
fx/label/set/parameters: Report recovered errors = (disabled)
fx/label/set/parameters: Delay for error recovery = (enabled)
fx/label/set/parameters: Err retry count = (1)
fx/label/set/parameters: Transfer of bad data blocks = (disabled)
fx/label/set/parameters: Auto bad block reallocation (write) = (enabled)
fx/label/set/parameters: Auto bad block reallocation (read) = (enabled)
fx/label/set/parameters: Read ahead caching = (enabled)
fx/label/set/parameters: Write buffering = (disabled) enabled
fx/label/set/parameters: Drive disable prefetch = (65535)
fx/label/set/parameters: Drive minimum prefetch = (0)
fx/label/set/parameters: Drive maximum prefetch = (65535)
fx/label/set/parameters: Drive prefetch ceiling = (65535)
fx/label/set/parameters: Number of cache segments = (4)
fx/label/set/parameters: Enable CTQ = (disabled)
fx/label/set/parameters: Read buffer ratio = (1/256)
fx/label/set/parameters: Write buffer ratio = (1/256)
* * * * * W A R N I N G * * * * *
about to modify drive parameters on disk dksc(1,4,0)! ok? y

----- please choose one (? for help, .. to quit this menu)-----
[exi]t [d]ebug/ [l]abel/ [a]uto
[b]adblock/ [exe]rcise/ [r]epartition/ [f]ormat


위와 같이 파티션을 만들어준후 수정해주면 되겠다.

라벨: , , ,


댓글: 댓글 쓰기

에 가입 댓글 [Atom]





<< 홈

This page is powered by Blogger. Isn't yours?

에 가입 덧글 [Atom]