This post is more than 5 years old
5 Practitioner
•
274.2K Posts
0
850
ECS 2.0 installation issue
Hi,
After I ran command "./step1_ecs_singlenode_install.py --disk mapper/mpatha", it would prompt:
[09/Jul/2015 04:29:53] INFO [root:247] Partitioning the disk '/dev/mapper/mpatha'
Device does not contain a recognized partition table
Building a new DOS disklabel with disk identifier 0xd75fa9f7.
[09/Jul/2015 04:29:53] ERROR [root:268] Command '['fdisk', '/dev/mapper/mpatha']' returned non-zero exit status 1
Traceback (most recent call last):
File "./step1_ecs_singlenode_install.py", line 249, in prepare_data_disk_func
output = subprocess.check_output(["fdisk", disk_path], stdin=ps.stdout)
File "/usr/lib64/python2.7/subprocess.py", line 575, in check_output
raise CalledProcessError(retcode, cmd, output=output)
CalledProcessError: Command '['fdisk', '/dev/mapper/mpatha']' returned non-zero exit status 1
[09/Jul/2015 04:29:53] CRITICAL [root:269] Aborting program! Please review log.
This error is at line 248: ps = subprocess.Popen(["echo", "-e", "\"o\nn\np\n1\n\n\nw\""], stdout=subprocess.PIPE)
I manually tried:
[root@xbuiiopubup0028 ecs-single-node]# fdisk /dev/mapper/mpatha
.....snipped.......
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table. The new table will be used at
the next reboot or after you run partprobe(8) or kpartx(8)
Syncing disks.
[root@xbuiiopubup0028 ecs-single-node]# echo $?
1
[root@xbuiiopubup0028 ecs-single-node]#
The warning after "w" command in fdisk is normal in Linux...
As a workaround, I had to manually fdisk my disk to create partition, and then replace "w" with "q" in line 248 to bypass, and then rerun the step1*.py.
msalem_cfd6ea
19 Posts
0
July 24th, 2015 12:00
Hello Leonli,
Thank you for the information. The pre-requirement for the script physical raw data drive, We did not test the script with multipath devices yet. We would consider to solution for multipath devices in future.
Thanks,
Magdy