HPE GreenLake Administration
- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvm: replacing a disk
Operating System - HP-UX
1834058
Members
2530
Online
110063
Solutions
Forums
Categories
Company
Local Language
back
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
back
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
Blogs
Information
Community
Resources
Community Language
Language
Forums
Blogs
Go to solution
Topic Options
- 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
03-13-2003 07:52 PM
03-13-2003 07:52 PM
We are using HPUX 10.20. I want to replace a disk. This is the first time, kindly give me steps to be followed.
We have only 1 disk
/dev/dsk/c0t4d0
in volume group vg02,which
is giving problem. This disk is having only 2 logical volume lvol1 and rawlog data area.
I want to replace this disk and the content to be
copied from old disk to new disk and then new disk should be placed as same as old disk , i.e., /dev/dsk/c0t4d0 and vg02.
Thanks in advance.
We have only 1 disk
/dev/dsk/c0t4d0
in volume group vg02,which
is giving problem. This disk is having only 2 logical volume lvol1 and rawlog data area.
I want to replace this disk and the content to be
copied from old disk to new disk and then new disk should be placed as same as old disk , i.e., /dev/dsk/c0t4d0 and vg02.
Thanks in advance.
Solved! Go to Solution.
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-14-2003 12:50 AM
03-14-2003 12:50 AM
Solution
connect the new disk at some other target (c0t5d0)
ioscan
pvcreate /dev/rdsk/c0t5d0
vgextend /dev/vg02 /dev/dsk/c0t5d0
pvmove -n /dev/vg02/lvol1 /dev/dsk/c0t4d0 /dev/dsk/c0t5d0
pvmove -n /dev/vg02/lvol2 /dev/dsk/c0t4d0 /dev/dsk/c0t5d0
vgreduce /dev/vg02 /dev/dsk/c0t4d0
umount /dev/vg02/lvol1 (not required if used in raw mode but you will need to stop the application using this lvol)
umount /dev/vg02/lvol2
note down the minor number for /dev/vg02/group
vgexport -s -m vg02.map /dev/vg02
stop the server, change the ID from 5 to 4
ioscan
mkdir /dev/vg02
mknod /dev/vg02/grup c 64 0xXX0000
XX is the minor number noted above.
vgimport -s -m vg02.map /dev/vg02
everything whould be back as normal...
Do not forget to do a man on each command befor you try for more details.
hope this helps...
ioscan
pvcreate /dev/rdsk/c0t5d0
vgextend /dev/vg02 /dev/dsk/c0t5d0
pvmove -n /dev/vg02/lvol1 /dev/dsk/c0t4d0 /dev/dsk/c0t5d0
pvmove -n /dev/vg02/lvol2 /dev/dsk/c0t4d0 /dev/dsk/c0t5d0
vgreduce /dev/vg02 /dev/dsk/c0t4d0
umount /dev/vg02/lvol1 (not required if used in raw mode but you will need to stop the application using this lvol)
umount /dev/vg02/lvol2
note down the minor number for /dev/vg02/group
vgexport -s -m vg02.map /dev/vg02
stop the server, change the ID from 5 to 4
ioscan
mkdir /dev/vg02
mknod /dev/vg02/grup c 64 0xXX0000
XX is the minor number noted above.
vgimport -s -m vg02.map /dev/vg02
everything whould be back as normal...
Do not forget to do a man on each command befor you try for more details.
hope this helps...
The opinions expressed above are the personal opinions of the authors, not of Hewlett Packard Enterprise. By using this site, you accept the Terms of Use and Rules of Participation.
Company
Events and news
Customer resources
© Copyright 2025 Hewlett Packard Enterprise Development LP