Cpfmtxa from zVM, this will get rid of your first track error.

And then 


1.      To see the DASD devices recognized by Linux, issue the following 
command:
# cat /proc/dasd/devices
0201(ECKD) at ( 94: 0) is dasda : active at blocksize: 4096, 36000 blocks, 140 
MB
0202(ECKD) at ( 94: 4) is dasdb : active at blocksize: 4096, 564840 blocks, 
2206 MB
0203(ECKD) at ( 94: 8) is dasdc : active at blocksize: 4096, 36000 blocks, 140 
MB
0204(ECKD) at ( 94: 12) is dasdd : active at blocksize: 4096, 36000 blocks, 140 
MB 


2.      To format a single DASD device, a block size of 4 KB is recommended. 
Use the following command:
# dasdfmt -b 4096 -f /dev/dasdc
Drive Geometry: 200 Cylinders * 15 Heads = 3000 Tracks
I am going to format the device /dev/dasdc in the following way:
Device number of device : 0x203
Labelling device : yes
Disk label : VOL1
Disk identifier : 0X0203
Extent start (trk no) : 0
Extent end (trk no) : 2999
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).
Finished formatting the device.
Rereading the partition table... ok

Answer yes to the query. 


3.      To create a single partition from a formatted DASD, use the -a flag of 
the fdasd command. If the -a flag is omitted, an interactive formatting session 
similar to the PC fdisk command is invoked, as follows:
# fdasd -a /dev/dasdc
auto-creating one partition for the whole disk...
writing volume label...
writing VTOC...
rereading partition table..
This:   

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of Testa, 
Richard
Sent: Tuesday, May 24, 2011 12:13 PM
To: [email protected]
Subject: Re: trying to format dasd in linux

Getting the following now:


[root@ZVM dev]# dasdfmt -b 4096 -d cdl -f /dev/dasde
dasdfmt: Unable to open device /dev/dasde: No such device
[root@ZVM dev]#

Best Regards
 
Richard Testa 
OIT-Operation 
Unix Systems Administrator 
NH Department of Information Technology 
603-271-5460 (w)   603-235-2659 (c) 
www.nh.gov/doit

-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
Pat Carroll
Sent: Tuesday, May 24, 2011 12:05 PM
To: [email protected]
Subject: Re: trying to format dasd in linux

Try:

dasdfmt -b 4096 -d cdl -f /dev/dasde

/dev/dasde1 refers to a partition on /dev/dasde 


Patrick Carroll  |  Technology Architect II 
L.L.Bean, Inc.(r) |  Double L St. |  Freeport ME 04033 
http://www.llbean.com | [email protected] | 207.552.2426 

CONFIDENTIALITY NOTICE: This e-mail and any attachments may contain
confidential information that is legally privileged. The information is
solely for the use of the intended recipient(s). Any disclosure,
copying, distribution, or other use of this information is strictly
prohibited. If you have received this e-mail in error, please notify the
sender by return e-mail and delete this message.


-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
Testa, Richard
Sent: Tuesday, May 24, 2011 11:41 AM
To: [email protected]
Subject: trying to format dasd in linux

Running dasdfmt command as follows and receiving the following: Please
help

 

[root@ZVM /]# dasdfmt -b 4096 -d cdl -f /dev/dasde1

Drive Geometry: 3338 Cylinders * 15 Heads =  50070 Tracks

 

I am going to format the device /dev/dasde1 in the following way:

   Device number of device : 0x201

   Labelling device        : yes

   Disk label              : VOL1

   Disk identifier         : 0X0201

   Extent start (trk no)   : 0

   Extent end (trk no)     : 50069

   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).

dasdfmt: (invalidate first track) IOCTL BIODASDFMT failed. (Invalid
argument)

[root@ZVM /]#

 

Best Regards

 

Richard Testa
OIT-Operation
Unix Systems Administrator
NH Department of Information Technology 
603-271-5460 (w)   603-235-2659 (c) 
www.nh.gov/doit

 


----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or
visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/
-----------------------------------------------------
Please see the following link for the BlueCross BlueShield of Tennessee E-mail 
disclaimer:  http://www.bcbst.com/email_disclaimer.shtm

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to