AnsweredAssumed Answered

How to solve problem with disksetup?

Question asked by reihane on Jun 17, 2013
Latest reply on Jun 19, 2013 by reihane
.I am working with mapr on vmware.I have installed mapr single node and i have problem with disksetup.Can i format the disk via vmware?

i ran this command:

/opt/mapr/server/disksetup -F /tmp/disks.txt
the output was: 2013-06-18 16:34:02,8910 ERROR Global mrconfig.cc:2411 x.x.0.0:0 InitDisk failed Device or resource busy.(16).
InitDisk /dev/sda7
InitDisk resp: status 16
Disk init /dev/sda7 failed. Error 16, Device or resource busy.


I have error in disksetup.log.

disksetup.log:
2013-06-18 16:34:02,827 23119 InitLogging:103 INFO

***** Starting disksetup: PID 23119 *****

2013-06-18 16:34:02,827 23119 <module>:866 INFO Using -F force option

2013-06-18 16:34:02,827 23119 <module>:897 INFO argv: ['/opt/mapr/server/disksetup', '-F', '/tmp/disks.txt']

2013-06-18 16:34:02,827 23119 LogCurrentInfo:634 INFO start setup

2013-06-18 16:34:02,827 23119 RunCmd:128 INFO Disk list :
/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  disk list

2013-06-18 16:34:02,833 23119 LogCurrentInfo:639 INFO ListDisks resp: status 0 count=1
guid 033D67D0-911C-F51E-8860-02AA38C05100

size 10239MB

ListDisks /dev/sda7

DG 0: Single SingleDisk5 Online
    
DG 1: Concat Concat12 Online
    
SP 0: name SP1, Online, size 4196 MB, free 3994 MB, path /dev/sda7
    

2013-06-18 16:34:02,834 23119 RunCmd:128 INFO DiskGroup list :
/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  dg list

2013-06-18 16:34:02,839 23119 LogCurrentInfo:644 INFO No. of DGs (2)


ListDGs 0: Concat DG Concat12 Online size = 10238MB path: /dev/sda7

SubDG 0/1: Single SingleDisk5 Online size = 10238MB path: /dev/sda7

ListDGs 1: Single DG SingleDisk5 Online size = 10238MB path: /dev/sda7
ParentDG Concat12 type: Concat path: /dev/sda7
    

2013-06-18 16:34:02,839 23119 RunCmd:128 INFO sp list :
/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  sp list

2013-06-18 16:34:02,845 23119 LogCurrentInfo:649 INFO ListSPs resp: status 0:1
No. of SPs (1), totalsize 4196 MB, totalfree 3994 MB

SP 0: name SP1, Online, size 4196 MB, free 3994 MB, path /dev/sda7

2013-06-18 16:34:02,845 23119 SetCldbRole:672 INFO Create cid = 1 for cldb role

2013-06-18 16:34:02,846 23119 LoadDiskTab:304 INFO No disktab file: /opt/mapr/conf/disktab

2013-06-18 16:34:02,846 23119 LoadInputFile:325 INFO Start parsing input file: /tmp/disks.txt

2013-06-18 16:34:02,846 23119 LoadInputFile:329 INFO /dev/sda7

2013-06-18 16:34:02,846 23119 LoadInputFile:354 INFO Loaded disks:
 
2013-06-18 16:34:02,846 23119 LoadInputFile:356 INFO ([], 0, ['/dev/sda7'], 1, '/dev/sda7')

2013-06-18 16:34:02,846 23119 GetMfsUp:677 INFO Lookup for : /opt/mapr/conf/mapr-clusters.conf

2013-06-18 16:34:02,846 23119 RunCmd:128 INFO mapr-mfs status:

/etc/init.d/mapr-mfs status

2013-06-18 16:34:02,877 23119 RunCmd:128 INFO Disk list :

/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  disk list

2013-06-18 16:34:02,884 23119 RunCmd:128 INFO Disk init /dev/sda7:

/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  disk init  -F /dev/sda7

2013-06-18 16:34:02,892 23119 RunCmd:131 ERROR rc=16

2013-06-18 16:34:02,892 23119 RunCmd:132 ERROR 2013-06-18 16:34:02,8910 ERROR Global mrconfig.cc:2411
x.x.0.0:0 InitDisk failed Device or resource busy.(16).

InitDisk /dev/sda7

InitDisk resp: status 16

2013-06-18 16:34:02,892 23119 AbortWithError:120 ERROR Disk init /dev/sda7 failed. Error 16, Device or resource busy.
2013-06-18 16:34:02,893 23119 AbortWithError:123 ERROR ['  File "/opt/mapr/server/disksetup", line
 913, in <module>\n    RunDiskSetup();\n', '  File "/opt/mapr/server/disksetup", line 807, in

RunDiskSetup\n    InitAllDisks(force);\n', '  File "/opt/mapr/server/disksetup", line 399, in

InitAllDisks\n    disk.InitDevices(forceOption);\n', '  File "/opt/mapr/server/disksetup", line 274,

 in InitDevices\n    InitDisk(dev, forceOption);\n', '  File "/opt/mapr/server/disksetup", line 155,

 in InitDisk\n    RunCmd(cmd, msg);\n', '  File "/opt/mapr/server/disksetup", line 141, in

RunCmd\n    AbortWithError(errMsg);\n', '  File "/opt/mapr/server/disksetup", line 122, in

AbortWithError\n    stack_trace = traceback.format_stack(frame)\n']
2013-06-18 16:34:02,893 23119 LogCurrentInfo:634 INFO Abort

2013-06-18 16:34:02,894 23119 RunCmd:128 INFO Disk list :

/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  disk list
2013-06-18 16:34:02,900 23119 LogCurrentInfo:639 INFO ListDisks resp: status 0 count=1

guid 033D67D0-911C-F51E-8860-02AA38C05100

size 10239MB
 
ListDisks /dev/sda7

DG 0: Single SingleDisk5 Online
    
DG 1: Concat Concat12 Online
    
SP 0: name SP1, Online, size 4196 MB, free 3994 MB, path /dev/sda7
    

2013-06-18 16:34:02,901 23119 RunCmd:128 INFO DiskGroup list :

/opt/mapr/server/mrconfig -h 127.0.0.1 -p 5660  dg list

2013-06-18 16:34:02,907 23119 LogCurrentInfo:644 INFO No. of DGs (2)



ListDGs 0: Concat DG Concat12 Online size = 10238MB path: /dev/sda7


what is my problem?
Thanks.

Outcomes