'RAID'에 해당하는 글 3건

레이드 구성시 Build/Verify 선택하여 진행후 바로 리부팅하여 하드를 사용을 한다.
clear 선택시는 레이드가 complete 되어야 사용가능하다. quick init 은 비권장이다.
나중에 하드 문제 발생할 경우 문제가 발생한다.




What is the difference between Build / Verify, Clear, Quick Init and Skip Init when creating an array using one of the listed RAID controllers? 


This information applies to the following Operating System(s): 
- This information is not Operating System specific
Answer
When creating a redundant RAID array using one of the HostRAID controllers (1220SA, 1225SA, 1420SA, 1430SA, 44300, 48300, 58300) listed, there are 3 choices for the Build method: 
- Build / Verify 
- Clear 
- Quick Init 

When creating a redundant RAID array using one of the Hardware RAID controllers listed, there are 4 choices for the Build method: 
- Build / Verify 
- Clear 
- Quick Init 
- Skip Init 

The differences between these options are listed below. If unsure of which option to use, it is recommended to choose "Build / Verify". 

Build / Verify 
  • Array is available for use immediately. The Build operation continues in the background. Therefore, an operating system installation may begin while the array is going through the Build process, although performance will be impacted until the process has completed.
  • Creates parity/redundancy for each disk in the array. Example: For a RAID 1 logical drive, data is copied from the source drive to the mirrored drive. For RAID 5 and RAID 6, parity is computed and written.
  • A Build can take up to 20x longer than Clear (due to parity generation).

Clear 
  • Array is not available to use until the operation completes.
  • Fastest way to set the disks into a known good state.
  • Writes only zeroes to the disk. 
    Although no real redundancy/parity is created, all disk sectors contain zeroes (no data) so none is required. Any future write operations will create required redundancy.

Quick Init 
  • Array is available for use immediately.
  • Only creates metadata on member disks of the array, the build process is bypassed, the first few and last blocks in the user addressable area (incl. partition tables) will be wiped off. While this is the fastest method for creating a RAID array, it is only recommended for use with new drives. Performance will be impacted while the logical drive is in Quick Init mode until a Verify with Fix is performed from the Adaptec / ICP Storage Manager software.
  • For striped arrays (such as RAID 0, RAID 10, RAID 50, RAID 60), write performance is affected when less than a full stripe is written. The array remains in full-stripe write mode until a Verify with fix operation is completed to validate redundant information.
  • Default Setting for RAID 1, RAID 1EE, and RAID 10 arrays.

Skip Init 
  • Updates metadata only.
  • If multiple disk drives fail in the same logical device, it may be possible to recover the data by recreating the logical device without the initialization step (skip init). Omitting the initialization step reconstructs the logical device metadata without modifying or destroying other data on the disks.
  • Not available on HostRAID (1220SA, 1225SA, 1420SA, 1430SA, 44300, 48300, 58300) controllers.
http://ask.adaptec.com/scripts/adaptec_tic.cfg/php.exe/enduser/std_adp.php?p_faqid=10062&p_created=1065098797&p_topview=1

저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
Creative Commons License

'서버관리' 카테고리의 다른 글

하드 모델명 확인  (0) 2012.12.14
불법 접근 차단하기  (0) 2012.12.13
Adaptec Raid Controller Build options  (0) 2012.12.13
취약한 cgi 프로그램 perl 예시  (0) 2012.12.13
아파치 모듈 확인하기  (0) 2012.12.12
로그 파일에 대해  (0) 2012.12.12

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글이 없습니다.
secret

OMSA


 the Dell OpenManage Linux Repository.

 

설치 os: 

cat /etc/redhat-release 
CentOS release 5.8 (Final)

2.6.18-308.1.1.el5 i686

 

파티션 구성

Disk /dev/sda: 1499.2 GB, 1499212021760 bytes
255 heads, 63 sectors/track, 182268 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1288 10241437+ 83 Linux
/dev/sda3 1289 1543 2048287+ 82 Linux swap / Solaris
/dev/sda4 1544 182268 1451673562+ 83 Linux

Disk /dev/sdb: 1499.2 GB, 1499212021760 bytes
255 heads, 63 sectors/track, 182268 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sdb1 1 182268 1464067678+ 83 Linux

 

How to set up

Yum setup

 

  1. Set up the Dell OpenManage Repository at http://linux.dell.com/repo/hardware, like this:
    wget -q -O - http://linux.dell.com/repo/hardware/latest/bootstrap.cgi | bash

    Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-dell
    Importing key into RPM.
    Downloading GPG key: http://linux.dell.com/repo/hardware/latest/RPM-GPG-KEY-libsmbios
    Importing key into RPM.
    Write repository configuration
    Downloading repository RPM
    Installing repository rpm: http://linux.dell.com/repo/hardware/latest/platform_independent/rh50/prereq/dell-omsa-repository-2-5.noarch.rpm
    Installing yum plugins for system id
    Loaded plugins: fastestmirror
    Determining fastest mirrors
    * base: ftp.daum.net
    * extras: ftp.daum.net
    * updates: ftp.daum.net
    base | 1.1 kB 00:00 
    dell-omsa-indep | 1.9 kB 00:00 
    dell-omsa-indep/primary_db | 292 kB 00:01 
    dell-omsa-specific | 1.9 kB 00:00 
    dell-omsa-specific/primary_db | 292 kB 00:01 
    extras | 1.9 kB 00:00 
    extras/primary_db | 172 kB 00:00 
    updates | 1.9 kB 00:00 
    updates/primary_db | 862 kB 00:00 
    Setting up Install Process
    Resolving Dependencies
    --> Running transaction check
    ---> Package yum-dellsysid.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: smbios-utils-python >= 2.2.0 for package: yum-dellsysid
    --> Running transaction check
    ---> Package smbios-utils-python.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: python-smbios = 2.2.27-4.12.1.el5 for package: smbios-utils-python
    --> Running transaction check
    ---> Package python-smbios.i386 0:2.2.27-4.12.1.el5 set to be updated
    --> Processing Dependency: libsmbios = 2.2.27-4.12.1.el5 for package: python-smbios
    --> Processing Dependency: python-ctypes for package: python-smbios
    --> Running transaction check
    ---> Package libsmbios.i386 0:2.2.27-4.12.1.el5 set to be updated
    ---> Package python-ctypes.i386 0:1.0.2-4.35.1.el5 set to be updated
    --> Finished Dependency Resolution

    Dependencies Resolved

    ===========================================================================================================================================================
    Package Arch Version Repository Size
    ===========================================================================================================================================================
    Installing:
    yum-dellsysid i386 2.2.27-4.12.1.el5 dell-omsa-indep 16 k
    Installing for dependencies:
    libsmbios i386 2.2.27-4.12.1.el5 dell-omsa-specific 1.5 M
    python-ctypes i386 1.0.2-4.35.1.el5 dell-omsa-specific 210 k
    python-smbios i386 2.2.27-4.12.1.el5 dell-omsa-specific 70 k
    smbios-utils-python i386 2.2.27-4.12.1.el5 dell-omsa-specific 63 k

    Transaction Summary
    ===========================================================================================================================================================
    Install 5 Package(s)
    Upgrade 0 Package(s)

    Total download size: 1.8 M
    Downloading Packages:
    (1/5): yum-dellsysid-2.2.27-4.12.1.el5.i386.rpm | 16 kB 00:00 
    (2/5): smbios-utils-python-2.2.27-4.12.1.el5.i386.rpm | 63 kB 00:00 
    (3/5): python-smbios-2.2.27-4.12.1.el5.i386.rpm | 70 kB 00:00 
    (4/5): python-ctypes-1.0.2-4.35.1.el5.i386.rpm | 210 kB 00:01 
    (5/5): libsmbios-2.2.27-4.12.1.el5.i386.rpm | 1.5 MB 00:02 
    -----------------------------------------------------------------------------------------------------------------------------------------------------------
    Total 208 kB/s | 1.8 MB 00:08 
    Running rpm_check_debug
    Running Transaction Test
    Finished Transaction Test
    Transaction Test Succeeded
    Running Transaction
    Installing : libsmbios 1/5 
    Installing : python-ctypes 2/5 
    Installing : python-smbios 3/5 
    Installing : smbios-utils-python 4/5 
    Installing : yum-dellsysid 5/5

    Installed:
    yum-dellsysid.i386 0:2.2.27-4.12.1.el5

    Dependency Installed:
    libsmbios.i386 0:2.2.27-4.12.1.el5 python-ctypes.i386 0:1.0.2-4.35.1.el5 python-smbios.i386 0:2.2.27-4.12.1.el5 
    smbios-utils-python.i386 0:2.2.27-4.12.1.el5

    Complete!
    Loaded plugins: dellsysid, fastestmirror
    No plugin match for: rhnplugin
    Cleaning up Everything
    Cleaning up list of fastest mirrors
    Done!


     
  2. Optional Install OpenManage Server Administrator:
    yum install srvadmin-all

     

 

실행
/opt/dell/srvadmin/sbin/srvadmin-services.sh start

접속확인:
https://아이피:1311

root 계정으로 접속함.

디스크 장애 복구는 아래 url 확인.


command line interface


root@backup /opt/dell/srvadmin/bin
05:37 PM 
root # ./omconfig storage -?

storage Set storage component properties.

The available command(s) are:

Command Description
adisk Supports array disk configuration commands. DEPRECATED: please use pdisk
pdisk Supports physical disk configuration commands.
vdisk Supports virtual disk configuration commands.
controller Supports controller configuration commands.
enclosure Supports enclosure configuration commands.
battery Supports battery configuration commands.
globalinfo Supports global storage configuration commands.
connector Supports connector configuration commands.
cachecade Supports cachecade(s) configuration commands.

Usage: omconfig <command...> [name=value...] ... [option...]

Valid command line options are:

-? Print available command(s) or command help.
-fmt <lst|xml> Format for output results, default is lst.
Where: lst List format.
xml Raw XML format.
-outc <file> Redirect output to file, delete old if exists.
OR
-outa <file> Redirect output to file, append to old if exists.
OR
Output may also be redirected using Operating System facilities (e.g. |more).

 

 

체크 명령:

/opt/dell/srvadmin/bin/omreport storage pdisk controller=0

 

아래 스크립트를 이용해서 체크하면 된다.

<?
$check =`/opt/dell/srvadmin/bin/omreport storage pdisk controller=0 | grep "^Status" | wc -l`;
//echo $check;
if(trim($check) ==6){
echo "pass";
}else{
 // 알림설정.
}
?>

저작자 표시 비영리 동일 조건 변경 허락
신고
크리에이티브 커먼즈 라이선스
Creative Commons License

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

트랙백이 하나이고 , 댓글이 없습니다.
secret
os: centos5.4


SATA 1T ( /dev/sdb1 ) , SATA 1T (/dev/sdc1) raid1로 구성하기

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes




1 . 파일시스템 fd : Linux raid autodetect 로 잡는다.


# fdisk /dev/sdb

The number of cylinders for this disk is set to 121601.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
   (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-121601, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-121601, default 121601):
Using default value 121601

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): l

 0  Empty           1e  Hidden W95 FAT1 80  Old Minix       bf  Solaris
 1  FAT12           24  NEC DOS         81  Minix / old Lin c1  DRDOS/sec (FAT-
 2  XENIX root      39  Plan 9          82  Linux swap / So c4  DRDOS/sec (FAT-
 3  XENIX usr       3c  PartitionMagic  83  Linux           c6  DRDOS/sec (FAT-
 4  FAT16 <32M      40  Venix 80286     84  OS/2 hidden C:  c7  Syrinx
 5  Extended        41  PPC PReP Boot   85  Linux extended  da  Non-FS data
 6  FAT16           42  SFS             86  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS       4d  QNX4.x          87  NTFS volume set de  Dell Utility
 8  AIX             4e  QNX4.x 2nd part 88  Linux plaintext df  BootIt
 9  AIX bootable    4f  QNX4.x 3rd part 8e  Linux LVM       e1  DOS access
 a  OS/2 Boot Manag 50  OnTrack DM      93  Amoeba          e3  DOS R/O
 b  W95 FAT32       51  OnTrack DM6 Aux 94  Amoeba BBT      e4  SpeedStor
 c  W95 FAT32 (LBA) 52  CP/M            9f  BSD/OS          eb  BeOS fs
 e  W95 FAT16 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi ee  EFI GPT
 f  W95 Ext'd (LBA) 54  OnTrackDM6      a5  FreeBSD         ef  EFI (FAT-12/16/
10  OPUS            55  EZ-Drive        a6  OpenBSD         f0  Linux/PA-RISC b
11  Hidden FAT12    56  Golden Bow      a7  NeXTSTEP        f1  SpeedStor
12  Compaq diagnost 5c  Priam Edisk     a8  Darwin UFS      f4  SpeedStor
14  Hidden FAT16 <3 61  SpeedStor       a9  NetBSD          f2  DOS secondary
16  Hidden FAT16    63  GNU HURD or Sys ab  Darwin boot     fb  VMware VMFS
17  Hidden HPFS/NTF 64  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  65  Novell Netware  b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 70  DiskSecure Mult bb  Boot Wizard hid fe  LANstep
1c  Hidden W95 FAT3 75  PC/IX           be  Solaris boot    ff  BBT
Hex code (type L to list codes): fd
Changed system type of partition 1 to fd (Linux raid autodetect)

Command (m for help): p

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1      121601   976760001   fd  Linux raid autodetect

/dev/sdc1 도 동일하게 진행합니다.

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1               1      121601   976760001   fd  Linux raid autodetect


2. mknod /dev/md1 b 9 1

3. mdadm 명령어를 이용해 raid1 구성을 합니다.

# mdadm --create --verbose /dev/md1 --level=1 --raid-devices=2 /dev/sdb1 /dev/sdc1
mdadm: size set to 976759936K
mdadm: array /dev/md1 started.

4. 레이드 묶는거 확인하기

watch -n1 'cat /proc/mdstat'

# cat /proc/mdstat
Personalities : [raid1]
md1 : active raid1 sdc1[1] sdb1[0]
      976759936 blocks [2/2] [UU]
      [>....................]  resync =  0.2% (2698112/976759936) finish=270.3min speed=60042K/sec
     
unused devices: <none>


완료되면 마운트하기 위해 mkfs -j /dev/md1

mkdir /data

mount /dev/md1 /data




### 운영 팁 ###

* 실제 올리기

mdadm --assemble /dev/md1 /dev/sdc1 /dev/sdd1

* 중지

mdadm --stop /dev/md1




하드가 1개 에러가 나서 mdstat 에서 _U 1개만 서비스될때

mdadm /dev/md1 -r /dev/sdd1

fsck /dev/sdd1

mdadm /dev/md1 -a /dev/sdd1
 
---> 여기서는 파일시스템을 체킹했지만, 문제가 발견되었다면 새 하드로 교체합니다.


[root@mail ~]# mdadm --detail --scan
ARRAY /dev/md1 level=raid1 num-devices=2 metadata=0.90 UUID=xxx
ARRAY /dev/md4 level=raid1 num-devices=2 metadata=0.90 UUID=xxx
ARRAY /dev/md2 level=raid1 num-devices=2 metadata=0.90 UUID=xxx
ARRAY /dev/md3 level=raid1 num-devices=2 metadata=0.90 UUID=xxx
ARRAY /dev/md0 level=raid1 num-devices=2 metadata=0.90 UUID=xxx

새로 추가된 부분이 있다면 위에서 조회한것중 아래 파일에서 없다면 복사하여 붙여 넣기 하면 된다.

/etc/mdadm.conf



신고
크리에이티브 커먼즈 라이선스
Creative Commons License

WRITTEN BY
김병국
유용했던 자료를 기록해 두었습니다. 도움이 되시길~~~ Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you fun

받은 트랙백이 없고 , 댓글 하나 달렸습니다.
  1. 하드가 1개 에러가 나서 mdstat 에서 _U 1개만 서비스될때

    mdadm /dev/md1 -r /dev/sdd1

    fsck /dev/sdd1

    mdadm /dev/md1 -a /dev/sdd1


    ^^
secret