- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: lvmrc and fstab question.
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
03-04-2003 12:58 AM
03-04-2003 12:58 AM
lvmrc and fstab question.
I have a service guard cluster running and controling the activation of vg.
The /etc/lvmrc file has an auto_vg_activation=0. This mean that the system will only activate vg00 on startup, any other vg will be activated by cluster software...so I have another vg outside cluster configuration...I should modify the lvmrc " custom_vg_activation funtion " to include my vg and ALSO include the fs of this vg on /etc/fstab ?.
Thanks.
Juanma.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:25 AM
03-04-2003 01:25 AM
Re: lvmrc and fstab question.
You are right.
modify the /etc/lvmrc to have custom vg activitaion and include the include vg00 and other VG you want to activate.(Dont make auto_vg_activation=1, leave that to 0) Just uncommet the custom vg activation. And include the filesystem to be mounted in /etc/fstab
Cheers
Rajeev
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 01:34 AM
03-04-2003 01:34 AM
Re: lvmrc and fstab question.
We have a two nodes cluster running under service guard A.11.14 (HP-UX 11) and the adoptive node configuration is:
#cat /etc/lvmrc
.
.
.
AUTO_VG_ACTIVATE=0
.
.
custom_vg_activation()
{
# e.g. /sbin/vgchange -a y -s
# parallel_vg_sync "/dev/vg00 /dev/vg01"
# parallel_vg_sync "/dev/vg02 /dev/vg03"
vgchange -a y /dev/vg01
vgchange -a y /dev/vg02
vgchange -a y /dev/vg03
vgchange -a y /dev/vg04
vgchange -a y /dev/vg99
return 0
}
Then, in the /etc/fstab we have defined:
#cat /etc/fstab
/dev/vg00/lvol3 / vxfs delaylog 0 1
/dev/vg00/lvol1 /stand hfs defaults 0 1
/dev/vg00/lvol4 /tmp vxfs delaylog 0 2
/dev/vg00/lvol5 /home vxfs delaylog 0 2
/dev/vg00/lvol6 /opt vxfs delaylog 0 2
/dev/vg00/lvol7 /usr vxfs delaylog 0 2
/dev/vg00/lvol8 /var vxfs delaylog 0 2
/dev/vg01/lvol1 /misc vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg01/lvol2 /oraclesoft vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg01/lvol3 /4GL vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg02/lvol1 /archive vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg04/lvol1 /orarep vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg99/lvol99 /datdisold vxfs rw,suid,largefiles,delaylog,datainlog 0 2
/dev/vg03/lvol1 /oradat vxfs delaylog,nodatainlog,largefiles,rw,suid 0 2
/dev/vg01/backups /backups vxfs rw,suid,largefiles,delaylog,datainlog 0 2
As you see we have defined in both of them files. This is a tested production environment and works fine!
I hope it is you useful.
Rgds.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 02:05 AM
03-04-2003 02:05 AM
Re: lvmrc and fstab question.
if any ARE in a package, hten htey should not be defined here.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 02:18 AM
03-04-2003 02:18 AM
Re: lvmrc and fstab question.
Default is auto_vg_activation=0 but in a SG cluster you have to turn it off as SG will have to handle the activation depending on which node is running the package. Thus you will have to add the activation of other (non SG) volume groups to /etc/lvmtab and mount them thru fstab.
Regards,
Trond
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-04-2003 03:30 AM
03-04-2003 03:30 AM
Re: lvmrc and fstab question.
We use the following custom_vg_activation function (replacing the original):
custom_vg_activation()
{
# lvmrc custom_vg_activation
#
# We only have shell built-ins and /sbin to work with.
# That means no sort, grep, sed etc. DOH!!!
#
for vg_name in `cat /etc/fstab |awk '{print $1}'`
do
vg_name=${vg_name%/*}
case $vg_name in
/dev/vg00)
# We don't do anything with vg00
;;
/dev/vg*)
if [ $vg_name != $s_vg_sync* ]
then
if [ -d $vg_name ]
then
vgchange -a y $vg_name
s_vg_sync=$s_vg_sync"$vg_name "
else
echo "Unable to activate $vg_name - Please check"
fi
fi
;;
esac
done
parallel_vg_sync $s_vg_sync
return 0
}
Now all we have to do is ensure that the fstab is up to date and everything else is handled automatically - no more updating the lvmrc file!