SlideShare a Scribd company logo
1 of 3
Download to read offline
Creating disk alignment on Linux Servers using Netapp Luns (iscsi or FC/FCOE)
I decided to create this report, because i have found that many customers facing this
problem that the principle is not critical, but as the storage grows it can become a
major performance problem.
Follow below thetasks to beexecuted:
- Install the correct host utilities version on Linux server
- Install the correct snapdriver version on Linux server
- Configure correct parameters on the file configuration of the multipath software
(/etc/multipath.conf)
- Create lun selecting type Linux,because if you don´t select correct operation system Type the
lun will be misalignment on the Storage
- Create the initiator group selecting the correct operation system (In this case Linux) and don´t
forget to enable ALUA if you are using multiple paths.
- After alocate the lun and recognize on the server do the follow:
#fdisk /dev/mapper/"disk"
Create the primary partition and after create, enter on the expert mode typing X on the
follow fdisk options" Command (m for help):X "
You will see the follow below when entry on the expert mode:
Enter expert mode in fdisk and change the starting LBA of the partition to a value that is evenly
divisible by eight. In the following example, the default starting sector is 63 and it is changed to
64 because 64 is evenly divisible by eight. The default starting sector chosen by fdisk is based
on the size of the LUN. The LUN size is used by fdisk to calculate a pseudo geometry which can
vary between different versions of fdisk.
Command (m for help): x
Expert command (m for help): b
Partition number (1-4): 1
New beginning of data (63-62926604, default 63): 64
Expert command (m for help): p
Disk /dev/mapper/”disk”: 255 heads, 63 sectors, 3917 cylinders
Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID
1 00 1 1 0 254 63 1023 64 62926541 83
2 00 0 0 0 0 0 0 0 0 00
3 00 0 0 0 0 0 0 0 0 00
4 00 0 0 0 0 0 0 0 0 00
(Fdisk may print a warning similar to the following as a result of the new offset, this
warning may be ignored.)
Partition 1 has different physical/logical beginnings (non-Linux?):
phys=(0, 1, 1) logical=(0, 1, 2)
Write the partition table and create the new device files for the partition. The kpartx
command is used to create the device node for the new partition automatically.
Don´t forget toexecute kpartx-a tocreate the device node for the new partition automatically.
#kpartx-a /dev/"disk"
Optionally, create a file system or LVM physical volume using the partition. File systems should
be configured to use a 4kB block or a larger block size that is a multiple of 4kB.
# mkfs.ext3 -b 4096 /dev/mapper/"disk"
mke2fs 1.39 (29-May-2006)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
3933120 inodes, 7865817 blocks
393290 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
241 block groups
32768 blocks per group, 32768 fragments per group
16320 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
To see on the storage if the lun created are alignment do the follow:
Netatpp# priv set diag
Netapp# lun alignment show
The command above will show 5 lines of the information like follow :
/vol/vol_name/lun_name
Multiprotocol type: linux
Alignment: partial-writes
Writealignment histogrampercentage: 0, 0, 0, 0, 0, 0, 0, 14
Read alignment histogrampercentage: 0, 0, 0, 0, 0, 0, 0, 2
Partialwrites percentage: 85
Partialreads percentage: 97
On the information above you must analyse the third and the fourth line "Write aligment
histogram percentage" and "Read alignment histogram percentage" that have 8 bits of the
information.
The lun will be alignment if you have only percentage of the Read and Write on the first bit, like
we can see below:
/vol/vol_name/lun_name
Multiprotocol type: linux
Alignment: indeterminate
Writealignment histogrampercentage: 92, 0, 0, 0, 0, 0, 0, 0
Read alignment histogrampercentage: 13, 0, 0, 0, 0, 0, 0, 0
Partialwrites percentage: 5
Partialreads percentage: 86
After you have 99% of theread or write on the any bit, theinformation of the Alignment will
show "aligned like follow :
/vol/vol_name/lun_name
Multiprotocol type: linux
Alignment: aligned
Writealignment histogrampercentage: 99, 0, 0, 0, 0, 0, 0, 0
Read alignment histogrampercentage: 76, 0, 0, 0, 0, 0, 0, 0
Partialwrites percentage: 0
Partialreads percentage: 23
Don´t forget to reset the counters on the Netapp Storage to get the true analysis
Netapp# lun stats -z
I hope to help all people that haveproblem with misalignment Linux lun on theNetapp
Storages...
Best regardto all and enjoy the information
Ivan J.B.Silva

More Related Content

What's hot

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to KernelMuhammad Bilal
 
BOOTABLE OPERATING SYSTEM
BOOTABLE OPERATING SYSTEMBOOTABLE OPERATING SYSTEM
BOOTABLE OPERATING SYSTEMShahzeb Pirzada
 
1 Thinstall Tutorial
1 Thinstall Tutorial1 Thinstall Tutorial
1 Thinstall Tutorialguest31efc84
 
NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsAshish Mamgain
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot processTeja Bheemanapally
 
101 4.3 control mounting and unmounting of filesystems
101 4.3 control mounting and unmounting of filesystems101 4.3 control mounting and unmounting of filesystems
101 4.3 control mounting and unmounting of filesystemsAcácio Oliveira
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevelsJohn Ombagi
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTShahzeb Pirzada
 
Forcefully unmount a linux disk partition
Forcefully unmount a linux disk partitionForcefully unmount a linux disk partition
Forcefully unmount a linux disk partitionMuqthiyar Pasha
 
Linux Kernel Booting Process (2) - For NLKB
Linux Kernel Booting Process (2) - For NLKBLinux Kernel Booting Process (2) - For NLKB
Linux Kernel Booting Process (2) - For NLKBshimosawa
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linuxVicent Selfa
 
Installation of Windows & Linux operating system
Installation of Windows & Linux operating systemInstallation of Windows & Linux operating system
Installation of Windows & Linux operating systemSathishnkl561998
 

What's hot (19)

Adding System Call to Kernel
Adding System Call to KernelAdding System Call to Kernel
Adding System Call to Kernel
 
BOOTABLE OPERATING SYSTEM
BOOTABLE OPERATING SYSTEMBOOTABLE OPERATING SYSTEM
BOOTABLE OPERATING SYSTEM
 
1 Thinstall Tutorial
1 Thinstall Tutorial1 Thinstall Tutorial
1 Thinstall Tutorial
 
NFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systemsNFS is an excellent way of sharing files between linux and other unix systems
NFS is an excellent way of sharing files between linux and other unix systems
 
6 stages of linux boot process
6 stages of linux boot process6 stages of linux boot process
6 stages of linux boot process
 
101 4.3 control mounting and unmounting of filesystems
101 4.3 control mounting and unmounting of filesystems101 4.3 control mounting and unmounting of filesystems
101 4.3 control mounting and unmounting of filesystems
 
Clear cache memory
Clear cache memoryClear cache memory
Clear cache memory
 
Linux : Booting and runlevels
Linux : Booting and runlevelsLinux : Booting and runlevels
Linux : Booting and runlevels
 
Ramdisk
RamdiskRamdisk
Ramdisk
 
Linux
LinuxLinux
Linux
 
40 important command for linux
40 important command for linux40 important command for linux
40 important command for linux
 
BOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPTBOOTABLE OPERATING SYSTEM PPT
BOOTABLE OPERATING SYSTEM PPT
 
Forcefully unmount a linux disk partition
Forcefully unmount a linux disk partitionForcefully unmount a linux disk partition
Forcefully unmount a linux disk partition
 
Linux Kernel Booting Process (2) - For NLKB
Linux Kernel Booting Process (2) - For NLKBLinux Kernel Booting Process (2) - For NLKB
Linux Kernel Booting Process (2) - For NLKB
 
Install and configure linux
Install and configure linuxInstall and configure linux
Install and configure linux
 
Chapter9 r studio2
Chapter9 r studio2Chapter9 r studio2
Chapter9 r studio2
 
Linux monitoring
Linux monitoringLinux monitoring
Linux monitoring
 
linux
linuxlinux
linux
 
Installation of Windows & Linux operating system
Installation of Windows & Linux operating systemInstallation of Windows & Linux operating system
Installation of Windows & Linux operating system
 

Viewers also liked

FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and Coalfire
FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and CoalfireFedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and Coalfire
FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and CoalfireEric Chiu
 
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...OpenStack
 
How to shutdown and power up of the netapp cluster mode storage system
How to shutdown and power up of the netapp cluster mode storage systemHow to shutdown and power up of the netapp cluster mode storage system
How to shutdown and power up of the netapp cluster mode storage systemSaroj Sahu
 
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...Amazon Web Services
 
NetApp-ClusteredONTAP-Fall2012
NetApp-ClusteredONTAP-Fall2012NetApp-ClusteredONTAP-Fall2012
NetApp-ClusteredONTAP-Fall2012Michael Harding
 
SOFTBANK TELECOM Corp.
SOFTBANK TELECOM Corp.SOFTBANK TELECOM Corp.
SOFTBANK TELECOM Corp.NetApp
 
Multi-Site Perforce at NetApp
Multi-Site Perforce at NetAppMulti-Site Perforce at NetApp
Multi-Site Perforce at NetAppPerforce
 
Geekiest Conference Quotes by NetApp Insight Attendees
Geekiest Conference Quotes by NetApp Insight AttendeesGeekiest Conference Quotes by NetApp Insight Attendees
Geekiest Conference Quotes by NetApp Insight AttendeesNetApp Insight
 
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"Mike Nelson
 
Top Mandalay Bay Attractions
Top Mandalay Bay Attractions Top Mandalay Bay Attractions
Top Mandalay Bay Attractions NetApp Insight
 
How to make sure the right quality is delivered by my translation vendor? (Ed...
How to make sure the right quality is delivered by my translation vendor? (Ed...How to make sure the right quality is delivered by my translation vendor? (Ed...
How to make sure the right quality is delivered by my translation vendor? (Ed...TAUS - The Language Data Network
 
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...NetApp
 
NetApp Insight 2015 Las Vegas Sponsors Guide
NetApp Insight 2015 Las Vegas Sponsors GuideNetApp Insight 2015 Las Vegas Sponsors Guide
NetApp Insight 2015 Las Vegas Sponsors GuideNetApp Insight
 
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops VMworld
 
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...Amazon Web Services
 
OSC2012: Big Data Using Open Source: Netapp Project - Technical
OSC2012: Big Data Using Open Source: Netapp Project - TechnicalOSC2012: Big Data Using Open Source: Netapp Project - Technical
OSC2012: Big Data Using Open Source: Netapp Project - TechnicalAccenture the Netherlands
 
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)NetApp
 
File recovery with ShareFile on NetApp
File recovery with ShareFile on NetAppFile recovery with ShareFile on NetApp
File recovery with ShareFile on NetAppNetApp
 
NetApp FAS2200 Series with Flash Pool
NetApp FAS2200 Series with Flash PoolNetApp FAS2200 Series with Flash Pool
NetApp FAS2200 Series with Flash PoolNetApp
 

Viewers also liked (20)

FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and Coalfire
FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and CoalfireFedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and Coalfire
FedRAMP Compliant FlexPod architecture from NetApp, Cisco, HyTrust and Coalfire
 
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...
Addressing Issues of Risk & Governance in OpenStack without sacrificing Agili...
 
How to shutdown and power up of the netapp cluster mode storage system
How to shutdown and power up of the netapp cluster mode storage systemHow to shutdown and power up of the netapp cluster mode storage system
How to shutdown and power up of the netapp cluster mode storage system
 
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
(ENT201) New Generation Hybrid Architectures with Suncorp, NetApp, and AWS | ...
 
What’s New in Clustered Data ONTAP 8.3.1
What’s New in Clustered Data ONTAP 8.3.1What’s New in Clustered Data ONTAP 8.3.1
What’s New in Clustered Data ONTAP 8.3.1
 
NetApp-ClusteredONTAP-Fall2012
NetApp-ClusteredONTAP-Fall2012NetApp-ClusteredONTAP-Fall2012
NetApp-ClusteredONTAP-Fall2012
 
SOFTBANK TELECOM Corp.
SOFTBANK TELECOM Corp.SOFTBANK TELECOM Corp.
SOFTBANK TELECOM Corp.
 
Multi-Site Perforce at NetApp
Multi-Site Perforce at NetAppMulti-Site Perforce at NetApp
Multi-Site Perforce at NetApp
 
Geekiest Conference Quotes by NetApp Insight Attendees
Geekiest Conference Quotes by NetApp Insight AttendeesGeekiest Conference Quotes by NetApp Insight Attendees
Geekiest Conference Quotes by NetApp Insight Attendees
 
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"
NetApp SAPPHIRE 2016 in SUSE booth: "Safeguarding HANA"
 
Top Mandalay Bay Attractions
Top Mandalay Bay Attractions Top Mandalay Bay Attractions
Top Mandalay Bay Attractions
 
How to make sure the right quality is delivered by my translation vendor? (Ed...
How to make sure the right quality is delivered by my translation vendor? (Ed...How to make sure the right quality is delivered by my translation vendor? (Ed...
How to make sure the right quality is delivered by my translation vendor? (Ed...
 
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
VMware PEX Boot Camp - VMware View on NetApp: Technical Integration to Drive ...
 
NetApp Insight 2015 Las Vegas Sponsors Guide
NetApp Insight 2015 Las Vegas Sponsors GuideNetApp Insight 2015 Las Vegas Sponsors Guide
NetApp Insight 2015 Las Vegas Sponsors Guide
 
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops
VMworld 2013: Low-Cost, High-Performance Storage for VMware Horizon Desktops
 
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...
AWS Summit 2013 | Singapore - NetApp Private Storage for AWS with Equinix, Pr...
 
OSC2012: Big Data Using Open Source: Netapp Project - Technical
OSC2012: Big Data Using Open Source: Netapp Project - TechnicalOSC2012: Big Data Using Open Source: Netapp Project - Technical
OSC2012: Big Data Using Open Source: Netapp Project - Technical
 
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)
How NetApp IT Integrates ServiceNow with OnCommand Insight (OCI)
 
File recovery with ShareFile on NetApp
File recovery with ShareFile on NetAppFile recovery with ShareFile on NetApp
File recovery with ShareFile on NetApp
 
NetApp FAS2200 Series with Flash Pool
NetApp FAS2200 Series with Flash PoolNetApp FAS2200 Series with Flash Pool
NetApp FAS2200 Series with Flash Pool
 

Similar to Creating Disk Alignment on Linux Servers Using Netapp Luns

ExampleIT-600Journal Entry 1Every operating system, whethe.docx
ExampleIT-600Journal Entry 1Every operating system, whethe.docxExampleIT-600Journal Entry 1Every operating system, whethe.docx
ExampleIT-600Journal Entry 1Every operating system, whethe.docxSANSKAR20
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vmRon Morgan
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxkarlhennesey
 
Mirroring the root_disk under solaris SVM
Mirroring the root_disk under solaris SVMMirroring the root_disk under solaris SVM
Mirroring the root_disk under solaris SVMKazimal Abed Mohammed
 
Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)Gerard Braad
 
Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP tare
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share.Gastón. .Bx.
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layoutAcácio Oliveira
 
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]RootedCON
 
Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3bupbechanhgmail
 
Oracle database 12c client quick installation guide
Oracle database 12c client quick installation guideOracle database 12c client quick installation guide
Oracle database 12c client quick installation guidebupbechanhgmail
 
Tricks N Tips By Ravish Roshan
Tricks N Tips By Ravish RoshanTricks N Tips By Ravish Roshan
Tricks N Tips By Ravish Roshanravish roshan
 

Similar to Creating Disk Alignment on Linux Servers Using Netapp Luns (20)

ExampleIT-600Journal Entry 1Every operating system, whethe.docx
ExampleIT-600Journal Entry 1Every operating system, whethe.docxExampleIT-600Journal Entry 1Every operating system, whethe.docx
ExampleIT-600Journal Entry 1Every operating system, whethe.docx
 
Installation of oracle 12c RAC on linux vm
Installation of oracle 12c RAC  on linux vmInstallation of oracle 12c RAC  on linux vm
Installation of oracle 12c RAC on linux vm
 
Ch04 system administration
Ch04 system administration Ch04 system administration
Ch04 system administration
 
Ch04
Ch04Ch04
Ch04
 
Guide koha
Guide kohaGuide koha
Guide koha
 
Lab 1 Essay
Lab 1 EssayLab 1 Essay
Lab 1 Essay
 
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docxPart 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
Part 4 Scripting and Virtualization (due Week 7)Objectives1. .docx
 
Linux
LinuxLinux
Linux
 
Mirroring the root_disk under solaris SVM
Mirroring the root_disk under solaris SVMMirroring the root_disk under solaris SVM
Mirroring the root_disk under solaris SVM
 
Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)Inspection and maintenance tools (Linux / OpenStack)
Inspection and maintenance tools (Linux / OpenStack)
 
Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP Centralized Fog Server with OpenLDAP
Centralized Fog Server with OpenLDAP
 
AIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge ShareAIX Advanced Administration Knowledge Share
AIX Advanced Administration Knowledge Share
 
linux installation.pdf
linux installation.pdflinux installation.pdf
linux installation.pdf
 
101 2.1 design hard disk layout
101 2.1 design hard disk layout101 2.1 design hard disk layout
101 2.1 design hard disk layout
 
snortinstallguide
snortinstallguidesnortinstallguide
snortinstallguide
 
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]
Jaime Peñalba - Kernel exploitation. ¿El octavo arte? [rooted2019]
 
Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3Oracle database 12c client quick installation guide 3
Oracle database 12c client quick installation guide 3
 
Oracle database 12c client quick installation guide
Oracle database 12c client quick installation guideOracle database 12c client quick installation guide
Oracle database 12c client quick installation guide
 
Tricks N Tips By Ravish Roshan
Tricks N Tips By Ravish RoshanTricks N Tips By Ravish Roshan
Tricks N Tips By Ravish Roshan
 
9i hp relnotes
9i hp relnotes9i hp relnotes
9i hp relnotes
 

Creating Disk Alignment on Linux Servers Using Netapp Luns

  • 1. Creating disk alignment on Linux Servers using Netapp Luns (iscsi or FC/FCOE) I decided to create this report, because i have found that many customers facing this problem that the principle is not critical, but as the storage grows it can become a major performance problem. Follow below thetasks to beexecuted: - Install the correct host utilities version on Linux server - Install the correct snapdriver version on Linux server - Configure correct parameters on the file configuration of the multipath software (/etc/multipath.conf) - Create lun selecting type Linux,because if you don´t select correct operation system Type the lun will be misalignment on the Storage - Create the initiator group selecting the correct operation system (In this case Linux) and don´t forget to enable ALUA if you are using multiple paths. - After alocate the lun and recognize on the server do the follow: #fdisk /dev/mapper/"disk" Create the primary partition and after create, enter on the expert mode typing X on the follow fdisk options" Command (m for help):X " You will see the follow below when entry on the expert mode: Enter expert mode in fdisk and change the starting LBA of the partition to a value that is evenly divisible by eight. In the following example, the default starting sector is 63 and it is changed to 64 because 64 is evenly divisible by eight. The default starting sector chosen by fdisk is based on the size of the LUN. The LUN size is used by fdisk to calculate a pseudo geometry which can vary between different versions of fdisk. Command (m for help): x Expert command (m for help): b Partition number (1-4): 1 New beginning of data (63-62926604, default 63): 64 Expert command (m for help): p Disk /dev/mapper/”disk”: 255 heads, 63 sectors, 3917 cylinders Nr AF Hd Sec Cyl Hd Sec Cyl Start Size ID 1 00 1 1 0 254 63 1023 64 62926541 83 2 00 0 0 0 0 0 0 0 0 00 3 00 0 0 0 0 0 0 0 0 00 4 00 0 0 0 0 0 0 0 0 00 (Fdisk may print a warning similar to the following as a result of the new offset, this warning may be ignored.) Partition 1 has different physical/logical beginnings (non-Linux?): phys=(0, 1, 1) logical=(0, 1, 2)
  • 2. Write the partition table and create the new device files for the partition. The kpartx command is used to create the device node for the new partition automatically. Don´t forget toexecute kpartx-a tocreate the device node for the new partition automatically. #kpartx-a /dev/"disk" Optionally, create a file system or LVM physical volume using the partition. File systems should be configured to use a 4kB block or a larger block size that is a multiple of 4kB. # mkfs.ext3 -b 4096 /dev/mapper/"disk" mke2fs 1.39 (29-May-2006) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 3933120 inodes, 7865817 blocks 393290 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 241 block groups 32768 blocks per group, 32768 fragments per group 16320 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done To see on the storage if the lun created are alignment do the follow: Netatpp# priv set diag Netapp# lun alignment show The command above will show 5 lines of the information like follow : /vol/vol_name/lun_name Multiprotocol type: linux Alignment: partial-writes Writealignment histogrampercentage: 0, 0, 0, 0, 0, 0, 0, 14 Read alignment histogrampercentage: 0, 0, 0, 0, 0, 0, 0, 2 Partialwrites percentage: 85 Partialreads percentage: 97 On the information above you must analyse the third and the fourth line "Write aligment histogram percentage" and "Read alignment histogram percentage" that have 8 bits of the information.
  • 3. The lun will be alignment if you have only percentage of the Read and Write on the first bit, like we can see below: /vol/vol_name/lun_name Multiprotocol type: linux Alignment: indeterminate Writealignment histogrampercentage: 92, 0, 0, 0, 0, 0, 0, 0 Read alignment histogrampercentage: 13, 0, 0, 0, 0, 0, 0, 0 Partialwrites percentage: 5 Partialreads percentage: 86 After you have 99% of theread or write on the any bit, theinformation of the Alignment will show "aligned like follow : /vol/vol_name/lun_name Multiprotocol type: linux Alignment: aligned Writealignment histogrampercentage: 99, 0, 0, 0, 0, 0, 0, 0 Read alignment histogrampercentage: 76, 0, 0, 0, 0, 0, 0, 0 Partialwrites percentage: 0 Partialreads percentage: 23 Don´t forget to reset the counters on the Netapp Storage to get the true analysis Netapp# lun stats -z I hope to help all people that haveproblem with misalignment Linux lun on theNetapp Storages... Best regardto all and enjoy the information Ivan J.B.Silva