04-30-2010
Partition management: lvm? fdisk? parted? (on RAID)
Hello,
I have a RHEL system with two 500GB hard drives in RAID 1 (I think hardware, but not 100% certain - any way to tell?).
It looks like it was just set up in default configuration with a small boot partition and one huge partition for the rest, which composes a LVM volume.
I want to break that partition up into at least two separate ones. What I am wondering is:
* What's the difference between using fdisk and parted? Any reason to use one over the other?
* Should I just use lvm instead to shrink the current volume and create a second one? Is there a down-side to use logical volumes without creating a physical partition with fdisk/parted?
* Being that there are already two disks in RAID 1 configuration, does partitioning with lvm or fdisk/parted transparently propagate to the mirror disk or do I need to do something to partition BOTH drives?
Thanks in advance!!
10 More Discussions You Might Find Interesting
1. Solaris
I have two disks on a sun blade 100. I just installed a solaris8 on the first disk. The installation was successful. But the problem is now I lost all data / partition on my second hard disk.
The possible reason could be:
1. I used default web start install. During the installation I didn't... (2 Replies)
Discussion started by: motor98
2 Replies
2. UNIX for Dummies Questions & Answers
I've created a partition with GNU Parted, how do I mount the partition?
The manual information at http://www.gnu.org/software/parted/manual/parted.html is good, but I am sure about how I mount the partition afterwards.
Thanks,
--Todd (1 Reply)
Discussion started by: jtp51
1 Replies
3. UNIX for Dummies Questions & Answers
Just started understanding linux filesystem and partition utilities.
I was going though some video tutorials by CBT nuggets and the author was cursing fdisk as fuzzy tool and recommending to use parted instead.
In our job environment i have seen almost every one using fdisk utility for... (1 Reply)
Discussion started by: pinga123
1 Replies
4. Shell Programming and Scripting
Hello folks,
I have 2.4TB san storage i want to make 4 partition each having 600GB. I use fdisk but not possible to do this because of fdisk limitation. So i tried parted but it make 2.4TB one partition but with parted not possible to make 4 partition having 600GB, may be i m doing wrong, can... (6 Replies)
Discussion started by: learnbash
6 Replies
5. UNIX for Dummies Questions & Answers
Hi Guys,
I m using redhat 6, I have installed root partition as non-LVM .
Is there any way i can convert it to LVM? (1 Reply)
Discussion started by: pinga123
1 Replies
6. Shell Programming and Scripting
Hi,
How can I run fdisk partition in a script without interactive input?
In manual procedure, I run fdisk device, select n, select p, presess enter for default start number (1), press enter to default end number, then select w for writing to the partition table. The command looks like... (3 Replies)
Discussion started by: hce
3 Replies
7. Red Hat
Hello,
I have been going through our environment and I see we have a few servers with LVM's setup and the file system type is still set to "83" within fdisk. If I change this to "8e", will it hurt the data or cause any loss? I need to know for sure before I make the change. (1 Reply)
Discussion started by: s ladd
1 Replies
8. Red Hat
Hello All,
I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows,
/boot - Linux Partition & another is
LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc).
Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies
9. UNIX for Dummies Questions & Answers
Hello,
Please refer to the below output:
# fdisk -l /dev/sda
Disk /dev/sda: 598.9 GB, 598999040000 bytes
255 heads, 63 sectors/track, 72824 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * ... (1 Reply)
Discussion started by: admin_db
1 Replies
10. UNIX for Dummies Questions & Answers
Oracle Linux 6.6
To create Physical Volumes for Volume groups (LVM) , the disk need to be partitioned to LVM type ie. 'Linux LVM' type . In fdisk , this can done by choosing 8e when prompted for partition type.
Since it is easy to script (non-interactive), I use parted command rather than... (1 Reply)
Discussion started by: John K
1 Replies
LEARN ABOUT REDHAT
raidstart
raidstart(8) System Manager's Manual raidstart(8)
NAME
raidstart, raidstop, - command set to manage md devices.
SYNOPSIS
raidstart [options] <raiddevice>*
raidstop [options] <raiddevice>*
DESCRIPTION
RAID devices are virtual devices created from two or more real block devices. This allows multiple disks to be combined into a single
filesystem, possibly with automated backup and recovery. Linux RAID devices are implemented through the md device driver.
If you're using the /proc filesystem, /proc/mdstat gives you informations about md devices status.
Currently, Linux supports linear md devices, RAID0 (striping), RAID1 (mirrroring), and RAID4 and RAID5. For information on the various lev-
els of RAID, check out:
http://ostenfeld.dk/~jakob/Software-RAID.HOWTO/
for new releases of the RAID driver check out:
ftp://ftp.fi.kernel.org/pub/linux/daemons/raid/alpha
Avaible commands are :
mkraid : configures (creates) md (RAID) devices in the kernel, banding multiple devices into one.
raidstart : activates (starts) an existing 'persistent' md device
raid0run : activates old nonpersistent RAID0/LINEAR md devices
raidstop : turns off an md device, and unconfigures (stops) it
By default, a systems RAID configuration is kept in /etc/raidtab, which can configure multiple RAID devices.
All of these tools work similiarly. If -a (or --all) is specified, the specified operation is performed on all of the RAID devices men-
tioned in the configuration file. Otherwise, one or more RAID devices must be specified on the command line. For example:
raid0run -a
Starts all of the 'old' RAID0 RAID devices specified in /etc/raidtab. If only /dev/md1 should be started, the following command should be
used instead:
raidstart /dev/md1
OPTIONS
-a, --all
Apply the command to all of the configurations specified in the config file.
-c, --configfile filename
Use filename as the configuration file (/etc/raidtab is used by default).
-h, --help
Displays a short usage message, then exits.
-V, --version
Displays a short version message, then exits.
NOTES
The raidtools are derived from the md-tools and raidtools packages, which were originally written by Marc Zyngier, Miguel de Icaza, Gadi
Oxman, Bradley Ward Allen, and Ingo Molnar.
BUGS
no known bugs.
SEE ALSO
raidtab(5), raid0run(8), raidstop(8), mkraid(8)
raidstart(8)