Solved

need to create 3 partitions on a newly added vmdk file

Posted on 2014-04-08
5
571 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

Use Case: Protecting a Hybrid Cloud Infrastructure

Microsoft Azure is rapidly becoming the norm in dynamic IT environments. This document describes the challenges that organizations face when protecting data in a hybrid cloud IT environment and presents a use case to demonstrate how Acronis Backup protects all data.

Question has a verified solution.

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

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…
In part one, we reviewed the prerequisites required for installing SQL Server vNext. In this part we will explore how to install Microsoft's SQL Server on Ubuntu 16.04.
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…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses

623 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