Solved

need to create 3 partitions on a newly added vmdk file

Posted on 2014-04-08
5
570 Views
Last Modified: 2014-04-10
I have added a new drive ( vmdk) and i need to create these 3 partitions

/usr/sap  -  2GB
/sapmnt  -  3GB
/soft  -  5GB

how can i create it ?

any help would be appreciated
0
Comment
Question by:c_hockland
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
5 Comments
 
LVL 35

Accepted Solution

by:
Seth Simmons earned 500 total points
ID: 39986308
you need to first have linux recognize the new device (scroll down to step 2 since you already added it to the guest in the hypervisor)

Vmware Linux Guest Add a New Hard Disk Without Rebooting Guest
http://www.cyberciti.biz/tips/vmware-add-a-new-hard-disk-without-rebooting-guest.html

then you need to create your partitions with fdisk and format each one (you can use ext4 instead of ext3 as used in the article)

Creating a New Partition in Linux
http://download.parallels.com/desktop/v5/docs/en/Parallels_Desktop_Users_Guide/23117.htm

then you can mount and add to /etc/fstab

How to add a new partition to the fstab file
http://www.leonardoborda.com/blog/how-to-add-a-new-partition-to-the-fstab-file/

essentially the lines you add to fstab will look something like this:

/dev/sdb1            /usr/sap                   ext4    noatime,nodiratime       1 1
/dev/sdb2            /sapmnt                    ext4    noatime,nodiratime       1 1
/dev/sdb3            /soft                      ext4    noatime,nodiratime       1 1

Open in new window


you can substitute the mount options for whatever you need and the device name as appropriate
also all of it needs to be done as root
0
 
LVL 2

Expert Comment

by:asimat
ID: 39986345
Looks like you are using Linux. Which version ???

If you have added a second disk, it will most likely be sdb (first one is sda)

Use fdisk to create the new partitions. Quick guide here: https://www.transip.eu/question/359-how-do-add-partition-centos/

You will need to change/edit your /etc/fstab and add more lines to point to other partitions. Example below:

/dev/sdb1       /usr/sap               ext3    acl,user_xattr  1 3
0
 

Author Comment

by:c_hockland
ID: 39986387
how can i specify the size though ? using the cylinders ? or will it actually ask me for the size of the partition ?
0
 
LVL 35

Expert Comment

by:Seth Simmons
ID: 39986463
you can specify cylinders or size
if you want a 3gb partition specify +3G when it asks for last sector, +sectors, or +size
0
 
LVL 62

Expert Comment

by:gheist
ID: 39990238
Cylinders are past. Use sectors.
According to vmware's best practice you must align partitions on 128K or 256b boundaries
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
php56-php-mcrypt for rhel7 php56 1 172
Linux FTP Error 5 59
RHEL installation problems on HP Proliant DL 360 G6 server 20 148
UM7 Stop Sending packets with GPS Sensor 1 44
I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
Suggested Courses

751 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question