Disk Storage Setup with Linux on System Z Susanne Wintenberger

Disk Storage Setup with Linux on System Z Susanne Wintenberger

IBM and Linux: Community Innovation for your Business Disk Storage Setup with Linux on System z Susanne Wintenberger ([email protected]) IBM Lab Boeblingen, Germany © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Trademarks The following are trademarks of the International Business Machines Corporation in the United States, other countries, or both. Not all common law marks used by IBM are listed on this page. Failure of a mark to appear does not mean that IBM does not use the mark nor does it mean that the product is not actively marketed or is not significant within its relevant market. Those trademarks followed by ® are registered trademarks of IBM in the United States; all others are trademarks or common law marks of IBM in the United States. For a complete list of IBM Trademarks, see www.ibm.com/legal/copytrade.shtml: *, AS/400®, e business(logo)®, DBE, ESCO, eServer, FICON, IBM®, IBM (logo)®, iSeries®, MVS, OS/390®, pSeries®, RS/6000®, S/30, VM/ESA®, VSE/ESA, WebSphere®, xSeries®, z/OS®, zSeries®, z/VM®, System i, System i5, System p, System p5, System x, System z, System z9®, BladeCenter® The following are trademarks or registered trademarks of other companies. Adobe, the Adobe logo, PostScript, and the PostScript logo are either registered trademarks or trademarks of Adobe Systems Incorporated in the United States, and/or other countries. Cell Broadband Engine is a trademark of Sony Computer Entertainment, Inc. in the United States, other countries, or both and is used under license therefrom. Java and all Java-based trademarks are trademarks of Sun Microsystems, Inc. in the United States, other countries, or both. Microsoft, Windows, Windows NT, and the Windows logo are trademarks of Microsoft Corporation in the United States, other countries, or both. Intel, Intel logo, Intel Inside, Intel Inside logo, Intel Centrino, Intel Centrino logo, Celeron, Intel Xeon, Intel SpeedStep, Itanium, and Pentium are trademarks or registered trademarks of Intel Corporation or its subsidiaries in the United States and other countries. UNIX is a registered trademark of The Open Group in the United States and other countries. Linux is a registered trademark of Linus Torvalds in the United States, other countries, or both. ITIL is a registered trademark, and a registered community trademark of the Office of Government Commerce, and is registered in the U.S. Patent and Trademark Office. IT Infrastructure Library is a registered trademark of the Central Computer and Telecommunications Agency, which is now part of the Office of Government Commerce. * All other products may be trademarks or registered trademarks of their respective companies. Notes: Performance is in Internal Throughput Rate (ITR) ratio based on measurements and projections using standard IBM benchmarks in a controlled environment. The actual throughput that any user will experience will vary depending upon considerations such as the amount of multiprogramming in the user©s job stream, the I/O configuration, the storage configuration, and the workload processed. Therefore, no assurance can be given that an individual user will achieve throughput improvements equivalent to the performance ratios stated here. IBM hardware products are manufactured from new parts, or new and serviceable used parts. Regardless, our warranty terms apply. All customer examples cited or described in this presentation are presented as illustrations of the manner in which some customers have used IBM products and the results they may have achieved. Actual environmental costs and performance characteristics will vary depending on individual customer configurations and conditions. This publication was produced in the United States. IBM may not offer the products, services or features discussed in this document in other countries, and the information may be subject to change without notice. Consult your local IBM business contact for information on the product or services available in your area.All statements regarding IBM©s future direction and intent are subject to change or withdrawal without notice, and represent goals and objectives only. Information about non-IBM products is obtained from the manufacturers of those products or their published announcements. IBM has not tested those products and cannot confirm the Performance, compatibility, or any other claims related to non-IBM products. Questions on the capabilities of non-IBM products should be addressed to the suppliers of those products. Prices subject to change without notice. Contact your IBM representative or Business Partner for the most current pricing in your geography. 2 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Agenda ✱ Storage ± File Systems ± Partitions ✱ DASD ✱ LVM ± Physical Volumes (PVs) ± Volume Groups (VGs) ± Logical Volumes (LVs)) ± Advanced LVM Topics ✱ LVM Architecture ✱ dmsetup ✱ Summary 3 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Why is disk storage critical ? ✱ Host system Disk Storage usage ± application data but used at System Application Utilities Binaries runtime Runtime environment ± Swap space user heap and stack data ± program text loaded on demand Page Cache Mem. Mgmt Kernel ± shared memory segments paged out on memory shortage. File System File Swap Appl. System Space Data 4 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Linux File Systems ✱ Traditional file systems ± ext2 ± minix ± MS-DOS/VFAT ✱ Journaling file systems ± ext3 ± reiserFS ± NTFS (New Technology File System) 5 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Linux File Systems (cont©d) Process 1 Process 2 Process 2 * * * Virtual File System (VFS) ext2 ext3 reiserfs VFAT ... 6 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Linux Partition ✱ Partitioning is a means to divide a single hard drive into many logical drives. ✱ A partition is a contiguous set of blocks on a drive that are treated as an independant disk ✱ Why have multiple partitions? ± Encapsulate your data. ± Since file system corruption is local to a partition, you stand to loose only some of your data if an accident occurs. ± Increase disk space efficiency. ± Limit data growth. ± Runaway processes or maniacal users can consume so much disk space that the operating system no longer has room on the hard drive for its bookkeeping operations. hans@larsson:~> df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/123[...]-part1 247G 22G 212G 10% / /dev/sda1 1004M 31M 923M 4% /boot /dev/mapper/home 247G 87G 157G 36% /home0 [...] 7 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Linux on System z Partitioning disk type driver format with partition with ECKD dasd dasdfmt fdasd FBA dasd Ð fdisk SCSI zfcp+scsi Ð fdisk EDEV dasd Ð fdisk 8 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Querying information about the current DASD Setup Printing a list of active DASD devices: hans@larsson:~> lsdasd Bus-ID Status Name Device Type BlkSz Size Blocks ======================================================================= 0.0.ec24 active dasda 94:0 ECKD 4096 7043MB 1803060 The same information can also be obtained from the file /proc/dasd/devices How to check which DASDs a currently configured for your guest root@larsson:~> vmcp q dasd |grep -i `hostname` DASD EC24 ATTACHED TO LARSSON EC24 R/W 0XEC24 DASD EC25 ATTACHED TO LARSSON EC25 R/W 0XEC25 DASD EC26 ATTACHED TO LARSSON EC26 R/W 0XEC26 DASD EC27 ATTACHED TO LARSSON EC27 R/W FREE DASD EC28 ATTACHED TO LARSSON EC28 R/W 0XEC28 DASD EC29 ATTACHED TO LARSSON EC29 R/W 0XEC29 If the name of your guest if different from your hostname use vmcp q dasd only 9 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business Adding a DASD root@larsson:~> modprobe dasd_mod dasd=ec27 root@larsson:~> chccwdev -e ec27 Setting device 0.0.ec27 online Done root@larsson:~> lsdasd Bus-ID Status Name Device Type BlkSz Size Blocks ======================================================================= 0.0.ec24 active dasda 94:0 ECKD 4096 7043MB 1803060 0.0.ec27 n/f dasdb 94:4 ECKD root@larsson:~> dmesg|tail|grep dasd dasd(eckd): 0.0.ec27: 3390/0C(CU:3990/01) Cyl:10017 Head:15 Sec:224 dasd(eckd): 0.0.ec27: volume analysis returned unformatted disk 10 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business DASD low level format: dasdfmt formats a DASD (ECKD) disk to prepare it for usage with Linux on System z root@larsson:~> dasdfmt -d cdl -b 4096 -f /dev/dasdb -p Drive Geometry: 10017 Cylinders * 15 Heads = 150255 Tracks I am going to format the device /dev/dasdb in the following way: Device number of device : 0xec27 Labelling device : yes Disk label : VOL1 Disk identifier : 0XEC27 Extent start (trk no) : 0 Extent end (trk no) : 150254 Compatible Disk Layout : yes Blocksize : 4096 --->> ATTENTION! <<--- All data of that device will be lost. Type "yes" to continue, no will leave the disk untouched: yes Formatting the device. This may take a while (get yourself a coffee). cyl 385 of 3339 |#####---------------------------------------------| 11% 11 © 2009 IBM Corporation IBM and Linux: Community Innovation for your Business DASD: Partitioning Compared to other architectures, Linux on System z makes use of its own partitioning tool for DASD devices. The common Linux tool fdisk can not be used in this environment! Nevertheless the handling is similar. The system is limited to 3 partitions per

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    35 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us