UnixServerAdmin

Server Administration & Management

How to remove a Partition Size Larger Than 2TB

Before removing a partition, unmount any partitions on the device and turn off any swap space on the device.

1. Start parted, where /dev/mapper/mpathbp is the device on which to remove the partition :-

# parted /dev/mapper/mpathbp

2. View the current partition table to determine the minor number of the partition to remove :-

(parted) print

3. Remove the partition with the command rm. For example, to remove the partition with minor number 3 :-

(parted) rm 3

4. The changes start taking place as soon as you press Enter, so review the command before committing to it. After removing the partition, use the print command to confirm that it is removed from the partition table. You should also view the output of

# cat /proc/partitions

to make sure the kernel knows the partition is removed. The last step is to remove it from the /etc/fstab file. Find the line that declares the removed partition, and remove it from the file.

Advertisements

July 11, 2013 - Posted by | SAN, Tips & Tricks, Unix/Linux | , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: