Upgrading my lab environment from vCloud Director v5.1 to v5.5, I came across an interesting error whilst upgrading the cells. My lab has the following vCD configuration:
- 2 x RHEL 6.2 Cells
- 1 x RHEL 6.2 NFS Server
- 2 x vShield load balancer instances
- 1 x Windows 2008 R2 DB server running SQL Server 2005
The upgrade process was:
- Quiesce the cell using the Cell Management Tool commands. (Upgrade Guide)
- Upload the vCD .BIN file to the /install directory of the cell (using WinSCP or similar).
- Change the execution parameters for the vCD .BIN file. (Upgrade Guide)
- Running the installation .BIN file. (Upgrade Guide)
- Confirm the existing v5.1 cell instance can be upgraded.
This is where the interesting error came in. The error: ‘error: unpacking or archive failed on file /opt/vmware/vcloud-director/data/transfer: cpio: chown failed – invalid argument’.
Now because my ‘transfer’ folder is actually an exported NFS share from a third server that doesn’t host a vCD cell, I did a little digging around. I found references to 2 main things – no_root_squash and the version of the NFS export itself. On my NFS Server, the export was already set with the (rw, no_root_squash) parameters, but I rebooted both the cell and the NFS server anyway. The other idea was there was potential issues with NFS4 exports. So, I changed the export version in /etc/fstab to NFS3 using the following fstab line entry:
<NFS Server IP>:nfs /opt/vmware/vcloud-director/data/transfer/ nfs rw,vers=3 0 0
Save changes to /etc/fstab and reboot the cell, and retry the cell upgrade using the .BIN file from earlier.
With the export set as NFS v3, the upgrade should be successful and the cell upgrade can proceed.
Jeremy loves all things technology! Has been in IT for years, loves Macs (but doesn't preach to others about their virtues), loves virtualization (and does shout about it's virtues), and sometimes skis, bikes and directs amateur plays!