- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Need to add a disk to a VG contolled by MCSG
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
04-02-2005 03:47 AM
04-02-2005 03:47 AM
First of all, I´m not a MCSG specialist at all, and we have an emegerncy here.
We need to insert a new disk to a VG controlled by MC ServiceGuard. We have to do it without disruption of the application, but I can stop the cluster if needed.
The fact is: I can't unredistribute without making the VG unavailable. I really need to insert a new disk to the VG even if the cluster is compromised (we'll work on it later).
Any good soul could guve us a hint? We need to make room to acommodate new volumes.
Thanks in advance,
Filipe
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2005 07:19 AM
04-02-2005 07:19 AM
Re: Need to add a disk to a VG contolled by MCSG
twintail the disks
insf
vgextend to add the new disk
newfs / extendfs / fsadm
Basically on the standby node we will need to import the vg definitions .. i.e. don't vgchange -a y .. but we can do it later...
Kaps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-02-2005 10:27 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-03-2005 11:19 PM
04-03-2005 11:19 PM
Re: Need to add a disk to a VG contolled by MCSG
It's pretty straight-forward and you should not run into hassles at all. What you are trying to do is fully supported for both RAW devices and filesystems controlled by MCServiceGuard.
The main thing to remember is to vgexport your VG info to a map file, and then import it on the other 'secondary' nodes that you are running your package on.
This is a script that we use to simplify the process - we automate it via crontab to run everyday - so should we add an oracle raw volume, or make changes to a filesystem - it will also be on our failover node the next day. (We usually run it manually anyway after we modify anything).
We use scp, but you can also automate it for rcp or ftp.
vg_export script, sits on 'primary' node:
#!/bin/ksh
for vg in `ll /dev | grep
do
/usr/sbin/vgexport -s -p -m /etc/cmcluster/$vg.map /dev/$vg
done
/usr/local/bin/scp /etc/cmcluster/*.map
vg_import script, sits on 'secondary' nodes:
#!/bin/ksh
#mv /etc/cmcluster/*.disk /etc/cmcluster/disks > /dev/null
cmviewcl | grep
x=$?
if [ $x -ne 0 ]
then
echo " package is NOT running on
for VgName in `ll /dev | grep
do
minor=`ll /dev/$VgName | grep group | awk '{print $6}'`
vgexport /dev/$VgName
mkdir /dev/$VgName
mknod /dev/$VgName/group c 64 ${minor}
vgimport -v -s -m /etc/cmcluster/$VgName.map /dev/$VgName
echo $VgName
chown oracle:dba /dev/$VgName/r*
chmod 755 /dev/$VgName/r*
done
chmod 777 /dev/vg_gens*
else
echo " package IS running on
echo " Sorry cannot perform the required function"
fi
Regards,
David de Beer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-04-2005 01:08 AM
04-04-2005 01:08 AM
Re: Need to add a disk to a VG contolled by MCSG
First - this is a great doc:
http://docs.hp.com/en/B3936-90079/index.html
On the node with the package running:
ioscan -funC disk >/tmp/ioscan-funC.disk.current
Add the disk (hot swap or on a SAN)...
ioscan -fnC disk
insf -C disk
ioscan -funC disk >>/tmp/ioscan-funC.disk.new
diff >/tmp/ioscan-funC.disk.current
>/tmp/ioscan-funC.disk.new
Those are the new devs...extend them into the vg
vgextend /dev/vgXX /dev/dsk/cXtXdX
lvextend your lvol(s)
Then create a map file for other node(s)
vgexport -p -s -v -m /tmp/vgXX.map /dev/vgXX
Copy that file to the other node(s)
On the other node(s):
vgexport /dev/vgXX
mkdir /dev/vgXX
mknod /dev/vgXX/group c 64 0xHH0000
(where XX is the vg number and HH is the Hex equivalent)
vgimport -s -v -m /tmp/vgXX /dev/vgXX
Done!
Rgds...Geoff