#####################################################
##
若有轉載,請務必保留本文連接及版權信息
##
歡迎廣大運維同仁一塊兒交流linux/unix網站運維技術!
##QQ:335623998
##E-mail:335623998@qq.com
#####################################################
1、系統環境
[root@mail1 ~]# cat /etc/redhat-release
CentOS release 6.3 (Final)
You have new mail in /var/spool/mail/root
[root@mail1 ~]# uname -m
x86_64
[root@mail1 ~]# uname -r
2.6.32-279.el6.x86_64
5、CentOS6.3 64bit掛載MD3220虛擬磁盤
5.1
掃描新增的虛擬磁盤
rescan_dm_devs
命令掃描主機服務器系統,查找映射至主機服務器的現有和新增的虛擬磁盤。
[root@mail1 ~]# rescan_dm_devs
Host adapter mpt2sas host1 controller /sys/class/scsi_host/host1/device/bsg found.
scanning host 1 ctrl /sys/class/scsi_host/host1/device/bsg result
LUN 0 is not mapped to a disk on controller /sys/class/scsi_host/host1/device/bsg
scsi remove-single-device mpt2sas 1 0 /sys/class/scsi_host/host1/device/bsg 0
rescan the devices on mpt2sas host1 controller /sys/class/scsi_host/host1/device/bsg ...
Done.
5.2
顯示多路徑設備拓撲
[root@mail1 ~]# multipath -ll
mpathb (3690b11c00022bafc000005725105d5df) dm-0 DELL,MD32xx
size=2.2T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 rdac' wp=rw
`-+- policy='round-robin 0' prio=6 status=active
`- 1:0:0:0 sdb 8:16 active ready running
5.3
新建分區
[root@mail1 ~]# fdisk -l /dev/mapper/mpathb
Disk /dev/mapper/mpathb: 2398.4 GB, 2398352687616 bytes
255 heads, 63 sectors/track, 291583 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
5.4
磁盤空間大於2T,使用parted新建分區
[root@mail1 ~]# parted /dev/mapper/mpathb
GNU Parted 2.1
Using /dev/mapper/mpathb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) mklabel gpt
(parted) mkpart primary 0% 100%
(parted) print
Model: Linux device-mapper (multipath) (dm)
Disk /dev/mapper/mpathb: 2398GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Number Start End Size File system Name Flags
1 1049kB 2398GB 2398GB primary
(parted) quit
Information: You may need to update /etc/fstab.
5.5
向 Device Mapper 添加新分區
kpartx
命令可將 fdisk
新建立的分區添加至 Device Mapper
的可用分區列
表。請參閱如下示例,其中 mpath<x>
是要在其上建立分區的設備節點。
# kpartx –a /dev/mapper/mpath<x>
若是成功執行,則命令不會顯示輸出。要驗證命令是否成功並查看確切的分
區命名,用戶可以使用這些命令查看分配的完整分區名
[root@mail1 mdstoragemanager]# cd /dev/mapper/
[root@mail1 mapper]# ls
control mpathb mpathbp1
5.6
在 Device Mapper 分區上建立文件系統
[root@mail1 mapper]# mkfs -t ext4 /dev/mapper/mpathbp1
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
146391040 inodes, 585534976 blocks
29276748 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
17870 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 38 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@mail1 mapper]# tune2fs -c -1 /dev/mapper/mpathbp1
tune2fs 1.41.12 (17-May-2010)
Setting maximal mount count to -1
mount /dev/mapper/mpathbp1 /data
5.8
查看分區情況
[root@mail1 ~]# df -hT
Filesystem Type Size Used Avail Use% Mounted on
/dev/sda3 ext4 12G 604M 11G 6% /
tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 ext4 504M 54M 425M 12% /boot
/dev/sda9 ext4 794G 79G 676G 11% /home
/dev/sda2 ext4 247G 188M 234G 1% /index
/dev/sda6 ext4 12G 622M 11G 6% /opt
/dev/sda7 ext4 12G 1.2G 11G 11% /usr
/dev/sda8 ext4 12G 232M 11G 3% /var
/dev/mapper/mpathbp1
ext4 2.2T 167G 1.9T 8% /data
4、卸載 PowerVault MD 存儲軟件
從
Linux
中卸載
MD
存儲軟件
4.1
默認狀況下, PowerVault MD Storage Manager 安裝在 /opt/dell/mdstoragemanager 目錄中。若是在安裝過程當中使用其餘目錄, 則應在執行卸載過程以前瀏覽至該目錄。
# cd /opt/dell/mdstoragesoftware/mdstoragemanager
4.2
從安裝目錄中,打開 Uninstall Dell MD Storage Software 目錄。
# cd Uninstall\ PowerVault\ Modular\ Disk\ Storage\ Manager/
# ls
InstallScript.iap_xml Uninstall PowerVault Modular Disk Storage Manager
installvariables.properties Uninstall PowerVault Modular Disk Storage Manager.lax
uninstaller.jar
4.3
運行文件Uninstall PowerVault Modular Disk Storage Manager
# ./Uninstall\ PowerVault\ Modular\ Disk\ Storage\ Manager
Preparing SILENT Mode Uninstallation...
===============================================================================
PowerVault Modular Disk Storage Manager (created with InstallAnywhere)
-------------------------------------------------------------------------------
===============================================================================
Uninstalling...
………略………
*************************
*************************
*************************
*************************
Uninstallation Complete. #
卸載完畢
接下來將使用Iometer 測試MD3220 IO性能。
MD3220 四部曲:node
《DAS存儲DELL MD3220配置記錄》http://dreamway.blog.51cto.com/1281816/1130444
《CentOS6.3安裝PowerVault MD Storage Manager》 http://dreamway.blog.51cto.com/1281816/1131439linux
《CentOS6.3掛載DELL MD3220虛擬磁盤》http://dreamway.blog.51cto.com/1281816/1131557服務器
《DELL R420 & MD3220 IO性能測試報告》http://dreamway.blog.51cto.com/1281816/1134064app