Solaris 9 mirror(RAID 1)
Machine : SUN V240
Spec : Solaris 9, 5.9 Release, sun4u(kernel Version), sparc
1. 하드디스크 슬라이스 구성 확인
1-1 0번 디스크 슬라이스 구성 확인
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 0
selecting c1t0d0
[disk formatted]
Warning: Current Disk has mounted partitions.
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
------------------------------------------------------------------------------------------------------------------------
1-2 1번 디스크 슬라이스 구성 확인
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
------------------------------------------------------------------------------------------------------------------------
2. 1번 디스크의 파티션을 0번 디스크의 파티션과 동일하게 구성 (슬라이스 정보 복사 =Disk copy)
# prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2
fmthard: New volume table of contents now in place.
2-1 디스크 레이블(슬라이스) 정보가 같아졌는지 확인
# format
Searching for disks...done
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@0,0
1. c1t1d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
FORMAT MENU:
disk - select a disk
type - select (define) a disk type
partition - select (define) a partition table
current - describe the current disk
format - format and analyze the disk
repair - repair a defective sector
label - write label to the disk
analyze - surface analysis
defect - defect list management
backup - search for backup labels
verify - read and display labels
save - save new disk/partition definitions
inquiry - show vendor, product and revision
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> p
PARTITION MENU:
0 - change `0' partition
1 - change `1' partition
2 - change `2' partition
3 - change `3' partition
4 - change `4' partition
5 - change `5' partition
6 - change `6' partition
7 - change `7' partition
select - select a predefined table
modify - modify a predefined partition table
name - name the current table
print - display the current table
label - write partition map and label to the disk
!<cmd> - execute <cmd>, then return
quit
partition> p
Current partition table (original):
Total disk cylinders available: 24620 + 2 (reserved cylinders)
------------------------------------------------------------------------------------------------------------------------
3. metadb 생성
# metadb -a -f -c 3 c1t0d0s6 c1t1d0s6
옵션 |
|
-a | Attach a new database device (meta database 정보를 add) |
-f | The -f option is used the create the initial static database force (강제로 추가) |
-c | number : Specifiles the number of replicas to be placed on each device (meta database replica(복사본)의 개수 지정) |
-d | 생성되어 있는 metadb 삭제 |
※ metadb : Disksuite의 전체의 config 정보와 metadevice의 상태 정보를 가지고 있는 DB slice당 20M 정도면 충분하고, 최소 2개의 DB 복사본(Replicas)이 요구됨
3-1 metadb 생성 확인
# metadb
flags first blk 블록 개수
a u /dev/dsk/c1t0d0s6
a u /dev/dsk/c1t0d0s6
a u /dev/dsk/c1t0d0s6
a u /dev/dsk/c1t1d0s6
a u /dev/dsk/c1t1d0s6
a u /dev/dsk/c1t1d0s6
-> c1t0d0s6 슬라이스와 c1t1d0s6 슬라이스가 각각 3개씩 생성
4. MetaDB 정보 생성(d11에 c1t0d0s0 할당(원본 1개를 사본 1개만 만듬)
bash-2.05# metainit -f d11 1 1 c1t0d0s0
d11: Concat/스트립이 설정됨
4-1 d12에 c1t1d0s0 할당
bash-2.05# metainit d12 1 1 c1t1d0s0
d12: Concat/스트립이 설정됨
4-2 구성 확인
bash-2.05# metastat -p
d12 1 1 c1t1d0s0
d11 1 1 c1t0d0s0
4-3 d21에 c1t0d0s1 , d22에 c1t1d0s1 할당
bash-2.05# metainit -f d21 1 1 c1t0d0s1
d21: Concat/스트립이 설정됨
bash-2.05#
bash-2.05# metainit d22 1 1 c1t1d0s1
d22: Concat/스트립이 설정됨
4-4 구성확인
bash-2.05# metastat -p
d22 1 1 c1t1d0s1
d21 1 1 c1t0d0s1
d12 1 1 c1t1d0s0
d11 1 1 c1t0d0s0
5 이중화 설정
bash-2.05# metainit d10 -m d11
d10: 이중화가 설정됨
bash-2.05# metainit d20 -m d21
d20: 이중화가 설정됨
5-1 이중화 설정 확인
bash-2.05# metastat -p
d20 -m d21 1
d21 1 1 c1t0d0s1
d10 -m d11 1
d11 1 1 c1t0d0s0
d22 1 1 c1t1d0s1
d12 1 1 c1t1d0s0
6 metaroot 설정전 ( /etc/vfstab 설정 확인)
bash-2.05# cat /etc/vfstab
7 metaroot 설정
bash-2.05# metaroot d10
7-1 metaroot 설정 후 (/etc/vfstab 확인)
bash-2.05# cat /etc/vfstab
8 /etc/vfstab -> swap 영역 변경
bash-2.05# cat /etc/vfstab
9 재시작
bash-2.05# reboot
10 SubMirror Slice 할당
# metattach d10 d12
d10: 서브미러 d12 is attached
# metattach d20 d22
d20: 서브미러 d22 is attached
11 동기화 확인
# metastat
'SUN(Solaris)' 카테고리의 다른 글
[SUN] Solaris9 mirror(RAID 1) 해제 (0) | 2020.08.17 |
---|---|
[SUN] Solaris IPMP (0) | 2020.08.15 |
[SUN] Solaris showenvironment (0) | 2020.08.14 |
[SUN] Solaris vmstat (0) | 2020.08.13 |
[SUN] Solaris System 기본 점검 (0) | 2020.08.13 |