- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: LVM on sdd or sdd1 which is best?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-04-2012 04:30 AM - edited тАО04-04-2012 04:31 AM
тАО04-04-2012 04:30 AM - edited тАО04-04-2012 04:31 AM
Hi,
There is a new disk (/dev/sdd) is presented to our RHEL system. I have to configure LVM on the disk.
What is the best way to create LVM on a disk.
I am having two options now. Please tell me which one is best.
1) pvcreate /dev/sdd. initialize the disk for use by LVM and then create vg on it.
or
2) use fdisk and create /dev/sdd1 and use pvcreate and vgcreate?
If there is any other option please let me know?
Manoj K
Manoj K
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-07-2012 04:22 AM
тАО04-07-2012 04:22 AM
SolutionAdvantages and disadvantages of using pvcreate on the whole-disk device (your method 1):
+ wastes less disk space
+ if you have data alignment requirements (e.g. SSD disk, a disk with 4KB sector size, or a high-performance SAN LUN), they are easy to satisfy. If your RHEL version is new enough, pvcreate has a "--dataalignment" option; with older versions, the "--metadatasize" option can achieve the same thing indirectly.
- a disk used in this way cannot be bootable using standard PC BIOS + GRUB bootloader.
- if this is a SAN LUN and someone accidentally presents it to a Windows system, the Windows system cannot recognize that the disk is already in use.
Advantages and disadvantages of using fdisk (your method 2):
- wastes some disk space (traditionally the entire first track is dedicated to partition table only)
- if you have data alignment requirements, satisfying them may require some careful disk geometry calculations
+ the disk can be made bootable: BIOS will recognize it as a valid boot target, and you can add a separate /boot partition so that the GRUB bootloader (that uses BIOS to access the disk) can find its own configuration file, the kernel file and the initrd file.
+ if this is a SAN LUN and someone accidentally presents it to a Windows system, the Windows sysadmin will immediately see the disk is already partitioned with an unknown partition type (= Linux LVM) and hopefully won't overwrite it without checking with the SAN administrator first.
Which one is best? It depends on your situation. Which of the above-mentioned things are important to you and which are not?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО05-02-2012 04:39 AM
тАО05-02-2012 04:39 AM
Re: LVM on sdd or sdd1 which is best?
Hi MK,
Thanks for the information.
I got the information what i am looking for.
Thanks and Regards,
Manoj K
Manoj K