系统管理指南:Solaris 8 容器

Procedure如何使用 flarcreate 创建映像

使用以下过程可以创建 Solaris 8 2/04 或更高版本的系统映像。此示例过程使用 NFS 将 Flash 归档文件放到目标 Solaris 10 系统上,不过您可以使用任一方法移动这些文件。

要执行此过程,您必须是全局区域中的全局管理员。

  1. 成为超级用户或承担主管理员角色。

  2. 登录到 Solaris 8 2/04 或更高版本的系统以进行归档。

  3. 转到根目录。


    # cd /
    
  4. 使用 flarcreate 创建名为 s8-system 的 Flash 归档映像文件,并将该归档文件放到 Solaris 10 系统中:


    s8-system # flarcreate -S -n s8-system /net/s10system/export/s8-system.flar
    
    Determining which filesystems will be included in the archive...
    
    Creating the archive...
    
    cpio: File size of "etc/mnttab" has
    
    increased by 435
    
    2068650 blocks
    
    1 error(s)
    
    Archive creation complete.

    提示 –

    在某些情况下,flarcreate 可以显示 cpio 错误。通常,这些消息是诸如 File size of etc/mnttab has increased by 33 之类的消息。当这些消息与日志文件或反映系统状态的文件有关时,可将其忽略。请务必要彻底查看所有的错误消息。