- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: LVM migration
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
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
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-21-2017 08:58 AM
04-21-2017 08:58 AM
LVM migration
Hello,
I am trying to migrate the LVM which has 11disks of 256Gb together but for filesystem which i am trying to migrate has only 28Gb allocated. These 11 disks are part of different file systems on the same volume group. I thought to migrate to a 60Gb lun as when I mirror it should have double the disk space but it is failing as may be expecting 256x2 disk space?
How can I migrate to 60Gb lun or what is the best approach to solve this?
Thank you in an advance!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2017 09:12 AM
04-21-2017 09:12 AM
Re: LVM migration
You need to give more details here.
OS version?
Current configuration details? "11 disks of 256Gb" does not say much. Is it local, SAN based? How is it allocated?
New environment? Where are you getting the new environment from?
Unless you give more details, you can not mirror 256GB-11disks down to 60GB-one-disk
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2017 09:26 AM
04-21-2017 09:26 AM
Re: LVM migration
OS version is 11.31. 11 disks are SAN storage.
/test filesystem is under vgtest, where the logical volume has 11 SAN disk luns of 25Gb each but the LVM is allocated to only 28Gb and that 28Gb is the size of the FS /test. I am trying to migrate from one SAN to different SAN. During this process without downtime, I am migrating and is successful on many servers. This server has different layout and I requested the SAN lun depending on the size of the FS not realizing the same disks are shared with different file systems(logical volumes). So instead of requesting 600Gb luns to mirror all 11 disks, and share the same disks with different file systems on the same volume group, can I migrate to dedicated luns of 60gb or something around that and seperate the disks of its own file system?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2017 10:08 AM
04-21-2017 10:08 AM
Re: LVM migration
Can you post the output of "vgdisplay -v /dev/vgtest"
At the LVM level, if your logical volume covers all 256GB, you would have to lvreduce the LV first before you can mirror to a smaller disk. Instead of mirroring you can also use pvmove.
Otherwise you can create a new LV and a new filesystem and copy the filesystem over.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-21-2017 10:52 AM
04-21-2017 10:52 AM
Re: LVM migration
oh ok, thank you
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-22-2017 10:07 PM
04-22-2017 10:07 PM
Re: LVM migration
...lvreduce...
Be very careful with lvreduce. You must always reduce the filesystem size first. If you have Online JFS, you can use the fsadm command to change the size of the filesystem. When reducing a filesystem, this command moves any files and directories that exist beyond the new smaller size.
If you don't have Online JFS, there is no way to reduce a filesystem. You must create a new lvol the size you need, initialize the filesystem on it, mount it, then copy the data to the new filesystem.
If you just use lvreduce, sectors that are in use by the filesystem will be destroyed.
Bill Hassell, sysadmin