- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Looking for a proceedure to change LUNs
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
Forums
Discussions
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
04-24-2008 12:06 PM
04-24-2008 12:06 PM
I have 4 Luns and 2 FC cards
luns are all configured to volume group /dev/vgeprod
they luns are going to be moved to new hardward paths, thus getting new special files. So would this proceedure work?
1 unmount the filesystems on vgeprod.
2 deactivate vgeprod
(have SAN group make config change)
3 ioscan to change LUNs to new path.
4 vgextend new devices to vgeprod
5 vgreduce old devices from vgeprod
6 activate vgeprod
7 mount filesystems
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2008 12:19 PM
04-24-2008 12:19 PM
Re: Looking for a proceedure to change LUNs
deactivate vg(s)
vgexport ( with map files )
ioscan
insf
vgscan
vgimport vg(s) ( with map files )
The vgscan should pick up the vgids on the disks then the import with no device options should pick up the correct new device files.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2008 04:01 PM
04-24-2008 04:01 PM
Re: Looking for a proceedure to change LUNs
Since only 4 LUNS are involved I would suggest the following:
unmount
vgexport -v -m
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-24-2008 06:59 PM
04-24-2008 06:59 PM
SolutionI think using a mapfile will be simpler in your case,
1. create a mapfile using vgexport -s -p -v -m /tmp/vgeprod.mapfile
2. vgexport the vg, vgexport /dev/vgeprod
3. ioscan and insf for new lun H/W path
4. remove the old LUN h/w path with rmsf
5. mkdir /dev/vgeprod
6. mknod /dev/vgeprod c 64 0x??0000
7. vgimport from mapfile you have created: vgimport -s -v -m /tmp/vgeprod.mapfile /dev/vgeprod
8. mount filesystem
Please do remember that if have multiple link, you will have to reconfigure the primary/alternate link for load balancing
Regards,
Sandy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 03:48 AM
04-25-2008 03:48 AM
Re: Looking for a proceedure to change LUNs
Sandy, could you elaborate on steps 5 and 6, no one else mentioned these steps. Also what are the ?? referring to ?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2008 05:03 AM
04-25-2008 05:03 AM
Re: Looking for a proceedure to change LUNs
As steps 1a and 1b you should do
1a. deactivate the vgeprod "vgchange -a n ..."
1b. write down the minor number that vgeprod is using right now " ll /dev/vgeprod/group". This is where you get the 0x??0000 for step 6 or you can use any other unused number.
Step 6 should be
mknod /dev/vgeprod/group c 64 0x??0000
Step 7, the -s option might not work, you will need the new hardware paths of the LUNs to vgimport from.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-12-2008 07:45 AM
05-12-2008 07:45 AM
Re: Looking for a proceedure to change LUNs
ll /dev/vgeprod - note 0x??0000 number
Unmount filesystems
deactivate volume group
create a mapfile using vgexport -s -p -v -m /tmp/vgeprod.mapfile
vgexport the vg, vgexport /dev/vgeprod
ioscan and insf for new lun H/W path
remove the old LUN h/w path with rmsf (optional)
mkdir /dev/vgeprod
mknod /dev/vgeprod c 64 0x??0000
vgimport from mapfile you have created: vgimport -s -v -m /tmp/vgeprod.mapfile /dev/vgeprod
mount filesystem