Skip to content

XenServer 7.2 parted mkpart error

I am attempting to partition my Dell R710 for VM storage. Details: Newly installed XenServer 7.2. Accepted Defaults. 5x 2TB Drives, Raid 5. Single Virtual Disk. Total storage: 8TB All I want to do is add two partitions, a 4TB for VM storage, then whatever is left for media storage (~ 3.9TB). When I run parted…

string to long, not giving me the correct answer

I am trying to convert number stored in the c string to long int. But I am not getting the expected output: Output : 821493369 gcc version 4.4.7 20120313 (Red Hat 4.4.7-16) Can you please advise what am I doing wrong here? Thanks. Answer In addition to using long long, you can use exact width types from stdin…

Shellscript If statement returns error

I am trying to check if a file is older than 5 minutes and if that is the case I want to call another shell script which sends me a mail. check_file.sh: Error output: 3: ./check_file.sh: [1]: not found Answer Try something like: