Friday, February 12, 2016

How to Collect a Snapshot on SPARC M series servers Mx000 and M10-x systems - M3000/M4000/M5000/M8000/M9000


Running snapshot
The syntax varies slightly from the Mx000 to the M10-x .The M10 requires a "-a" option to collect logs
from all chassis. 

The two most common usages are described below. The first example for each platform does not
 require physical presence at the system and works across the network.   The second uses a USB
stick, and requires someone on site to install and remove the USB stick for transporting the data
 to another system for upload.  The command requires platadm or fieldeng privileges. 

Mx000 Example of collecting a snapshot
XSCF> snapshot -L F -t <username>@<hostname or IP addr>:<location to write to>
Mx000 Example of collecting a snapshot to an external USB stick:
XSCF> snapshot -L F -d usb0

M10-x Example of collecting a snapshot

XSCF> snapshot -a -L F -t <username>@<hostname or IP addr>:<location to write to>
M10-x Example of collecting a snapshot to an external USB stick:
XSCF> snapshot -a -L F -d usb0

Bear in mind, that the external media device connected to the XSCF's USB port is expected to have
 a partition 1, formatted with the FAT32 filesystem. The external USB device can have multiple
partitions, as long as partition 1 is FAT32. That partition will then be used by the snapshot
command. For more details on the snapshot command please visit the manual page.

Example:

XSCF> snapshot -L F -t root@10.3.2.121:/tmp
Downloading Public Key from '10.3.2.121'...
Public Key Fingerprint: 98:c0:ba:95:4d:70:9a:dc:24:01:09:5f:94:43:07:c7
Accept this public key (yes/no)? yes
Enter ssh password for user 'root' on host '10.3.2.121':
Setting up ssh connection to root@10.3.2.121...
Collecting data into root@10.3.2.121:/tmp/servera-mgmt-lan0_10.3.2.150_2015-10-08T04-51-30.zip
Data collection complete
XSCF>

Troubleshooting Steps
SSH: Could not resolve hostname
XSCF> snapshot -L F -t username@hostname:/home/username
Downloading Public Key from 'hostname'...
Error downloading key for host 'hostname'
- Program exited unexpectedly: /usr/bin/ssh
- Output: "ssh: Could not resolve hostname <hostname>: Temporary failure in name resolution"
Error with SSH settings
Resolution:  Use the ip address instead of the host name
===================================================
Unable to mount USB device
After inserting a USB memory stick into the maintenance port of an OPL XSCF, snapshot reported
 that it is unable to mount the USB device.

Sun SPARC Enterprise M3000/M4000/M5000/M8000/M9000 (OPL) Servers: snapshot
 "Unable to mount USB device".

The snapshot command expects the USB device to have a partition 1 with a fat32 filesystem.
 (/dev/sda1) If your device does not have any partitions, the XSCF will see your USB memory stick
 as /dev/sda. Without the partition snapshot will not be able to mount the device correctly and
report "Unable to mount USB device".
Resolution:  To create a partition table on your USB stick, you can plug your USB memory stick
into a Windows Computer, which should re-partition and format the device with one large partition
 as a FAT32 file system.
This issue is fixed in XCP 1050.

No comments:

Post a Comment