linux修改磁盘盘符,debian下修改磁盘阵列盘符
debian下修改磁盤(pán)陣列盤(pán)符
系統(tǒng)環(huán)境debian 64位
raid環(huán)境 r410 系統(tǒng)盤(pán)sas卡raid 1;md1000 15塊盤(pán)raid6 ctrl+c配置方式
接盤(pán)柜后盤(pán)柜認(rèn)成sda問(wèn)題.
修改/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
?著作權(quán)歸作者所有:來(lái)自51CTO博客作者Edwin_的原創(chuàng)作品,如需轉(zhuǎn)載,請(qǐng)注明出處,否則將追究法律責(zé)任
總結(jié)
以上是生活随笔為你收集整理的linux修改磁盘盘符,debian下修改磁盘阵列盘符的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 怎么查看自己linux实验环境,Linu
- 下一篇: linux增加分区swap,linux中