AnsweredAssumed Answered

disk format

Question asked by lydon_bigriver on Apr 3, 2018
Latest reply on Apr 4, 2018 by maprcommunity

I am installing MapR6 via virtualbox, and I added an extra VMDK disk for formating procedure to make sure the opt directory has enough space and I did not mount it, the step I did is below:

fdisk -l      ->  it shows:

Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes

 

and then  I formated it and seprate it into three partition:

fdisk /dev/sdb

 

and after execute the command " fdisk -l"  it shows :

Disk /dev/sdb: 20 GiB, 21474836480 bytes, 41943040 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x9bbe711d

Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 22048 20001 9.8M 83 Linux
/dev/sdb2 22528 44958 22431 11M 83 Linux
/dev/sdb3 45056 41943039 41897984 20G 83 Linux

 

from the above information,I thought I have add the disk successfully,and then I format them with the command "mkfs.ext3  /dev/sdb3",and it shows :

mke2fs 1.42.11 (09-Jul-2014)
Creating filesystem with 5237248 4k blocks and 1310720 inodes
Filesystem UUID: a6c846a9-1708-4a0b-95a3-bb92950d38a9
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

 

utill this step I still did not mount it,and the promblem appeared after I executed the command:

"/opt/mapr/server/configure.sh -secure -genkeys -Z 10.48.202.161  -C 10.48.202.161 -RM 10.48.202.161 -HS 10.48.202.161 -L /opt/mapr/logs/logmapr  -N root  -F /dev/sdb1,/dev/sdb2,/dev/sdb3"    and it shows :

apr/logs/logmapr -N root -F /dev/sdb1,/dev/sdb2,/dev/sdb3
Configuring Hadoop-2.7.0 at /opt/mapr/hadoop/hadoop-2.7.0
Done configuring Hadoop
Not enough disk space on "/opt". Required disk space is at least 1024 MB and "/opt" has only 274 MB
Do you still wish to continue? [y/n] y
Not enough disk space on "/tmp". Required disk space is at least 1024 MB and "/tmp" has only 274 MB
Do you still wish to continue? [y/n] y
Error: disklist file "/dev/sdb1,/dev/sdb2,/dev/sdb3" does not exist

apparently, the problem is because it could not found the disk that I added.

 

After searching the solution and simmilar problem from the net as well as this coummunity, I guess it may the user has not have the permission to access the disk, so I execute the command "ls -l /dev/sdb*"  to check the permission things and it shows :

mapr01:/ # ls -l /dev/sdb*
brw-rw---- 1 root disk 8, 16 Apr 3 15:49 /dev/sdb
brw-rw---- 1 root disk 8, 17 Apr 3 15:54 /dev/sdb1
brw-rw---- 1 root disk 8, 18 Apr 3 15:54 /dev/sdb2
brw-rw---- 1 root disk 8, 19 Apr 3 15:54 /dev/sdb3

 

but I use root as user to execute all command above,     and also I execute the command "chmod 777 /dev/sdb" things did not get changed ,it still showed the disk does not exist. 

at last, I add a user named mapr as well as a group mapr, and give all root  privilege to mapr user, and things still did not get changed

 

 

 

What should I do to solve this problem?

Thank you so much.

Come to save me please!!!

Outcomes