Sponsored Content
Operating Systems Linux Red Hat Partitioning newly added disk to Redhat Post 302585171 by verdepollo on Tuesday 27th of December 2011 08:32:43 PM
Old 12-27-2011
Well, Red Hat strongly suggests not to use whole disks as PVs.

Using whole disks increases the risk of an external application overwriting the data under some rare circumstances.

Here's an example of this bug:
https://bugzilla.redhat.com/show_bug.cgi?id=154841

Even though most of those problems have already been patched and fixed in latest RHEL releases, Red Hat still discourages that practice for production/critical systems.

Using partitions of type 8e is the preferred method.
This User Gave Thanks to verdepollo For This Post:
 

10 More Discussions You Might Find Interesting

1. Solaris

disk partitioning

Total disk size is 38912 cylinders Cylinder size is 32130 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === ... (2 Replies)
Discussion started by: seyiisq
2 Replies

2. Solaris

Partitioning hard disk. Want 8 slices...have 9

Hi all I'm having difficulty setting up a proper disk structure on a 72GB HDD. The drive was previously part of a zfs pool. The zpool has ben destroyed and now I want to use the disk in a raid 5 array. I need to partition the disk accordingly though. This is what the partition table currently... (7 Replies)
Discussion started by: notreallyhere
7 Replies

3. Red Hat

Disk partitioning commands for RHEL5

I'm new to Linux 5, going through initial phases of installation and setting up devices, etc,, and much to my surprise discovered also an existence of a 2nd hard drive to try to initialize and partition perhaps using any built-in command i.e. "fdisk" or similar, but I couldn't get the command to... (4 Replies)
Discussion started by: su
4 Replies

4. Shell Programming and Scripting

title of newly added column

Hi, I have a csv file. I need to add one column at begining of the file, It just contains one value "amr". I am able to add column but unable to put title to it. Input Data: call_id,conn_id,result,ani 1,100,hungup,7601234 2,101,hungup,7601235 Desired Output: ... (6 Replies)
Discussion started by: ravi.videla
6 Replies

5. Red Hat

Redhat 5 can't see my newly added LUN.

hi all, i have added new LUN to Redhat 5. i have already scanned LUN devices and it is confirmed that Kernel sees the newly added LUN's. i have used /proc/partitions and verified that my disks are there. However, i cannot find my disk using fdisk -l command. I am not sure what did i... (2 Replies)
Discussion started by: gisu0602
2 Replies

6. UNIX for Dummies Questions & Answers

how to open file and see newly added updates

Hi, I just forgot what command we can use to open a file, and then see its updates, I remember that there is an option -f ,but with what command :wall: Tx Trent (1 Reply)
Discussion started by: trento17
1 Replies

7. UNIX for Dummies Questions & Answers

Which is a recommended method of partitioning Disk?

I m not sure if this is a right question to ask . During the installation of the OS, installation sw does partitioning for you. I m not quit sure if they have used parted or fdisk to partition the disk. (If they are using fdisk then you can't make partition > 2Tb )correct me if i m wrong.Also... (5 Replies)
Discussion started by: pinga123
5 Replies

8. UNIX for Advanced & Expert Users

CVS: can not checkout a newly added file

My project is on solaris 10 using cvs 1.12.13. A team member has added a new file to the repo using the add command followed by commit. When another team member executes the status command in the directory containing the new file they do not get notifiction that there is a file that needs to be... (0 Replies)
Discussion started by: twk
0 Replies

9. Red Hat

"Unable to Detect Newly added HDD - Redhat 5"

Hi Folks, I am unable to detected newly added HDD in my redhat-5 OS. I am expecting to get /dev/sdb. Following are the utilized commands or syntax. root@hostname% cat /etc/redhat-release Red Hat Enterprise Linux Client release 5.4 (Tikanga) echo "- - -" > /sys/class/scsi_host/host0/scan %... (1 Reply)
Discussion started by: Sricharan21
1 Replies

10. Linux

Mount a newly added LUN on a GNU/Linux distro

Hi I am not familiar with the linux, but I was asked to create a file system on a LUN from the NetApp that was mapped to the linux server. The server is runing: uname -a Linux localhost.localdomain 2.6.18-92.el5 #1 SMP Tue Apr 29 13:16:15 EDT 2008 x86_64 x86_64 x86_64 GNU/Linux and now... (6 Replies)
Discussion started by: fretagi
6 Replies
PVCREATE(8)						      System Manager's Manual						       PVCREATE(8)

NAME
pvcreate - initialize a disk or partition for use by LVM SYNOPSIS
pvcreate [-d|--debug] [-f[f]|--force [--force]] [-y|--yes] [-h|--help] [-v|--verbose] [-V|--version] PhysicalVolume [PhysicalVolume...] DESCRIPTION
pvcreate initializes PhysicalVolume for later use by the Logical Volume Manager (LVM). Each PhysicalVolume can be a disk partition, whole disk, meta device, or loopback file. For DOS disk partitions, the partition id must be set to 0x8e using fdisk(8), cfdisk(8), or a equiva- lent. For whole disk devices only the partition table must be erased, which will effectively destroy all data on that disk. This can be done by zeroing the first sector with: dd if=/dev/zero of=PhysicalVolume bs=512 count=1 Continue with vgcreate(8) to create a new volume group on PhysicalVolume, or vgextend(8) to add PhysicalVolume to an existing volume group. OPTIONS -d, --debug Enables additional debugging output (if compiled with DEBUG). -f, --force Force the creation without any confirmation. You can not recreate (reinitialize) a physical volume belonging to an existing volume group. In an emergency you can override this behaviour with -ff. In no case case can you initialize an active physical volume with this command. -s, --size Overrides the size of the physical volume which is normally retrieved. Useful in rare case where this value is wrong. More useful to fake large physical volumes of up to 2 Terabyes - 1 Kilobyte on smaller devices for testing purposes only where no real access to data in created logical volumes is needed. If you wish to create the supported maximum, use "pvcreate -s 2147483647k PhysicalVolume [PhysicalVolume ...]". All other LVM tools will use this size with the exception of lvmdiskscan(8) -y, --yes Answer yes to all questions. -h, --help Print a usage message on standard output and exit successfully. -v, --verbose Gives verbose runtime information about pvcreate's activities. -V, --version Print the version number on standard output and exit successfully. Example Initialize partition #4 on the third SCSI disk and the entire fifth SCSI disk for later use by LVM: pvcreate /dev/sdc4 /dev/sde DIAGNOSTICS
pvcreate returns an exit code of 0 for success or > 0 for error: 1 no physical volume on command line 2 error removing existing lvmtab entry for new physical volume 3 error setting up physical volume structure 4 error writing physical volume structure to disk 5 wrong partition type identifier 6 error physical volume name 7 error getting size of physical volume 95 driver/module not in kernel 96 invalid I/O protocol version 97 error locking logical volume manager 98 invalid lvmtab (run vgscan(8)) 99 invalid command line SEE ALSO
lvm(8), vgcreate(8), vgextend(8), lvcreate(8), cfdisk(8), fdisk(8), losetup(8), mdadd(8) AUTHOR
Heinz Mauelshagen <Linux-LVM@Sistina.com> Heinz Mauelshagen LVM TOOLS PVCREATE(8)
All times are GMT -4. The time now is 06:59 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy