`
javasee
  • 浏览: 977241 次
  • 性别: Icon_minigender_1
  • 来自: 北京
文章分类
社区版块
存档分类
最新评论

在ZFS环境下nightly + bfu

阅读更多

To build the kernel bits you have to do something like this:

download and install the build tools:

wgethttp://dlc.sun.com/osol/on/downloads/b115/SUNWonbld.i386.tar.bz2
cp SUNWonbld.i386.tar.bz2 /tmp
bunzip2 /tmp/SUNWonbld.i386.tar.bz2
(cd /tmp; tar xf SUNWonbld.i386.tar.bz2)

su to root, and:

pkgadd -d /tmp SUNWonbld


After the package is installed, quit from the root shell.


setup the opensolaris.sh file (back to you normal user userid, in the onnv-3.4 directory):

cp usr/src/tools/env/opensolaris.sh .


edit the opensolaris.sh file that we've copied to the onnv-3.4 directory;
variables you need to change are:

GATE:
GATE=onnv-3.4;

CODEMGR_WS:
change /export to the directory where you unpacked onnv-3.4

STAFFER:
change it to your Solaris login username (the build logs are mailed
to this account)

SPRO_ROOT:
set it to the directory where you've installed the studio12 compiler,
in case you didn't use the default of /opt/SUNWspro



Make sure that the onbuild tools and the sun studio12 compiler is in your $PATH

export PATH=/opt/onbld/bin:/opt/SUNWspro/bin:$PATH


It seems there is a problem with the iprb driver when building onnv-3.4 outside of Sun,
so I had to modify one Makefile:

% hg diff
diff --git a/usr/src/pkgdefs/SUNWos86r/Makefile b/usr/src/pkgdefs/SUNWos86r/Makefile
--- a/usr/src/pkgdefs/SUNWos86r/Makefile
+++ b/usr/src/pkgdefs/SUNWos86r/Makefile
@@ -31,7 +31,7 @@ MACHDATAFILES += i.sdconf
CLOBBERFILES += $(MACHDATAFILES)

LICENSEFILES += $(OSBL)
-LICENSEFILES += ../../../closed/uts/intel/io/iprb/THIRDPARTYLICENSE
+$(CLOSED_BUILD)LICENSEFILES += ../../../closed/uts/intel/io/iprb/THIRDPARTYLICENSE

.KEEP_STATE:



Build everything, from the onnv-3.4 directory:

nightly opensolaris.sh




When the build is complete you should receive an email message
with subject "Nightly i386 Build of onnv-3.4 Completed."

In case there are failures, you'll find log files in the
onnv-3.4/log/log-2009-MM-DD... subdirectories (it uses
a current timestamp as part of the directory name).


=============================

Assuming the onnv-3.4 build completed without errror, you
can install the compiled bits like this:

Snapshot and clone your zfs root filesystem

zfs snapshot rpool/ROOT/snv-114@onnv-3.4
zfs clone -o mountpoint=legacy rpool/ROOT/snv-114@onnv-3.4 rpool/ROOT/onnv-3.4

Mount the cloned zfs root and install (bfu) the compiled onnv-3.4 bits:

mount -F zfs rpool/ROOT/onnv-3.4 /mnt


PATH=/opt/onbld/bin:$PATH

FASTFS=/opt/onbld/bin/`uname -p`/fastfs
BFULD=/opt/onbld/bin/`uname -p`/bfuld
EXTRACT_HOSTID=/opt/onbld/bin/`uname -p`/extract_hostid
ACR=/opt/onbld/bin/acr
GZIPBIN=/usr/bin/gzip

export PATH FASTFS BFULD ACR GZIPBIN EXTRACT_HOSTID

bfu /export/onnv-3.4/archives/i386/nightly-nd /mnt


When the bfu script has completed a shell is started. Run
the automatic conflict resolution utility for the root directory
that you've just upgraded:

acr /mnt


After acr has completed quit from shell.

Now you have to construct a new grub boot entry for the new
zfs root; edit /rpool/boot/grub/menu.lst; the new boot
entries should look like this:


title Solaris Express Community Edition (onnv-3.4)
bootfs rpool/ROOT/onnv-3.4
kernel$ /platform/i86pc/kernel/$ISADIR/unix -B $ZFS-BOOTFS -kv
module$ /platform/i86pc/$ISADIR/boot_archive

title Solaris xVM (onnv-3.4)
bootfs rpool/ROOT/onnv-3.4
kernel$ /boot/$ISADIR/xen.gz com1=9600,8n1 console=vga
module$ /platform/i86xpv/kernel/$ISADIR/unix /platform/i86xpv/kernel/$ISADIR/unix -B $ZFS-BOOTFS -kv
module$ /platform/i86pc/$ISADIR/boot_archive


Reboot.

Try to boot the first entry "Solaris Express Community Edition (onnv-3.4)".
This should boot using the new onnv-3.4 kernel, but without xen / xvm
support.

When it works ok, reboot, and try the second entry "Solaris xVM (onnv-3.4)".
This should boot the new xen / xvm enabled dom0 kernel.

分享到:
评论

相关推荐

    zfs-0.8.4 zfs zfs-0.8.4安装包

    ZFS在0.8.4版本中继续展现出其强大的功能和可靠性,尤其适合大规模存储环境。本文将深入探讨ZFS的核心特性、安装过程以及它在实际应用中的价值。 首先,ZFS的关键特性之一是其集成的存储池(Storage Pool)概念。...

    运行在linux下的ZFS

    "运行在Linux下的ZFS"即指这种在非Solaris环境中的应用。 ZFS在Linux上的实现,通常被称为"ZFS on Linux"(ZOL),它允许用户在Linux环境中享受ZFS提供的强大功能。ZOL项目是一个开源项目,由一群开发者维护,旨在...

    一种Linux环境下优化ZFS同步写性能的方法.pdf

    在Linux环境下,ZFS的实现被称为ZFS on Linux(ZFSonLinux)。ZFSonLinux面临的一个主要问题是,同步写性能较低,尤其是在同步写负载较重时,系统吞吐量明显下降。这是因为ZFS在处理同步写请求时,每个写请求都会...

    Solaris ZFS管理指南

    - **ZFS环境中的区域迁移**:提供了在ZFS存储环境中迁移区域(zone)的能力,使得资源分配和管理更加灵活,适应了动态变化的工作负载需求。 - **ZFS安装和引导支持**:改进了ZFS作为根文件系统的能力,使得在ZFS上...

    Unix系统zfs文件系统的使用

    **Unix系统ZFS文件系统的使用** ZFS,全称Zettabyte File ...学习和理解ZFS的使用对于提升在Unix环境中管理和保护数据的能力至关重要。通过实验和实践,你可以更深入地了解ZFS的强大功能,并在实际工作中发挥其优势。

    SUN的ZFS管理指南

    - **ZFS环境中的区域迁移**:支持在不同的硬件环境中无缝迁移数据集。 - **ZFS安装和引导支持**:提供了更加灵活的安装和启动选项。 - **不取消挂载的情况下回滚数据集**:可以在不影响服务可用性的前提下回滚...

    ZFS源码安装包

    在CentOS系统中,虽然默认不支持ZFS,但可以通过源码编译的方式进行安装。 首先,我们来详细了解一下ZFS的核心特性: 1. **数据完整性**:ZFS采用RAID-Z技术,提供类似RAID的冗余性,并通过校验和确保数据的完整性...

    zfs-master.rar

    它包含了对I/O操作、内存管理、锁机制等底层功能的支持,是ZFS能够在多种环境下稳定运行的基础。 深入源码,我们发现ZFS采用了交易式元数据模型,确保了在系统崩溃或电源故障后,文件系统的状态仍然一致。ZFS的每个...

    linux下的ZFS命令手册

    linux下的ZFS命令手册

    SUN的ZFS文件系统介绍和使用

    ZFS在设计上融入了多种先进的特性和功能,使其成为现代数据中心和服务器环境的理想选择。下面将详细介绍ZFS的核心特性以及如何进行使用。 1. **数据完整性**: ZFS引入了一种称为“End-to-End Data Integrity”的...

    ZFS文件系统的预读策略

    ZFS(Zettabyte File System)是一种先进的文件系统,它最初是由Sun Microsystems公司开发的。由于其设计的复杂性和许多创新特性,ZFS...对于追求高性能和可靠性的存储环境,理解并合理配置ZFS的预读策略是必不可少的。

    ZFS Best Practices with NetApp(基于NETAPP的ZFS最佳实践)

    - **快照**:ZFS还支持快照功能,快照可以在不占用额外存储空间的情况下保存文件系统的某一时间点的状态。这对于备份和恢复非常有用。 #### 参考资料 报告最后提供了相关的参考资料,帮助读者深入了解ZFS及其应用...

    ZFS管理指南

    #### 二、ZFS环境下的新增功能 - **ZFS环境中的区域迁移**:允许用户在不同的ZFS环境中迁移数据,便于管理和维护。 - **ZFS安装与引导支持**:可以在ZFS文件系统上安装操作系统并进行引导,简化了系统部署流程。 - *...

    zfs文件系统源码包

    ZFS(Zettabyte File System)是一个先进的、64位的、开源的文件系统,最初由Sun Microsystems开发,现在在多个开源项目中被广泛使用,包括OpenSolaris、FreeBSD和Linux。它提供了数据完整性检查、高效的数据压缩、...

    zfs 深入部分

    ZFS的设计理念是将数据保护、存储管理和性能优化融为一体,使得在处理海量数据时能提供卓越的稳定性和效率。本文将深入探讨ZFS的原理、关键特性和实际应用。 一、ZFS设计哲学 1. 一切皆为数据:ZFS的核心思想是将...

    zfs.rar_ZFS

    另外,ZFS的内置数据压缩功能在某些场景下可以提高I/O性能,因为压缩后的数据量更小,传输更快。 **五、跨平台兼容** 尽管ZFS最初是为Solaris操作系统设计的,但它已经移植到了其他平台,包括Linux、FreeBSD和...

    zfs管理指南

    - **ZFS快照**:快照是ZFS的一个核心功能,用于保存文件系统在某一时间点的状态,从而可以在数据丢失或损坏时快速恢复。ZFS快照不仅节省空间,而且创建和恢复都非常快速。 - **ZFS存储池**:ZFS使用存储池的概念来...

    Linux服务器ZFS文件系统使用攻略.pdf

    在本文中,我们将详细介绍Linux服务器上ZFS文件系统的使用攻略。ZFS(Zettabyte File System)是一种全新的文件系统,它抛弃了传统的File System + Volume Manager + Storage架构,而是通过ZFS池来管理所有的存储...

    oracle solaris ZFS文件系统

    - **ZFS 影子迁移**:这是一种用于数据迁移的新技术,可以在不影响正常业务的情况下将数据从一个存储池迁移到另一个存储池。 - **ZFS 文件共享改进**:优化了文件共享机制,提高了文件访问速度和数据传输效率。 - **...

Global site tag (gtag.js) - Google Analytics