sh BrickstorOS启动池(bp)设置和修改

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh BrickstorOS启动池(bp)设置和修改相关的知识,希望对你有一定的参考价值。

# Steps to go from no mirror to a mirrored bp. This assumes that both drives
# are identical in every way possible. It will or will not work if geometries
# vary in any way. Same geometry but different models will work, but again,
# geometries must match.
#
# We are also making an assumption here that the drive is brand-friggin new.

# Get geometry and use that to make new disk appear identical
geom=`fdisk -W - /dev/rdsk/c0t0d0p0|awk '{
  if (NF == 10 && $1 > 0) {
      OFS=":"; 
      print $1,$2,$3,$4,$5,$6,$7,$8,$9,$10}
}'`

# Set geometry from 
fdisk -A $geom /dev/rdsk/c0t1d0p0

# Read info from drive already used for bp
prtvtoc /dev/rdsk/c0t0d0s2 > vtoc

# Apply settings from correctly configured disk to new disk before attaching
fmthard -s vtoc /dev/rdsk/c0t1d0s2

# Attach device to one already constituting bp
zpool attach -f bp c0t0d0s0 c0t1d0s0

# Finally install grub over the new drive
installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c0t1d0s0

# Let that puppy rip, reboot and test, but wait for re-sync to happen.

以上是关于sh BrickstorOS启动池(bp)设置和修改的主要内容,如果未能解决你的问题,请参考以下文章

sh BrickstorOS的容量,使用和配额

sh BrickstorOS过程信息

sh 控制BrickstorOS上的活动核心

sh BrickstorOS安装程序

sh BrickStorOS基本健康和系统信息收集脚本

linux环境中关闭tomcat,通过shutdown.sh无法彻底关闭--线程池