Re: Creating RAID Arrays on zLinux / zVM minidisks
Typically, minidisk devices only have a single partition because it doesn't make much sense to have more (just have more minidisks), but in practice you can have up to three. Also, so called Linux disk layout only supports one partition. The driver still uses up four minor numbers and the other layout it handles therefore only supports up to three partitions max. -- R; -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
Douglas Wooster suggested: Option t in fdasd can be used to change the partition type to Linux raid. Then Mark Post noted: Not that I'm aware of. I've only seen Linux native and Linux swap for fdasd, including the one from s390-tools 1.8.0. Finally, Dan [ISO-8859-1] Hor?k wrote: We are patching fdasd to support the Linux Raid type since RHEL 3 times (2003). I love it when the distributors not only remove that awkward burden of downloading package sources but also go the extra mile and fix the code before it's broken. -- Dan Hor??k, RHCE Software Engineer, BaseOS Red Hat Czech s.r.o., Purky??ova 99, 612 45 Brno -- Rick; -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
Mark Post píše v Ne 08. 03. 2009 v 20:02 -0600: On 3/5/2009 at 4:43 PM, Hall, Ken (GTS) ken_h...@ml.com wrote: Option t in fdasd can be used to change the partition type to Linux raid. Not that I'm aware of. I've only seen Linux native and Linux swap for fdasd, including the one from s390-tools 1.8.0. We are patching fdasd to support the Linux Raid type since RHEL 3 times (2003). -- Dan Horák, RHCE Software Engineer, BaseOS Red Hat Czech s.r.o., Purkyňova 99, 612 45 Brno -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
From s390utils-1.3.2-2.40.16: Disk /dev/dasdc: 5700 cylinders, 15 tracks per cylinder, 12 blocks per track 4096 bytes per block volume label: VOL1, volume identifier: 0X0109 maximum partition number: 3 --- tracks --- Device start end length Id System /dev/dasdc1 285499854981 Linux native change partition type partition id (use 0 to exit): 1 current partition type is: Linux native 1 Linux native 2 Linux swap 3 Linux raid new partition type: -Original Message- From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of Dan Horák Sent: Monday, March 09, 2009 3:38 AM To: LINUX-390@VM.MARIST.EDU Subject: Re: [LINUX-390] Creating RAID Arrays on zLinux / zVM minidisks Mark Post píše v Ne 08. 03. 2009 v 20:02 -0600: On 3/5/2009 at 4:43 PM, Hall, Ken (GTS) ken_h...@ml.com wrote: Option t in fdasd can be used to change the partition type to Linux raid. Not that I'm aware of. I've only seen Linux native and Linux swap for fdasd, including the one from s390-tools 1.8.0. We are patching fdasd to support the Linux Raid type since RHEL 3 times (2003). -- Dan Horák, RHCE Software Engineer, BaseOS Red Hat Czech s.r.o., Purkyňova 99, 612 45 Brno -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to Merrill Lynch are references to any company in the Merrill Lynch Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. -- -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
On 3/9/2009 at 3:37 AM, Dan Horákdho...@redhat.com wrote: -snip- We are patching fdasd to support the Linux Raid type since RHEL 3 times (2003). Interesting. It's not necessary, but I guess it can avoid some confusion to new users. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
On 3/5/2009 at 4:43 PM, Hall, Ken (GTS) ken_h...@ml.com wrote: Option t in fdasd can be used to change the partition type to Linux raid. Not that I'm aware of. I've only seen Linux native and Linux swap for fdasd, including the one from s390-tools 1.8.0. Mark Post -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Creating RAID Arrays on zLinux / zVM minidisks
Okay, this is not real work, been working on my RHCT, and decided to test what I can do on a PC to the zLinux platform. I am trying to create a RAID-1 Array (two disks mirroring each other) in a zVM environment. I created two minidisks in zVM and am trying to format them on the zLinux side, using fdasd (instead of fdisk on the PC side). But I see no option to format fd the disks, with the interactive, it keeps asking for partition number (here is the display): (/root)#fdasd /dev/dasdk reading volume label ..: VOL1 reading vtoc ..: ok Command action m print this menu p print the partition table n add a new partition d delete a partition v change volume serial t change partition type r re-create VTOC and delete all partitions u re-create VTOC re-using existing partition sizes s show mapping (partition number - data set name) q quit without saving changes w write table to disk and exit Command (m for help): t Disk /dev/dasdk: cylinders : 750 tracks per cylinder ..: 15 blocks per track .: 12 bytes per block ..: 4096 volume label .: VOL1 volume serial : 0X0205 max partitions ...: 3 --- tracks --- Device start end length Id System 21124911248 unused change partition type partition id (use 0 to exit): Has anyone played with software RAID on the mainframe Linux? James Chaplin Systems Programmer, MVS, zVM zLinux Base Technologies, Inc -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
Yes. It works pretty much the same way as it does on Intel. You use the mdadm package to create raid arrays, but it's done at the partition level. Option t in fdasd can be used to change the partition type to Linux raid. Typically, minidisk devices only have a single partition because it doesn't make much sense to have more (just have more minidisks), but in practice you can have up to three. -Original Message- From: Linux on 390 Port [mailto:linux-...@vm.marist.edu] On Behalf Of CHAPLIN, JAMES (CTR) Sent: Thursday, March 05, 2009 4:16 PM To: LINUX-390@VM.MARIST.EDU Subject: [LINUX-390] Creating RAID Arrays on zLinux / zVM minidisks Okay, this is not real work, been working on my RHCT, and decided to test what I can do on a PC to the zLinux platform. I am trying to create a RAID-1 Array (two disks mirroring each other) in a zVM environment. I created two minidisks in zVM and am trying to format them on the zLinux side, using fdasd (instead of fdisk on the PC side). But I see no option to format fd the disks, with the interactive, it keeps asking for partition number (here is the display): (/root)#fdasd /dev/dasdk reading volume label ..: VOL1 reading vtoc ..: ok Command action m print this menu p print the partition table n add a new partition d delete a partition v change volume serial t change partition type r re-create VTOC and delete all partitions u re-create VTOC re-using existing partition sizes s show mapping (partition number - data set name) q quit without saving changes w write table to disk and exit Command (m for help): t Disk /dev/dasdk: cylinders : 750 tracks per cylinder ..: 15 blocks per track .: 12 bytes per block ..: 4096 volume label .: VOL1 volume serial : 0X0205 max partitions ...: 3 --- tracks --- Device start end length Id System 21124911248 unused change partition type partition id (use 0 to exit): Has anyone played with software RAID on the mainframe Linux? James Chaplin Systems Programmer, MVS, zVM zLinux Base Technologies, Inc -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- This message w/attachments (message) may be privileged, confidential or proprietary, and if you are not an intended recipient, please notify the sender, do not use or share it and delete it. Unless specifically indicated, this message is not an offer to sell or a solicitation of any investment products or other financial product or service, an official confirmation of any transaction, or an official statement of Merrill Lynch. Subject to applicable law, Merrill Lynch may monitor, review and retain e-communications (EC) traveling through its networks/systems. The laws of the country of each sender/recipient may impact the handling of EC, and EC may be archived, supervised and produced in countries other than the country in which you are located. This message cannot be guaranteed to be secure or error-free. References to Merrill Lynch are references to any company in the Merrill Lynch Co., Inc. group of companies, which are wholly-owned by Bank of America Corporation. Securities and Insurance Products: * Are Not FDIC Insured * Are Not Bank Guaranteed * May Lose Value * Are Not a Bank Deposit * Are Not a Condition to Any Banking Service or Activity * Are Not Insured by Any Federal Government Agency. Attachments that are part of this E-communication may have additional important disclosures and disclaimers, which you should read. This message is subject to terms available at the following link: http://www.ml.com/e-communications_terms/. By messaging with Merrill Lynch you consent to the foregoing. -- -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390
Re: Creating RAID Arrays on zLinux / zVM minidisks
James, I think your problem is that you need to do 'n' (create a new partition) before you do 't' (change a partition's type). Looks like it thinks you have an empty volume which is all unallocated space (i.e. there are no partitions on it). Douglas On Thu March 5 2009, CHAPLIN, JAMES (CTR) CHAPLIN, JAMES (CTR) james.chap...@associates.dhs.gov wrote: Okay, this is not real work, been working on my RHCT, and decided to test what I can do on a PC to the zLinux platform. I am trying to create a RAID-1 Array (two disks mirroring each other) in a zVM environment. I created two minidisks in zVM and am trying to format them on the zLinux side, using fdasd (instead of fdisk on the PC side). But I see no option to format fd the disks, with the interactive, it keeps asking for partition number (here is the display): (/root)#fdasd /dev/dasdk reading volume label ..: VOL1 reading vtoc ..: ok Command action m print this menu p print the partition table n add a new partition d delete a partition v change volume serial t change partition type r re-create VTOC and delete all partitions u re-create VTOC re-using existing partition sizes s show mapping (partition number - data set name) q quit without saving changes w write table to disk and exit Command (m for help): t Disk /dev/dasdk: cylinders : 750 tracks per cylinder ..: 15 blocks per track .: 12 bytes per block ..: 4096 volume label .: VOL1 volume serial : 0X0205 max partitions ...: 3 --- tracks --- Device start end length Id System 21124911248 unused change partition type partition id (use 0 to exit): Has anyone played with software RAID on the mainframe Linux? James Chaplin Systems Programmer, MVS, zVM zLinux Base Technologies, Inc -- Permission is granted to use the email address(es), postal addresses, telephone numbers, Web site URLs, names, account numbers, userids, passwords, and other identifying or contact information contained in, or attached to, this email, for the purposes of responding to queries, providing support, or fulfilling sales orders contained in this email or its attachment(s) (if any). Trading, selling, otherwise publishing, or making available to employees or third parties, any identifying information contained in this email or its attachment(s) (if any) for other purposes, including use in advertising, is forbidden. -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390