在IBM X346 I08上安装OpenSolaris 2009.06
在IBM X346 I08上安装OpenSolaris 2009.06by Xiantong Wang,xiantong@gmail.com
date:2009.9.23
1、制作USB live系统(机器光驱已损坏)
1.1、下载OsolLiveUSB003(当前最新版)
下载地址:http://www.genunix.org/dist/windows/liveusb/OsolLiveUSB003.zip
1.2、下载OpenSolaris2009.06的usb镜象
下载地址:http://www.genunix.org/distributions/indiana/osol-0906-x86.usb
1.3、开始制作
在winxp下解压OsolLiveUSB003.zip,运行OsolLiveUSB,USB Image选择刚刚下载的osol-0906-x86.usb,Target Device选择你要制作的U盘,点start,一两分钟即可完成。
注意,该软件需要.net 2.0,如不能运行,请安装.net再试。
2、安装系统
2.1、开机按ctrl+s进入scsi配置菜单,删除已经建好的raid1,raid0,把hostraid全部disable,因为OpenSolaris2009.06好象不能正确识别此设备,这可能导致进入LIVE USB系统之后找不到安装硬盘
2.2、插入USB,选择从usb引导,多试几个USB口,我做几次尝试,IBM X346的USB支持好象不是那么完美
2.3、引导进入系统之后,在桌面上选择安装OpenSoalris,在第一块硬盘上安装,OK后重启,安装完成。
3、制作mirror
OpenSolaris的root所在盘没有采用zfs文件格式推荐将整盘做为了一个设备加入到pool,这将导致不能使用硬盘自身的硬件缓存,没办法,我这里只有两块硬盘,又想实现mirror。
3.1、给第二块硬盘初始化
:~$ pfexec format
Searching for disks...done
c7t1d0: configured with capacity of 136.73GB
AVAILABLE DISK SELECTIONS:
0. c7t0d0
/pci@0,0/pci8086,3599@6/pci8086,330@0/pci1014,2cc@7,1/sd@0,0
1. c7t1d0
/pci@0,0/pci8086,3599@6/pci8086,330@0/pci1014,2cc@7,1/sd@1,0
Specify disk (enter its number): 1
selecting c7t1d0
No Solaris fdisk partition found.
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
! - execute , then return
quit
format> fdisk
No fdisk table exists. The default partition for the disk is:
a 100% "SOLARIS System" partition
Type "y" to accept the default partition,otherwise type "n" to edit the
partition table.
y
format>quit
3.2、将第一块硬盘的vtoc分片格式copy至第二块硬盘
~$ pfexec prtvtoc /dev/rdsk/c7t0d0s2 | pfexec fmthard -s - /dev/rdsk/c7t1d0s2
fmthard:New volume table of contents now in place.
3.3、建立mirror
$ pfexec zpool attach -f rpool c7t0d0s0 c7t1d0s0
Please be sure to invoke installgrub(1M) to make 'c7t1d0s0' bootable.
3.4、安装grub至第二块硬盘,使第二块硬盘有引导能力
$ pfexec installgrub -m /boot/grub/stage1 /boot/grub/stage2 /dev/rdsk/c7t1d0s0
Updating master boot sector destroys existing boot managers (if any).
continue (y/n)?y
stage1 written to partition 0 sector 0 (abs 16065)
stage2 written to partition 0, 271 sectors starting at 50 (abs 16115)
stage1 written to master boot sector
3.4、查看数据同步状态,同步完成则全部完成
~$ zpool status
pool: rpool
state: ONLINE
status: One or more devices is currently being resilvered.The pool will
continue to function, possibly in a degraded state.
action: Wait for the resilver to complete.
scrub: resilver in progress for 0h4m, 31.02% done, 0h10m to go
config:
NAME STATE READ WRITE CKSUM
rpool ONLINE 0 0 0
mirror ONLINE 0 0 0
c7t0d0s0ONLINE 0 0 0
c7t1d0s0ONLINE 0 0 010.9G resilvered
errors: No known data errors
同步的速度非常快,这跟zfs文件系统关系密切,zfs文件系统同步的是实际数据块,而不是整个磁盘,这跟传统的卷管理器磁盘管理器有着本质的区别,传统的文件系统看到的硬盘是个黑盒,它不知道哪些是有效数据哪些是无效数据,只能全部复制。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/12199/showart_2058172.html
页:
[1]