PowerStore: How to generate and collect various logs from PowerStore
Summary: This article describes how to generate and gather the various PowerStore and other logs.
Instructions
| Support Materials
Performance Metrics Archives Dump Files |
PowerStore X (Hypervisor logs)
PowerStore Metro Witness PowerStore UI - REST logs |
Switch logs External storage import logs VPLEX and metro node |
Support Materials
Support Materials or Data Collects (DCs) are the most common logs for analysis and troubleshooting. There are various methods for running and collecting Support Materials. Use the method that is more convenient depending on the system state and the kind of access that is available.
Notes:
- If the issue being investigated is related to PowerStore replication or metro volumes, logs from all clusters and appliances should be collected and provided to Technical Support.
- If the PowerStore is not yet initialized (no management IPs yet), see PowerStore: How to connect to and collect support materials from an un-configured system.
Using the PowerStore Manager user interface
- Log in to the PowerStore Manager user interface (UI) with your username and password.
- Click the Settings menu or the system name.
- Go to Gather Support Materials under the Support section.
- Press the GATHER SUPPORT MATERIALS button. A new submenu appears on the right side.
- The default options should be:
- Description: Optional
- Collection Timeframe (v3+ only): Leave is set to default (All) unless instructed to select something else by Technical Support.
- Object Type: Appliances
- Objects to collect data for: Select all appliances.
- Send materials to Support when finished: Optional (requires SupportAssist).
- Advanced support materials collection options: Do not select unless support asks for it. Note: Selecting the advanced options greatly increases the size of the Support Materials. Only chose this option when instructed to do so by your support representative.
- Press START. This process may take up to 60 minutes depending on the size of the system.
- Monitor the progress in the Jobs section of PowerStore Manager or within the Support Materials section.
- Once the process above has finished, select the bundle to download from the Support Materials Library under the Gather Support Materials section.
- Press DOWNLOAD or SEND TO SUPPORT
- A submenu is displayed on the right side with a download link for each of the appliances.
- Click Support material collection for all the appliances.
Using ssh/cli
Before you begin:
- IMPORTANT: Do not attempt to connect a USB device to the USB port on the PowerStore node as this may lead to unpredictable system behavior. For further details, see PowerStore: Universal Serial Bus (USB) Port Use Guidelines.
- Running and downloading logs from CLI/ssh should not be required unless the PowerStore Manager user interface is not accessible.
- Review the article PowerStore: Understanding shell limitations due rbash and other security implementations
- Each appliance only contains its own logs. So if it is a multi-appliance cluster, connect with WinSCP to each appliance separately and download the respective logs. The details about each appliance IP address can be found in the PowerStore Manager user interface under Settings > Network IPs.
How to:
- Log in to the system over ssh with the service user and password.
- The service command to generate Support Materials is svc_dc.
For a multi-appliance system, include all appliances in the collection, example for a two appliance cluster:svc_dc run -a A1,A2
For detailed usage, run svc_dc -h or svc_dc run -h, or see the PowerStore Service Scripts Guide available from the Dell Support pages. - When the logs finish, download them.
In order to facilitate this process, links to the logs are automatically created in the home directory (/home/service/user) when the logs finish running. List them with ls -l. If for some reason the link is not created, list the files manually, this is how that can be done:
List the available Support Materials (DCs) with the service command svc_dc list. Example:
Here you can see the dates, id, status, if there are dumps, description, profiles used (svc_dc list_profiles), and the appliance the logs correspond to.[SVC:service@xxxxxxx-A user]$ svc_dc list
start_timestamp id status dump description profile appliances
2020-04-08 12:48:37 xxxx-xxxx-xxxx SUCCESS No essential FNM00xxxxx..
2020-04-08 14:36:42 xxxx-xxxx-xxxx SUCCESS No Post NDU detailed,.. FNM00xxxxx..
2020-04-09 13:33:57 xxxx-xxxx-xxxx SUCCESS No detailed FNM00xxxxx..
2020-04-15 15:05:34 xxxx-xxxx-xxxx SUCCESS Yes 2020-04-15 Dail.. essential.. FNM00xxxxx..
2020-04-16 15:23:07 xxxx-xxxx-xxxx SUCCESS No 2020-04-16 Dail.. essential FNM00xxxxx..
2020-04-16 19:07:41 xxxx-xxxx-xxxx SUCCESS No Daily data coll.. essential FNM00xxxxx..
Get the id and run the list command with it to see the full details, including file locations and so on.
Example of the command (output not shown):
If the bundle ID contains logs for multiple appliances, the full path to the files on each respective appliance is listed in the output.[SVC:service@xxxxxxx-A user]$ svc_dc list xxxx-xxxx-xxxx
- Download the logs. There are various ways to download the log file bundles over cli/ssh from the appliances. Here are a few.
Using tools like WinSCPDue to rbash and other security implementations on PowerStore, certain commands and operations are not allowed, for example commands like cd or protocols like SFTP. So you must select SCP as the connection protocol. You only have access to the home directory which is /home/service/user. However, as described above, links to the logs are created in the home directory. Drag and drop the respective links which should start the download of the file. An error message may be displayed, which does not affect the download once you press ok.Using svc_upload or svc_dc downloadThis is a service command to facilitate log download or upload. Usage depends on your environment. See the Service Scripts Guide available from the support pages or use these commands for full details: svc_dc download -h or svc_dc upload -h.Using windows utility pscpWindows provides a tool called pscp (from the command prompt) that can be used to download or upload logs directly from and to the system. The exact location of the file on the PowerStore appliance is required (use the links in the service user home directory).
Syntax:
If using PowerStoreOS V4, add this to the command: pscp -scp -o MACs=hmac-sha2-512 service@xx.xx.xx.xx:...pscp -scp service@PowerStore-ip-address:/path/file C:\local_directory
Example from your Windows command prompt:C:\>pscp -scp service@xx.xx.xx.xx:/home/service/user/powerstore_tag_clusterID_serial_2020-04-08_14-36-42_service-data.tgz C:\LOGS
service@xx.xx.xx.xx's password:
powerstore_tag_clusterID_.. | 320000 kB | 45714.3 kB/s | ETA: 00:00:05 | 54%
Performance Metrics Archives
Using PowerStore Manager
Generating performance metrics is only possible for systems running PowerStoreOS v3.x and higher.
- Log in to the PowerStore Manager user interface (UI) with your username and password (requires user with administrator user role).
- Click the Settings menu or the system name.
- Go to Metrics Archives under the Support section.
- Click GENERATE METRICS ARCHIVE > GENERATE.
- Monitor the progress in the Jobs section of PowerStore Manager.
- When it finishes, from the Metrics Archives section, select the file that and click DOWNLOAD.
Using ssh/cli
For PowerStoreOS version 4.1 and above, use:
svc_pstcli metrics_archive generate |
For PowerStoreOS version 3.x and 4.0.x:
Requires the admin account or an account with an administrator user role.
pstcli -d <self/peer/ClusterIP> -u admin -p <MyPassword> metrics_archive generate |
More options can be found with:
pstcli metrics_archive -h |
Either on or off node PSTCLI versions can be used. For full details on how to use PSTCLI, see the PowerStore CLI guide available at the dell support pages.
The generated performance archive is found inside the following directory, where xxxx is a date folder or folders specific to your system.
ls -lha /cyc_cfs/service/support_metrics/archived/xxxx |
The file format is PowerStore_ClusterID_StartDate_EndDate_support-metrics.tar.gz.
Example: PowerStore_abcdefg_2020-04-21T12-56-32_2020-04-28T12-56-32_support-metrics.tar.gz
Download the file to a local machine directly with off-node PSTCLI, pscp as shown above, or copy the file to /home/service/user in order to download with WinSCP.
Using off-node PSTCLI:
Example using the off-node PSTCLI on a windows machine with the ID from above:
pstcli -d <ClusterIP> -u admin -p <MyPassword> metrics_archive -d "C:\Temp" -archive_id 6e869e4e-2612-45ed-b531-6884fa4c802a download |
The file is downloaded to the specified path (-d). If no path is specified, the file is downloaded to where your CMD path defaults to (this can be seen in the command prompt itself within CMD, example: C:\>Users\userX).
Using on-node PSTCLI or direct copy to download with WinSCP:
If running PSTCLI from the primary node directly, copy the file to the home directory, and then transfer with WinSCP.
This can be done with the same command that is shown above (without the second -d switch or with -d /home/service/user).
You can also manually copy the file to /home/service/user as shown here:
List the files available by running
ls -lha /cyc_cfs/service/support_metrics/archived/ |
to determine the unique sub directory name. And then:
| [SVC:service@xxx-A user]$ ls -lha /cyc_cfs/service/support_metrics/archived/2021-03-09T12-09-50-512325/ total 183548 -rw-rw-r-- 1 root cycg 187945656 Mar 9 12:11 PowerStore_xxx_2021-03-02T12-09-50_2021-03-09T12-09-50_support-metrics.tar.gz |
Copy the file to your current directory (/home/service/user). The dot (.) at the end of the command denotes the target directory:
| [SVC:service@xxx-A user]$ cp /cyc_cfs/service/support_metrics/archived/2021-03-09T12-09-50-512325/PowerStore_xxx_2021-03-02T12-09-50_2021-03-09T12-09-50_support-metrics.tar.gz . |
Once the file is copied, download it with WinSCP.
Dump files
Using PowerStore Manager
Dump files are available from the PowerStore Manager like the Support Materials. Select the relevant entry and press DOWNLOAD. The only difference is that they are listed as Support material dump instead of Support material collection.
Using ssh/cli
The easiest way to find and download dump files over ssh/cli is by logging in to the relevant appliance as service user, and listing these files in the home directory. Like the support materials, links are created here for your convenience.
List or view these directly with WinSCP, or run commands such as ls *dump* to list all available dump files in the home directory.
If the dump files are not listed in the home directory, use the service commands svc_dc list or svc_dc list_dumps. The same logic and principles that are used above for the support materials apply here.
When you get the ID of the dump file, use svc_dc list <id> to get thee exact location. The same download mechanisms can be used. Choose the method that is more convenient.
PowerStore X (Hypervisor logs)
Using PowerStore Manager
The only way to collect hypervisor logs from the PowerStore Manager is by selecting the option under Advanced support materials collection options as explained in step 5 of the above section: Generating a Support Materials log bundle. However, this is not the preferred method as selecting the advanced options greatly increases the size of the log bundle.
Using ssh/CLI
svc_dc run -p essential,hypervisor |
NOTE: vCenter logs are not collected this way. See the next section (Using vSphere).
Once the support material bundle is downloaded, the specific hypervisor logs can be found under:
./node_a/command_output/vmware/esx-*-host-1-*.tgz |
From vSphere
To collect the hypervisor logs (vm-support) from the vSphere side, see VMware KB 653.
If the vCenter logs are also required for troubleshooting, select the relevant options as explained in the VMware KB.
PowerStore Metro Witness
Log in to the metro witness virtual machine over ssh, and run the built-in data_collect.sh script in order to capture the logs:
| sudo /opt/dell-witness-service/scripts/data_collect.sh |
Example:
| [witness@test-pwrstr-witness01 ~]$ sudo /opt/dell-witness-service/scripts/data_collect.sh The following script will gather and package journal logs and files related to the witness service. Proceed? (y/n): y Gathering relevant journal logs for the past 14 days... Gathering the witness database... Witness service data collect complete. Result written to: /tmp/dell-witness-service-DC_2024-02-02T13-48+00-00.tgz |
The last line indicates the location of the generated logs.
Download them using something like WinSCP.
Usage:
| [witness@test-pwrstr-witness01 ~]$ sudo /opt/dell-witness-service/scripts/data_collect.sh -h [sudo] password for witness: ======================================================= Dell Witness Service data collection script version 1.0 ======================================================= Usage: ./data_collect.sh [OPTION] ... Options: -h, --help: Display this message and quit -y, --yes: Skip the prompt and start the data collect immediately -d, --directory: Specify an output directory for the data collect tar. Default: /tmp -s, --since: Specify the number of days that should be considered for log collection. Default: 14 |
PowerStore UI/REST logs
Using PowerStore Manager
- Reproduce the issue in the PowerStore user interface (UI).
- Hover over the ? help icon in the upper right corner of the UI and press Ctrl + Alt + Shift + Left click. This causes a hidden menu option to appear in the Help menu.
- Select the Download Network Requests option from that menu and save the text file to a location on your local system.
Using the Internet Browser
- With the browser open, before launching PowerStore Manager, press F12 to bring up the browser developer window.
- Go to the Network tab.
- Launch the UI and reproduce the issue.
- In the developer window, right-click any network request in the center panel then select save all as HAR with content.
Switch Logs
This section provides brief guidance on OS10 Dell switches only (ToR). Full details see: How to generate and collect Support bundle in DELL EMC Networking OS10 Switches. For other versions or switch vendors, consult the appropriate documentation.
To start the log collection:
generate support-bundle enable-all-plugin-options
|
Monitor until they are completed as explained in the KB article above.
Once finished, if you do not have a way to download the logs from the switches, Dell Technical Support can provide an FTP temporary link.
Use these commands to find and download the log bundle:
dir supportbundle
|
copy supportbundle://your_bundle.tar.xz sftp://temp_username@xyz.dell.com/your_bundle.tar.xz
|
Where "temp_username@xyz.dell.com" are the details that are provided by Dell Tech Support if you do not have an FTP or SFTP server. The FTP address may differ based on your location.
External storage import logs
Linux host plug-in
Log Location: /var/log/import
Windows host plug-in
Log Location: C:\ProgramData\DELLEMC\log\
EqualLogic
Log Location: /var/log/equallogic
VPLEX and metro node
VPLEX: How to collect logs from a VPLEX
Videos
Video: PowerStore Log Collection
Or watch on YouTube