• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

Solaris Zone Install Fails With Cpio Error

by admin

The Problem

Error when trying to install full root zone

ERROR: cannot install zone: cannot access [/usr/bin/cpio] (exec failure)

NOTE: Sparse root install was successful.

The Solution

1. Check the permissions of the cpio executable on the problematic system first.

# ls -al /usr/bin/cpio
-rwxrwxrwx 1 root bin 85924 Sept 9 2018 /usr/bin/cpio

Correct permissions should be:

# ls -al /usr/bin/cpio
-r-xr-xr-x 1 root bin 85856 Sept 9 2018 /usr/bin/cpio

2. Also many errors during pkgchk -n:

ERROR: /dev/dsk
  group name expected actual

The permissions and groups are wrong on many files/directories. Incorrect permissions on executable and incorrect group settings can cause this issue and many others.

3. In order to resolve this issue use the “pkgcheck -fv” command

# pkgchk -fv

4. Verify the fix using the “pkgcheck -n” command which checks the integrity of the package.:

# pkgchk -n

This should run without any errors. Also check creating and installing a full root zone.

Filed Under: Solaris, Zones

Some more articles you might also be interested in …

  1. Solaris – Changing from iSCSI Static Discovery to SendTargets Discovery
  2. How to install and configure sudo in solaris 10 (SPARC and x86/x64)
  3. Solaris Interview Questions – Inodes and the Filesystem Troubleshooting
  4. How to setup a chroot ssh/sftp for specific users in Solaris 10
  5. Understanding “Holding a ZFS Snapshot” Feature
  6. How to Backup and Restore ZFS root pool in Solaris 10
  7. Complete Hardware Reference : SPARC T7-1 / T7-2 / T7-4
  8. How to Configure TCP Keepalive option in Solaris
  9. Understanding the sysconfig utility in Solaris 11
  10. Solaris ZFS : How to Create / Rename / Rollback / Destroy a ZFS Snapshot

You May Also Like

Primary Sidebar

Recent Posts

  • aws ec2: CLI for AWS EC2 (Command Examples)
  • aws cur – Create, query, and delete AWS usage report definitions (Command Examples)
  • aws configure – Manage configuration for the AWS CLI (Command Examples)
  • aws cognito-idp: Manage Amazon Cognito user pool and its users and groups using the CLI

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright