- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: move a volume on the same disk
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
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
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
11-05-2001 01:16 PM
11-05-2001 01:16 PM
Is there any way to move a volume on the same disk.
Thank you
Jignesh Patel
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 01:22 PM
11-05-2001 01:22 PM
Re: move a volume on the same disk
filesystem / directory / logical volume / volume group?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 01:34 PM
11-05-2001 01:34 PM
Re: move a volume on the same disk
If you mean move the phusical extents of a logical volume from one physical volume of a volume group to another physical volume of the same volume group, then "yes". See the man (1M) pages for 'pvmove'.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 01:39 PM
11-05-2001 01:39 PM
Re: move a volume on the same disk
In other words - I'm REALLY asking: do the sizes of the disks matter?
for example:
disk c0t1d0 = 18GB
disk c1t1d0 = 36GB (i.e. new disk)
pvmove /dev/dsk/c0t1d0 /dev/dsk/c1t1d0
(I've not played with pvmove before)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 02:07 PM
11-05-2001 02:07 PM
Re: move a volume on the same disk
If you mean renaming Logical
volume, yes you can do it.
Make sure the filesystem
containing the LV is unmounted
and then just do a ""mv"' .
If it is raw volume, make
sure it is not being used
by running fuser command and
rename it.
If you mean, moving data
from one disk to another
in the Same volumegroup,
use pvmove command.
-raj
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 02:12 PM
11-05-2001 02:12 PM
SolutionIt doesn't. This is because the new disk will be in the same volume group and hence it possesses the same characterstics as of the old disk except for the number of extents.
However, unless you specificied MaxPhysicalExtents value (-e) while creating the volume group, it will not allot the extents more than what could be configured on the first disk in the volume group.
Jig,
You can use pvmove command to move the logical volumes across disks in a volume group. But if you want to move a logical volume from one place to other place on the same disk in a volume group, it is not possible. But you can create another logical volume , copy the data and then remove the old logical volume.
-Sri
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 02:13 PM
11-05-2001 02:13 PM
Re: move a volume on the same disk
Not sure why you would want to move a volume
to the same disk. I would assume you meant the
same volume group. Anyway the answer is 'pvmove'
Have a good read of the man page before using it.
There is some valuable hints there in regards
to having mirrored disks and the use of disks
in shared mode.
This is an extract from the man page
/Quote
source_pv_path must not appear as a dest_pv_path.
If source_pv_path is a member of a dest_pv_path, it is automatically excluded from being a destination physical volume.
\Unquote
HTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-05-2001 02:31 PM
11-05-2001 02:31 PM
Re: move a volume on the same disk
Darrell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 06:58 AM
11-06-2001 06:58 AM
Re: move a volume on the same disk
I mean moving the logical extends of
a logical volume from one portion of the disk (Physical volume) to another portion of the disk .The logical volume is contained on only one disk.
The portion of the disk where the logical volume is to be moved is free as appears in the following command.
pvdisplay -v /dev/dsk/c0t5d0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:09 AM
11-06-2001 07:09 AM
Re: move a volume on the same disk
Just wondering.
Jig, if you would explain exactly what you are attempting to accomplish, I'm sure we could assist.
Are you wanting to rename a lvol?
Are bad sectors the reason for the move?
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:13 AM
11-06-2001 07:13 AM
Re: move a volume on the same disk
Jig,
As James as told me before, easy on the points. Don't give away the rabbit before your problem is solved.
...jcd...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-06-2001 07:14 AM
11-06-2001 07:14 AM
Re: move a volume on the same disk
OK, I presume that you want to lvextend a logical volume what requires contiguous extents and another is in the way. As already indicated, since you want to move extents where the source and destination are the same physical disk, 'pvmove' can't be used.
Therefore, do this:
1) Make a new, temporary logical volume and declare a mountpoint for it called "/newdata".
2) Copy your current data from its current logical volume (let's call that "/olddata" for our example):
# cd /olddata
# find . | cpio -pudlmv /newdata
Obviously, make sure that the filesystem are "quiet" (not being used by applications) while you do this.
3) 'lvremove' the logical volume represented by the "olddata". This will free the extents you wish.
4. Edit /etc/fstab to delete the old reference to "olddata" and change the "newdata" mountpoint to be "olddata" on the *new* logical volume.
Regards!
...JRF...