I have a bunch of (old) NetApp DS14MK2 disks arrays with Fibre Channel connections.
I wouldn't use them to anything critical, but instead of throwing them out, could I use each of them as a separate JBOD for Linux (XFS) or Solaris/OmniOS (ZFS)?
I have a bunch of (old) NetApp DS14MK2 disks arrays with Fibre Channel connections.
I wouldn't use them to anything critical, but instead of throwing them out, could I use each of them as a separate JBOD for Linux (XFS) or Solaris/OmniOS (ZFS)?
My solution was a bit more complicated. I was able establish a JBOD on my NetApp DS14MK4 (14 x 450GB) using an HP Qlogic QLE2462 HBA on an Ubuntu 16.10 box using the following commands (some settings will be different based on your hard drive type and sizes, so adjust accordingly):
Enable Qlogic HBA BIOS using on system boot-up (Disabled by default)
Use lsscsi or sginfo to list drives in Ubuntu (can use apt-get to install) and make a list of all "/dev/sd?" drives that are marked with "netapp":
lsscsi --list OR sginfo -l
sudo sg_format -6 -r --count=-1 --verbose /dev/sd?
sudo sg_format -6 -F -s 512 --verbose /dev/sd?
sudo blockdev --rereadpt /dev/sd?
sudo cat /proc/partitions
Use GParted (I used the GUI this time) to create partitions necessary to group these later as LVD. First create a partition table: Device > Create Partition Table > Choose "GPT". You will then use GParted to format them as type "lvd2 pv".
Now use VGcreate to create a Logical Volume Group (use partition names here, not device names, i.e. sdb1 NOT sdb):
sudo vgcreate VG_NAMEOFYOURCHOICE /dev/sdb1 /dev/sdc1 /dev/sdd1 /dev/sde1 /dev/sdf1 /dev/sdg1 /dev/sdh1 /dev/sdi1 /dev/sdj1 /dev/sdk1 /dev/sdl1 /dev/sdm1 /dev/sdn1 /dev/sdo1
sudo lvcreate -L 5.72T -i14 -I64 -n VG_NAMEYOUCHOSEIN#7 LV_NAMEOFYOURCHOICE
sudo lvdisplay /dev/VG_NAMEYOUCHOSEIN#7/LV_NAMEOFYOURCHOICE
sudo mkdir FOLDERNAME
sudo chown yourusername:yourusername /FOLDERNAME
sudo chmod -R 777 /FOLDERNAME
sudo mkfs -t ext4 /dev/VG_NAMEYOUCHOSEIN#7/LV_NAMEOFYOURCHOICE#9
sudo mount -t ext4 /dev/VG_NAMEYOUCHOSEIN#7/LV_NAMEOFYOURCHOICE#9 /FOLDERNAME#10
Welcome yourself as a proud owner of a NetApp Custom Fiber Channel JBOD!
If Netapp has some sort of custom drive firmware, that might prevent this. This is a pretty common thing to see in the world of storage controllers. You may be able to overwrite this firmware with stock firmware from the drives' OEM, but that may still not work, depending on whether the FC components between the disks and the HBA are also locked somehow.
This guy have done it.
Get device names with
sginfo -l
Each drive needs to be formatted from 520 bytes to 512bytes.
sg_format --format --size=512 --verbose=/dev/sgX