LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 03-16-2010, 02:16 AM   #1
linuzHX
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Rep: Reputation: 0
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
 
Old 03-16-2010, 08:05 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
Never mind - too late at night.

Did you detach it from MAINT ?.

Last edited by syg00; 03-16-2010 at 08:33 AM.
 
Old 03-16-2010, 08:43 PM   #3
linuzHX
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by syg00 View Post
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.
 
Old 03-20-2010, 12:49 AM   #4
linuzHX
LQ Newbie
 
Registered: Apr 2009
Posts: 11

Original Poster
Rep: Reputation: 0
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Perl: how to save an e-mail attachment on disk keeping the "&" character (no "%26"!!) d1s4st3r Programming 5 09-29-2010 09:30 PM
Kubuntu slow system -- now get "low disk space" error drjoewebb Linux - Hardware 8 08-23-2008 05:28 PM
error: Error for wireless request "Set Mode" (8B06) : invalid argument "roaming" penguin chick Linux - Wireless Networking 5 08-22-2008 01:16 PM
i got the next error: "isolinux: Disk error 80,AX=4280,drive 9f" after i tried AKAKAK Linux - Hardware 0 12-07-2006 06:17 PM
Gnome CD music player displays "disk error" msg. louieb Fedora 2 08-19-2006 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 02:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration