LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Virtualization and Cloud (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/)
-   -   dasdfmt encounters "Disk in use!" error (https://www.linuxquestions.org/questions/linux-virtualization-and-cloud-90/dasdfmt-encounters-disk-in-use-error-795694/)

linuzHX 03-16-2010 02:16 AM

dasdfmt encounters "Disk in use!" error
 
Hi all,

I am running SLES10 SP2 under z/VM in a z9 mainframe box.

I was trying to add a new dasd MM8B8F into one of my linux guest linux01.

From maint, I issued "cpformat 8b8f as perm" and attached it to SYSTEM.

In user direct directory, I added a new line for Linux01:

USER LINUX01 LINUX01 256M 1G G
INCLUDE LNXDFLT
OPTION APPLMON
MDISK 100 3390 0001 3338 MM8B7E MR LINUX01 LINUX01 LINUX01
MDISK 101 3390 0001 3338 MM8B81 MR LINUX01 LINUX01 LINUX01
MDISK 102 3390 0001 3338 MM8B86 MR LINUX01 LINUX01 LINUX01
MDISK 103 3390 0001 3338 MM8B87 MR LINUX01 LINUX01 LINUX01
MDISK 104 3390 0001 3338 MM8B7F MR LINUX01 LINUX01 LINUX01
MDISK 105 3390 0001 3338 MM8B8C MR LINUX01 LINUX01 LINUX01
MDISK 106 3390 0001 3338 MM8B8A MR LINUX01 LINUX01 LINUX01
MDISK 107 3390 0001 3338 MM8B8B MR LINUX01 LINUX01 LINUX01
MDISK 109 3390 0001 3338 MM8B8F MR LINUX01 LINUX01 LINUX01
*

I did diskmap to make sure there is no overlap. After that, "DIRECTXA USER" is issued.

After linux01 is boot up, I issued "chccwdev -e 109" to online the disk. I can see it using lsdasd:

hxlnx01:~ # lsdasd
0.0.0100(ECKD) at ( 94: 0) is dasda : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0101(ECKD) at ( 94: 4) is dasdb : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0300(FBA ) at ( 94: 8) is dasdc : active at blocksize 512, 524288 blocks, 256 MB
0.0.0301(FBA ) at ( 94: 12) is dasdd : active at blocksize 512, 1048576 blocks, 512 MB
0.0.0102(ECKD) at ( 94: 16) is dasde : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0103(ECKD) at ( 94: 20) is dasdf : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0104(ECKD) at ( 94: 24) is dasdg : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0105(ECKD) at ( 94: 28) is dasdh : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0106(ECKD) at ( 94: 32) is dasdi : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0107(ECKD) at ( 94: 36) is dasdj : active at blocksize 4096, 600840 blocks, 2347 MB
0.0.0109(ECKD) at ( 94: 40) is dasdk : active at blocksize 4096, 600840 blocks, 2347 MB

Everything appeared fine until I tried to format it in linux.

hxlnx01:~ # dasdfmt -b 4096 -y -f /dev/dasdk
Disk in use!

I could use FORCE to enforce format, but later when i tried to partition it using fdasd I encountered same "disk in use" problem again..

Can anybody shed some light on this issue? I have tried using a different minidisk number but it doesn't solve the problem..

Thank you very much.

linuzHX

syg00 03-16-2010 08:05 AM

Never mind - too late at night.

Did you detach it from MAINT ?.

linuzHX 03-16-2010 08:43 PM

Quote:

Originally Posted by syg00 (Post 3900326)
Never mind - too late at night.

Did you detach it from MAINT ?.

Thanks for your reply.

Yes, I did. Please see the query below.

q 8b8f
DASD 8B8F CP SYSTEM MM8B8F 1

I won't be able to attach it to SYSTEM unless I detach it from MAINT.

I have tried to FORCE LINUX01 from VM side to ensure the guest is brought down completely, and then XAUTOLOG LINUX01. However the result is still not good.

linuzHX 03-20-2010 12:49 AM

Can anybody please give some hints? Any idea is welcome.

I have been struggling this for a couple of days.. still no clue at all..

Really appreciate your help. Thanks.


linuzHX


All times are GMT -5. The time now is 09:54 AM.