There is a simple way of creating partitions on a Linux server if you have the option to turn the server off during the process.
GPartd can be booted to give you a simple GUI interface to manage all disks attached to the Linux server in either a physical or virtual capacity.
Download GPartd from here: http://gparted.sourceforge.net/download.php
For this example I am going to do this to a virtual machine (SLES 11 x64)
- Copy the gpartd live ISO to an accessible datastore
- Attach the ISO to the server
- Power on the virtual machine
- Open the console (if virtualised)
- Press enter
- Don’t change the keymap unless you need to so press enter past this
- Change your language to your preferred language or press enter for the default (33 English)
- Press enter to start X Server
- Select disk on top right of window
- Click on Device -> New Partition Table
- Click OK
- Drag the slider to the desired size or enter required amount in fields and press Add
- Click Apply
- Click Apply if you want to accept the pending operations
- Take a note of the location of the disk, in this case it is /dev/sdb1
- Remove ISO from virtual CD-ROM drive or eject media from physical server.
- Log in
- Create the mount point folder eg: mkdir /mnt/disk1
- Type “mount /dev/sdb1 /test”
- Type “df -h” to see the volume
Should you have any questions, comments or suggestions, please don’t hesitate to comment below. If you like what you have read, please share it on your favourite social media medium.