- 論壇徽章:
- 0
|
在IBM X346 I08上安裝OpenSolaris 2009.06
by Xiantong Wang,xiantong@gmail.com
date:2009.9.23
1、制作USB live系統(tǒng)(機(jī)器光驅(qū)已損壞)
1.1、下載OsolLiveUSB003(當(dāng)前最新版)
下載地址: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,運(yùn)行OsolLiveUSB,USB Image選擇剛剛下載的osol-0906-x86.usb,Target Device選擇你要制作的U盤,點(diǎn)start,一兩分鐘即可完成。
注意,該軟件需要.net 2.0,如不能運(yùn)行,請(qǐng)安裝.net再試。
2、安裝系統(tǒng)
2.1、開機(jī)按ctrl+s進(jìn)入scsi配置菜單,刪除已經(jīng)建好的raid1,raid0,把hostraid全部disable,因?yàn)镺penSolaris2009.06好象不能正確識(shí)別此設(shè)備,這可能導(dǎo)致進(jìn)入LIVE USB系統(tǒng)之后找不到安裝硬盤
2.2、插入U(xiǎn)SB,選擇從usb引導(dǎo),多試幾個(gè)USB口,我做幾次嘗試,IBM X346的USB支持好象不是那么完美
2.3、引導(dǎo)進(jìn)入系統(tǒng)之后,在桌面上選擇安裝OpenSoalris,在第一塊硬盤上安裝,OK后重啟,安裝完成。
3、制作mirror
OpenSolaris的root所在盤沒有采用zfs文件格式推薦將整盤做為了一個(gè)設(shè)備加入到pool,這將導(dǎo)致不能使用硬盤自身的硬件緩存,沒辦法,我這里只有兩塊硬盤,又想實(shí)現(xiàn)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
[disk formatted]
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至第二塊硬盤,使第二塊硬盤有引導(dǎo)能力
$ 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、查看數(shù)據(jù)同步狀態(tài),同步完成則全部完成
~$ 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
c7t0d0s0 ONLINE 0 0 0
c7t1d0s0 ONLINE 0 0 0 10.9G resilvered
errors: No known data errors
同步的速度非常快,這跟zfs文件系統(tǒng)關(guān)系密切,zfs文件系統(tǒng)同步的是實(shí)際數(shù)據(jù)塊,而不是整個(gè)磁盤,這跟傳統(tǒng)的卷管理器磁盤管理器有著本質(zhì)的區(qū)別,傳統(tǒng)的文件系統(tǒng)看到的硬盤是個(gè)黑盒,它不知道哪些是有效數(shù)據(jù)哪些是無效數(shù)據(jù),只能全部復(fù)制。
本文來自ChinaUnix博客,如果查看原文請(qǐng)點(diǎn):http://blog.chinaunix.net/u/12199/showart_2058172.html |
|