免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 3069 | 回复: 14
打印 上一主题 下一主题

X86平台下RAID1启动的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-03-26 22:34 |只看该作者 |倒序浏览
我的x86平台下的solarisRAID1已经完全做完,查看同步都一切正常。可是我用第二块硬盘确无法启动,我想是引导块没有做。
google资料,只找到SPARC平台下的做法,如下。

# installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c0t1d0s0
{0} ok printenv *查看obp参数,注意 boot-device 项的参数,未修改前默认为 disk。
{0} ok devalias *查看设备别名,我们可以看到,第2块盘被命名为 disk1 。
{0} ok setenv boot-device disk disk1 *设置 boot-device 把 disk1 加入。
{0} ok reset-all

我运行了installboot /usr/platform/i86pc/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
提示我Error: installboot is obsolete. Use installgrub(1M)

请问我该如何做呢? 谢谢。

[ 本帖最后由 yangtw 于 2007-3-26 22:37 编辑 ]

论坛徽章:
0
2 [报告]
发表于 2007-03-27 08:13 |只看该作者
c1t1d0s0 改成X86下对应的分区

论坛徽章:
0
3 [报告]
发表于 2007-03-27 09:42 |只看该作者
原帖由 race 于 2007-3-27 08:13 发表
c1t1d0s0 改成X86下对应的分区

c1t1d0s0就是我的第二块硬盘的/分区啊

论坛徽章:
0
4 [报告]
发表于 2007-03-27 09:52 |只看该作者
原帖由 race 于 2007-3-27 08:13 发表
c1t1d0s0 改成X86下对应的分区

c1t1d0s0就是我的第二块硬盘的/分区啊

论坛徽章:
0
5 [报告]
发表于 2007-03-27 09:58 |只看该作者
LZ是不是用的S10?
从提示来看,你试试installgrub

论坛徽章:
0
6 [报告]
发表于 2007-03-27 10:12 |只看该作者
AS solaris 10

1 fdisk -b /usr/lib/fs/ufs/mboot /dev/rdsk/c1t1d0p0

The following screen appears:
Total disk size is 31035 cylinders
Cylinder size is 1146 (512 byte) blocks
Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Active Solaris 1 31034 31034 100
SELECT ONE OF THE FOLLOWING:
1. Create a partition
2. Specify the active partition
3. Delete a partition
4. Change between Solaris and Solaris2 Partition IDs
5. Exit (update disk configuration and exit)
6. Cancel (exit without updating disk configuration)
Enter Selection:
b. 选择5,回车

2 # /sbin/installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0

3 做镜像 (和sparc一样)

4 重起,attatch以后。编辑/boot/grub/menu.lst

title alternate boot
root (hd1,0,a)
kernel /boot/multiboot
module /boot/x86.miniroot-safe

解释:
title Solaris <version>
#       root (hd<disk no>,<partition no>,x)     --x = Solaris root slice
#       kernel /platform/i86pc/multiboot
#       module /platform/i86pc/boot_archive

solaris 9 不同,请参考
Solaris Volume Manager Administration Guide

论坛徽章:
0
7 [报告]
发表于 2007-03-27 13:41 |只看该作者
我运行了 installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
提示如下:

-bash-3.00# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
Solaris partition not found. Abort operation.

c1t1d0s0肯定是我的第二块硬盘的/分区。
我format 选择 第二块硬盘,提示如下:

-bash-3.00# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <DEFAULT cyl 2372 alt 2 hd 255 sec 63>
          /pci@0,0/pci1000,30@10/sd@0,0
       1. c1t1d0 <DEFAULT cyl 2373 alt 2 hd 255 sec 63>
          /pci@0,0/pci1000,30@10/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]
/dev/dsk/c1t1d0s0 is part of SVM volume stripe:d20. Please see metaclear(1M).
/dev/dsk/c1t1d0s1 is part of SVM volume stripe:d21. Please see metaclear(1M).
/dev/dsk/c1t1d0s7 contains an SVM mdb. Please see metadb(1M).


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        fdisk      - run the fdisk program
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p
Please run fdisk first.
format>

不知何故,如何解决,感谢各位。

论坛徽章:
0
8 [报告]
发表于 2007-03-27 14:33 |只看该作者
bash-3.00# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
Solaris partition not found. Abort operation.

format> p
Please run fdisk first.


现在知道怎么做了!!!先建立solaris 分区
之前请先拆镜像。

按Solaris Volume Manager Administration Guide 重新做!!

论坛徽章:
0
9 [报告]
发表于 2007-03-27 14:55 |只看该作者
原帖由 huanglao2002 于 2007-3-27 14:33 发表
bash-3.00# installgrub /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c1t1d0s0
Solaris partition not found. Abort operation.

format> p
Please run fdisk first.


现在知道怎么做了!!!先建 ...

我这个是新硬盘,没有做fdisk,用prtvtoc /dev/rdsk/c1t0d0s2 | fmthard -s - /dev/rdsk/c1t1d0s2复制的分区表。
我也曾在复制分区表之前做fdisk,可是我一旦这么做了。做数据镜像的时候肯定失败。提示
Use metadb to delete databases which are broken.
Ignore any "Read-only file system" error messages.
Reboot the system when finished to reload the metadevice database.
After reboot, repair any broken database replicas which were deleted.

Type control-d to proceed with normal startup,
(or give root password for system maintenance): root password
single-user privilege assigned to /dev/console.

论坛徽章:
0
10 [报告]
发表于 2007-03-27 15:01 |只看该作者
x86下的硬盘你做fmthard的时候

要先fdisk
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP