Category Archives: NetApp

How to add ISCSI disk to Ubuntu server from NetApp

General info

Target = storage system. In this case NetApp.

Initiator = the server. In this case Ubuntu Linux server.

Change iqn name = You must supply the iSCSI initiator node name when you set up igroups.

To make this process go smoothly, it is a good practice to write down the node name now. Before you record the node name, you might want to change it.

By default, a node name ends with a string of random numbers.

Changing this part of the name to something such as the host name can make the node name easier to use.

Note! You can only change the last portion of the iqn name: like change the name form iqn.2005-03.com.RedHat:012345 to iqn.2005-03.com.RedHat:Toaster.

On the Linux server

  1. Install open-iscsi
    1. sudo apt install open-iscsi
  2. Change iqn name to iqn format with the server name at the end
    1. sudo vi /etc/iscsi/initiatorname.iscsi
  3. Edit iscsi config file so that the server connects automatically to the Netapp after reboot.
    1. sudo vi /etc/iscsi/iscsid.conf
    2. change the folowing line to automatic:
    3. startup = automatic
  4. Restart the iscsi service
    1. sudo systemctl restart iscsid
  • go to Netapp steps. When done, comeback here.
  1. Rediscover the Netapp
    1. sudo iscsiadm -m discovery -t sendtargets -p 192.168.1.53
  2. Connect to the netapp
    1. sudo iscsiadm -m node –login
  3. Get the list of disks on the server and locate the new ISCSI disk
    1. dmesg | grep sd
  4. Create a new partition
    1. sudo fdisk /dev/sdb
    2. n (Add new partition).
    3. P (Primery partition).
    4. enter
    5. w (Write table to disk and exit).
  5. Format the file system and mount it to /srv
    1. sudo mkfs.ext4 /dev/sdb1
    2. sudo mount /dev/sdb1 /srv
  6. Add an entry to /etc/fstab file – to mount the iscsi drive during boot:
    1. /dev/sdb1 /srv        ext4    defaults,auto,_netdev 0 0
  7. Reboot the server and verify that the disk is automatically up.
    1. sudo reboot -h now
    2. df -h

 

  • If for some reason you want to disconnect from the Netapp which means to disconnect the ISCSI disk from the server, you can logout with:
    1. sudo iscsiadm -m node –logout
  • If for some reason you want to uninstall open-iscsi package from the server, you can do it with:
    1. service open-iscsi stop
    2. sudo apt-get remove –auto-remove open-iscsi
    3. sudo reboot
    4. sudo apt-get purge open-iscsi

On the Netapp storage

  1. Create new volume
  2. Create new qutree
  3. Create new LUN
  4. Create new initiator group
  5. Add the Linux server initiator name to the initiator group
    1. You can get the initiator name by going to the Linux server and look in the initiator config file: sudo cat /etc/iscsi/initiatorname.iscsi

Sources:

(iSCSI) How to configure iSCSI for Linux

https://help.ubuntu.com/lts/serverguide/iscsi-initiator.html#iscsi-initiator-install

http://installion.co.uk/ubuntu/trusty/main/o/open-iscsi/uninstall/index.html

https://www.howtogeek.com/106873/how-to-use-fdisk-to-manage-partitions-on-linux/

Error 0x80004005 accessing CIFS from Windows server

Issue: Accessing shares hosted on third party file server (like NetApp or EMC) from Windows server 2012 returns error

Windows cannot access \\ServerName

Check the spelling of the name. Otherwise, there might be a problem with your network. To try to identify and resolve network problems, click Diagnose.

Error code: 0x80004005
Unspecified error

Cause:

With Windows server 2012 and Windows 8, Secure dialect negotiation is introduced in SMB 3.0. This feature depends upon the correct signing of error responses by all SMBv2 servers, including servers that support only protocol versions 2.0 and 2.1. Some third-party file servers do not return a signed error response. Therefore, the connection fails.

Resolution:

On the Netapp filer:

Disable SMB2 on the storage server by entering the following command: options cifs.smb2.client.enable off

options cifs.smb2.signing.required on

http://mysupport.netapp.com/NOW/cgi-bin/bol?Type=Detail&Display=474548

On the server:

Run the Powershell command:

Set-ItemProperty -Path “HKLM:\SYSTEM\CurrentControlSet\Services\LanmanWorkstation\Parameters” RequireSecureNegotiate -Value 0 –Force

or

Set-SmbClientConfiguration – RequireSecureNegotiate 0

How to power cycle NetApp system

There are three options to power cycle:

Option One:

  1. On both filers run >cf disable
  2. On both filers run >cifs terminate
  3. On both filers log into SP
  4. SP> system power off
  5. SP>System power on
  6. SP>system console
  7. If in loader prompt than run >boot_ontap
  8. If in Ontap prompt than run on each filer >cf enable
  9. Trigger fresh autosupports report

 

Option Two:

  1. On both filers run >cf disable
  2. On both filers run >cifs terminate
  3. On both filers run >reboot –s
  4. when the filers come back up on both filers run >cf enable

 

Option Three:

 

  1. On both filers run >cf disable
  2. On both filers run >cifs terminate
  3. On both filers run >halt
  4. On both filers – physically power filler off
  5. when the filers come back up on both filers run >cf enable

NetApp Configuring the SP

A Service Processor (SP) provides remote management capabilities, including console redirection, logging and power control for NetApp systems.

It also extends AutoSupport by sending additional system event alerts. The AutoSupport settings are used for sending these alerts through e-mails over the SP LAN interface.

All FAS22x0, FAS32x0 and FAS62x0 series storage systems have Service Processors.

Steps For Configuring the SP

  1. At the storage system prompt, enter one of the following commands:
    • setup If you want to change both system setup and SP configuration, you use the setup command. When the storage system setup process is complete, the sp setup command runs automatically and prompts you for SP configuration information.
    • sp setup If the storage system has been set up and you want to configure only the SP, you use the sp setup command, which omits system setup and prompts you directly for SP configuration information.
  2. When the SP setup asks you whether to configure the SP, enter y.
  3. Enter one of the following when the SP setup asks you whether to enable DHCP on the SP:
    • To use DHCP addressing, enter y.
    • To use static addressing, enter n.
  4. If you do not enable DHCP for the SP, provide the following static IP information when the SP setup prompts you to:
    • The IP address for the SP
    • The netmask for the SP
    • The IP address for the SP gateway
    • The name or IP address of the mail host to use for AutoSupport (if you use the setup command.)
  5. At the storage system prompt, enter the following command to verify that the SP network configuration is correct: sp status
  6. At the storage system prompt, enter the following command to verify that the SP AutoSupport function is working properly: sp test autosupport

Configuring the SP.

What is service processor and how to use it?