2009. 3. 31. 16:51

Raid server 구성정보 출력

Fedora 10을 설치한 HP xw4400 서버 정보

[root@raid-server home]# df -k
        Filesystem           1K-blocks      Used Available Use% Mounted on
        /dev/md0              25197100   5042740  18874392  22% /
        tmpfs                  4155928        76   4155852   1% /dev/shm/dev/mapper/VG0--raid-lv0
                             453456384   2093972 428328148   1% /home

        Filesystem            Size  Used Avail Use% Mounted on
        /dev/md0               25G  4.9G   19G  22% /
        tmpfs                 4.0G   76K  4.0G   1% /dev/shm/dev/mapper/VG0--raid-lv0
                              433G  2.0G  409G   1% /home


[root@raid-server home]# fdisk -l
        Disk /dev/sda: 500.1 GB, 500107862016 bytes
        255 heads, 63 sectors/track, 60801 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Disk identifier: 0x000d49c3

           Device Boot      Start         End      Blocks   Id  System
        /dev/sda1   *           1        3187    25599546   fd  Linux raid autodetect
        /dev/sda2            3188        3448     2096482+  fd  Linux raid autodetect
        /dev/sda3            3449       60801   460687972+  fd  Linux raid autodetect

        Disk /dev/sdb: 500.1 GB, 500107862016 bytes
        255 heads, 63 sectors/track, 60801 cylinders
        Units = cylinders of 16065 * 512 = 8225280 bytes
        Disk identifier: 0x000691f2

           Device Boot      Start         End      Blocks   Id  System
        /dev/sdb1   *           1        3187    25599546   fd  Linux raid autodetect
        /dev/sdb2            3188        3448     2096482+  fd  Linux raid autodetect
        /dev/sdb3            3449       60801   460687972+  fd  Linux raid autodetect

[root@raid-server home]# pvdisplay
          --- Physical volume ---
          PV Name               /dev/md2
          VG Name               VG0-raid
          PV Size               439.35 GB / not usable 2.50 MB
          Allocatable           yes (but full)
          PE Size (KByte)       16384
          Total PE              28118
          Free PE               0
          Allocated PE          28118
          PV UUID               Rk2rBa-LBE7-0mkC-6hz1-P79o-hZ2o-EkNptz

[root@raid-server home]# vgdisplay
          --- Volume group ---
          VG Name               VG0-raid
          System ID
          Format                lvm2
          Metadata Areas        1
          Metadata Sequence No  2
          VG Access             read/write
          VG Status             resizable
          MAX LV                0
          Cur LV                1
          Open LV               1
          Max PV                0
          Cur PV                1
          Act PV                1
          VG Size               439.34 GB
          PE Size               16.00 MB
          Total PE              28118
          Alloc PE / Size       28118 / 439.34 GB
          Free  PE / Size       0 / 0
          VG UUID               L2lNJW-H96E-yr2y-kQYB-dVgu-cNtc-Nkjint

[root@raid-server home]# lvdisplay
          --- Logical volume ---
          LV Name                /dev/VG0-raid/lv0
          VG Name                VG0-raid
          LV UUID                T0zlfw-90Ev-yimU-FMXF-iJW3-q27Z-SzKWI6
          LV Write Access        read/write
          LV Status              available
          # open                 1
          LV Size                439.34 GB
          Current LE             28118
          Segments               1
          Allocation             inherit
          Read ahead sectors     auto
          - currently set to     256
          Block device           253:0

[root@raid-server home]# mdadm --detail --scan
        ARRAY /dev/md0 level=raid1 num-devices=2 metadata=0.90 UUID=4986355b:6ff50e18:4f8021ce:19673fca
        ARRAY /dev/md1 level=raid1 num-devices=2 metadata=0.90 UUID=ff1e49cb:daaea683:1ed31a98:32961f73
        ARRAY /dev/md2 level=raid1 num-devices=2 metadata=0.90 UUID=c26b0201:2ada3aa0:ad476803:4025a76b

[root@raid-server home]# ll /dev/md*
        brw-rw---- 1 root disk 9, 0 2009-03-04 13:16 /dev/md0
        brw-rw---- 1 root disk 9, 1 2009-03-04 22:16 /dev/md1
        brw-rw---- 1 root disk 9, 2 2009-03-04 13:16 /dev/md2

[root@raid-server home]# cat /proc/mdstat
        Personalities : [raid1] [raid6] [raid5] [raid4]
        md2 : active raid1 sda3[0] sdb3[1]
              460687872 blocks [2/2] [UU]
        md1 : active raid1 sda2[0] sdb2[1]
              2096384 blocks [2/2] [UU]
        md0 : active raid1 sda1[0] sdb1[1]
              25599424 blocks [2/2] [UU]

[root@raid-server fwiki]# cat /boot/grub/grub.conf
        # grub.conf generated by anaconda
        # #
        # # Note that you do not have to rerun grub after making changes to this file
        # # NOTICE:  You do not have a /boot partition.  This means that
        # #          all kernel and initrd paths are relative to /, eg.
        # #          root (hd0,0)
        # #          kernel /boot/vmlinuz-version ro root=/dev/md0
        # #          initrd /boot/initrd-version.img
        # #boot=/dev/md0
         default=0
         timeout=1
         splashimage=(hd0,0)/boot/grub/splash.xpm.gz
         hiddenmenu
         password --md5 $1$FoYUHc5D$I/KG.HEBwtG3kSVjkUsgY0
         title Fedora (2.6.27.5-117.fc10.i686.PAE)
                 root (hd0,0)
                 kernel /boot/vmlinuz-2.6.27.5-117.fc10.i686.PAE ro root=UUID=49d8a50b-bcab-49ed-a365-dffa6fdf8dd6 rhgb quiet
                 initrd /boot/initrd-2.6.27.5-117.fc10.i686.PAE.img