linux修改磁盘盘符,debian下修改磁盘阵列盘符

debian下修改磁盘阵列盘符

系统环境debian 64位

raid环境 r410 系统盘sas卡raid 1;md1000 15块盘raid6 ctrl+c配置方式

接盘柜后盘柜认成sda问题.

修改/etc/modprobe.d/blacklist.conf

加一行blacklist megaraid_sas

cd /boot

mv initrd.img-2.6.30-1-amd64 initrd.img-2.6.30-1-bakamd64

mkinitramfs 2.6.30-1-amd64 -o /boot/initrd.img.-2.6.30-1-amd64

vim /etc/rc.local

cat /etc/rc.local

#!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.

modprobe megaraid_sas (加这一行)

exit 0

reboot

fdisk -l

Disk /dev/sda: 299.4 GB, 299439751168 bytes

255 heads, 63 sectors/track, 36404 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x000840cc

Device Boot Start End Blocks Id System

/dev/sda1 1 261 2096451 83 Linux

/dev/sda2 262 36404 290318647+ f W95 Ext'd (LBA)

/dev/sda5 262 522 2096451 82 Linux swap / Solaris

/dev/sda6 523 783 2096451 83 Linux

/dev/sda7 784 1044 2096451 83 Linux

/dev/sda8 1045 1566 4192933+ 83 Linux

/dev/sda9 1567 36404 279836203+ 83 Linux

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use

GNU Parted.

Disk /dev/sdb: 7794.1 GB, 7794157682688 bytes

255 heads, 63 sectors/track, 947585 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00000000

Device Boot Start End Blocks Id System

/dev/sdb1 1 267350 2147483647+ ee EFI

©著作权归作者所有:来自51CTO博客作者Edwin_的原创作品,如需转载,请注明出处,否则将追究法律责任

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值