- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- LVM for VDISK
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
Forums
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
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
тАО10-05-2008 10:20 PM
тАО10-05-2008 10:20 PM
Now should I need to use the LVM to manage the Storage/VDISKS ?
I mean should I create traditional partitions or should I use LVM(Logical Volumes) ?
I dont think that I need to use the LVM for the VDISK, because I can resize them(VDISK) on the fly(without repartitioning/formating) ?
am I right
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 12:58 AM
тАО10-06-2008 12:58 AM
Re: LVM for VDISK
Once presented to the system by the EVA, LVM is the best tool for managing disks the system sees.
I recommend you using LVM. It provides the most storage flexibility in these environments.
Resizing on the fly is possible using resize2fs on RHEL 5.x and ext2online for RHEL 4 and earlier releases.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 03:38 AM
тАО10-06-2008 03:38 AM
Re: LVM for VDISK
>Once presented to the system by the EVA, LVM is the best tool for managing >disks the system sees.
How and why ? what benefits one can get by managing the VDISKs using LVM ?
>...It provides the most storage flexibility in these environments.
Please give examples
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 04:19 AM
тАО10-06-2008 04:19 AM
SolutionYes, but on systems with LVM this is not normally done. It's probably better to create a new vdisk and attach it to the existing volume group using vgextend.
If you extend the vdisk, you must "fdisk" again your partition, if you do it correctly, you won't lose any data. Then, you have to use the pvresize command.
>> Now should I need to use the LVM to manage the Storage/VDISKS ?
Probably yes.
>> Please give examples
Extend the volume group and logical volumes with vgextend/lvextend to multiple disks.
Create snapshots with lvcreate -s.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 07:13 AM
тАО10-06-2008 07:13 AM
Re: LVM for VDISK
Once you get the system to fully recognize the new size, you'll need to repartition. When I say "repartition" I actually mean "delete the partition with all your precious data on it and create a new one with the same starting cylinder". It's reasonably safe, but a little scary and there is some risk involved. Or you can create a new partition, but then you'll never be able to expand the existing partition.
Just use LVM. It will make life easier. There's a good reason that most major server platforms have some form of advanced disk management.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 08:39 AM
тАО10-06-2008 08:39 AM
Re: LVM for VDISK
http://www.redhat.com/magazine/009jul05/features/lvm2/
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 08:38 PM
тАО10-06-2008 08:38 PM
Re: LVM for VDISK
Ivan Ferreira wrote:
"If you extend the vdisk, you must "fdisk" again your partition, if you do it correctly, you won't lose any data".
Heironimus wrote:
"Once you get the system to fully recognize the new size, you'll need to repartition."
Sorry Ivan Ferreira and Heironimus, I dont agree on this point with both of you. what I experience is that after extending the vdisk, a reboot is required(to recognize the new/incremented size on OS/LINUX) and file system resize(resize_reiserfs or ext2online etc) utility is reqiured only, and I think that there is NO "fdisk" and/or "repartition" required.
Heironimus wrote:
"I think current Linux systems usually require a reboot to recognize a change in the size of a disk device."
Great, I am convinced, because if I use LVM, and if I need more space, I will create a new vdisk and add that vdisk/lun to volume group, and then increment the size of the logical volume(and nothing requires reboot). Nice point.
Thanks once again
Regards
Maaz
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-06-2008 08:41 PM
тАО10-06-2008 08:41 PM
Re: LVM for VDISK
"Yes, but on systems with LVM this is not normally done. It's probably better to create a new vdisk and attach it to the existing volume group using vgextend."
Millions of Thanks for sharing this tip(way of work). Nice and excellent information. ;).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2008 07:37 AM
тАО10-07-2008 07:37 AM
Re: LVM for VDISK
By the way, somewhere I have an old HP whitepaper on expanding storage on the SmartArray controller in a Proliant. Windows can recognize an expanded disk without a reboot, but they still recommended using dynamic disk (the Windows equivalent of LVM) and adding the space as a new LUN instead of growing the existing LUN. Just another point in favor of LVM and similar tools....
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2008 12:28 PM
тАО10-07-2008 12:28 PM
Re: LVM for VDISK
I can't say that I agree with you on the need to reboot after resizing a vdisk. You should only need to rescan the device. Ex.
echo 1 > /sys/bus/scsi/drivers/sd/3\:0\:0\:1/rescan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО10-07-2008 08:45 PM
тАО10-07-2008 08:45 PM
Re: LVM for VDISK
and Court Campbell, thanks for sharing Linux-way of recognizing(refreshing/rescanning) a LUN.
if PSP is installed on Linux, then there is a utility/command "hp_rescan -a" that rescan all new or existing LUNS, and I found that the increment in size is never reported by hp_rescan to the LINUX(SUSE), unless I reboot.
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1221767
I cant confirm that
echo 1 > /sys/bus/scsi/drivers/sd/3\:0\:0\:1/rescan
can do without reboot, but as soon as I got the the chance I'll post my comments(and assign points ;) ).
Regards
Maaz