Welcome Serena Central users! CLICK HERE
The migration of the Serena Central community is currently underway. Be sure to read THIS MESSAGE to get your new login set up to access your account.
Anonymous_User Absent Member.
Absent Member.
230 views

Changing Data location on Collector Manager


Hi,

I need to resize /var or change the location of the buffered data on my
collector. Resizing /var is proving difficult on the collector for some
reason. Alternatively I was hoping I could just amend the following in
server.conf on the collector manager:

# Working directory
wrapper.working.dir=%ESEC_DATA_HOME%/data

Change wrapper.working.dir to a new mount point on a partition with free
space I have on the collector manager server locally.

Are there any considerations to watch out for when doing this? Is it
supported?

This is only in the event the Primary Sentinel Server is unavailble for
a period due to an outage as we have no HA ability on this installation.
I want the events to buffer for a time on the collector in the event the
Primary Sentinel Server is offline. With my current collector manager
disk size it will fill up quite quickly.

In the event none of this is doable I could do a quick rebuild of the
collector manager with the new disk layout.

Thanks,

Paul


--
rochfordp
------------------------------------------------------------------------
rochfordp's Profile: https://forums.netiq.com/member.php?userid=6749
View this thread: https://forums.netiq.com/showthread.php?t=53330

0 Likes
7 Replies
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager

I've had to do similar cleanup for clients in the past and the easiest way
is usually doing some Linux magic. In your case since you mention
"[resizing] /var" I presume that /var is a separate partition for you.
Could you explain the difficulty to which you referred? It may help to
understand a bit about your setup, whether physical or virtual, and what
kind of partitioning and which filesystems you are using, including
whether or not you are using LVM for partitioning.

In the worst case scenario where /var is not partitioned separately and is
on a physical disk that is not backed by a SAN (no resizing) the options
are still pretty easy by adding a new disk to the system and then
formatting it with whatever filesystem (XFS is great). Once that is done
stop Sentinel, move (or copy recursively keeping all attributes using -a
option) from /var/opt/novell/sentinel to /mnt/newdrive and that should get
all of your data over there. Mount the new location to /var/opt/novell so
that the directory structure looks the same again, and test Sentinel. If
things work, stop Sentinel, unmount (be sure to unmount!), and clean out
the old /var/opt/novell/sentinel directory that exists back there. Be
sure to setup your new mount point as something that loads at boot time or
Sentinel will not be happy.

In a less-than-worst-case scenario you can resize a LUN, add a partition
to a LVM volume group, expand a virtual disk, etc. and likely avoid a reboot.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager


Thanks for the response,

I have successfully done this on the primary sentinel server before to
add extra storage and migrate /var to the new partition. When I attempt
to 'mv var var.old' in single user mode it says the device is in use.
lsof shows no open files using /var so I’m not sure why the ‘mv’ is
failing.

I am not currently using LVM on this VM.

I allocated the extra space by just increasing the size of the disk in
VMware. I'm guessing the best approach was to add another virtual disk
instead.


--
rochfordp
------------------------------------------------------------------------
rochfordp's Profile: https://forums.netiq.com/member.php?userid=6749
View this thread: https://forums.netiq.com/showthread.php?t=53330

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager


Just to add this is my file system currently:

Filesystem Size Used Avail Use% Mounted on
/dev/sda3 20G 3.9G 15G 21% /
udev 7.9G 96K 7.9G 1% /dev
tmpfs 7.9G 0 7.9G 0% /dev/shm
/dev/sda1 152M 22M 122M 16% /boot
/dev/sda2 20G 1.2G 18G 7% /var
/dev/sda4 699G 197M 698G 1% /mnt/newvar

I expanded the primary virtual disk and created a new primary ext3
partiton /dev/sda4. My only remaining issue is in single user mode I
can't 'mv /var' to '/var.old' as it says the device is busy; I'm
assuming there are processes using /var in runlevel 1 I can't identify.
This is not a new virtual disk I'm just trying to use new unallocated
space I assigned.


--
rochfordp
------------------------------------------------------------------------
rochfordp's Profile: https://forums.netiq.com/member.php?userid=6749
View this thread: https://forums.netiq.com/showthread.php?t=53330

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager

Don't bother moving it somewhere else, just copy data over to the new
directory and then mount over the top of it to test things (like Sentinel)
out after making the mount persistent and rebooting.

It's probably good to have an install/rescue CD/DVD/USB nearby just in
case things go awry. You could use that to do your 'mv' as well, if you
really want to.


--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
Highlighted
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager


Thanks again, I'll boot into a rescue ISO.

Paul


--
rochfordp
------------------------------------------------------------------------
rochfordp's Profile: https://forums.netiq.com/member.php?userid=6749
View this thread: https://forums.netiq.com/showthread.php?t=53330

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager


Final question hopefully, does the sentinel_collectormanager.iso provide
an option to boot into rescue mode?


--
rochfordp
------------------------------------------------------------------------
rochfordp's Profile: https://forums.netiq.com/member.php?userid=6749
View this thread: https://forums.netiq.com/showthread.php?t=53330

0 Likes
Anonymous_User Absent Member.
Absent Member.

Re: Changing Data location on Collector Manager

Good question; I do not know for sure, but if it is nothing more than
install media that goes into Yast to do everything you could go that route
and then Ctrl+Alt+F2 to switch to a terminal and play with the system,
then close out before re-installing anything. It may also have a proper
rescue mode. If it's like the old Sentinel 7.0 appliance ISO you can boot
from it, run the system entirely from memory, and then from that
memory-held system (not installed yet) modify the physical system via the
command line.

--
Good luck.

If you find this post helpful and are logged into the web interface,
show your appreciation and click on the star below...
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.