New answers tagged solaris
1
Both the zfs send and the zfs receive are tied to each other when you pipe them together like this. The source system has to crawl the zfs metadata looking for blocks that were written within the incremental interval you are sending. You're then piping that to mbuffer, so that the stream across the ssh session can be somewhat optimized by presenting a ...
0
I would use logadm to rotate the logs for you. On the latest base image (13.1.0) there is a default logadm entry for rotating SMF logs (check the /etc/logadm.conf file):
smf_logs -C 3 -c -s 1m /var/svc/log/*.log
That entry will rotate the SMF service logs whenever they hit 1m in size (-s 1m), only keep 3 versions after each rotation (-C 3) and rotate the ...
0
You can do this by writing a script then create a cron job to run the script periodically.
0
Try cycling the port
cfgadm -c disconnect
cfgadm -c connect
cfgadm -c configure
0
Regarding part 2:
I found that our Cisco switches used a much more basic load balancing algorithm. They built a hashtable of sources based on Ethernet frame details and associated each hash with a port in the channel.
Therefore each source became associated with only one port and was limited to throughput of the physical link.
1
There's an option to set up a chroot environment for every service and installing those packages under that. It certainly involes some bloat in that you are required to basically replicate many libraries into chroot environment. But it does isolate your services from everyone else's and vice versa and gives you full (root-like) control over the enviroment.
...
1
IEEE 802.3ad is the standard for link aggregation, not withstanding the move of link aggregation standards to the 802.1 group, as 802.1ax.
The real advantage of LACP is the LACPDUs that transit the link from the switch to the host. These ensure that both sides of the link are capable of LACP. A secondary advantage is that with LACP, both the host and the ...
1
Solaris 10 did not have an online package repository for the OS packages - you'll need to download the Solaris 10 install images from Oracle and mount the iso or burn it to DVD to get at the package contents. Solaris 11 (including its OpenSolaris and Solaris Express predecessors) is the first Solaris release with an online package repo for the OS packages.
...
1
There is a community supported packages available at http://www.opencsw.org/.
0
Another tip is to see if the sendmail services are enabled,
although the two sendmail processes already are running:
% svcs -a | grep sendmail
online 20:47:39 svc:/network/smtp:sendmail
online 20:47:59 svc:/network/sendmail-client:default
If they NOT "online" try:
% svcadm enable smtp:sendmail
% svcadm enable sendmail-client:default
...
1
what the way to identify if file or directory have link/s
You can do like this:
find / -lname "filename"
2
A symbolic link is similar to a shortcut in Windows. It's a entry in the file system that points to another file. The destination file is not touched and no change is made to the original files metadata - it does not know that it has been linked to.
You will not be able to tell if a file has symbolic links pointing at it just by looking at information from ...
2
Why sed? How about manipulating with bash parameter expansion?
var="192.168.200.1"
echo ${var%.*}
192.168.200
2
maybe with cut instead of sed?
echo "10.10.10.5" | cut -d. -f-3
if it has to be sed
echo "10.10.10.5fsdfdsf" | sed -e 's/\.[^\.]*$//'
4
Short Answer
No
Long Answer
Quoting from "Chapter 1 Oracle Solaris ZFS File System (Introduction)":
All metadata is allocated dynamically, so no need exists to preallocate inodes or otherwise limit the scalability of the file system when it is first created.
...no limit exists on the number of file systems or the number of files that can be ...
5
I believe something as simple as 'sort -u ' should work for you
#sort -u /tmp/test
172.17.200.1 3.3.3.3
172.17.200.2 3.3.3.4
172.17.200.3 3.3.3.5
172.17.200.4 3.3.3.7
172.17.200.5 3.3.3.8
255.255.255.0 255.255.255.111
Check the 'sort' manpage for more info:
-u, --unique
with -c, check for strict ordering; without -c, output only the first of an equal ...
0
Try
:%s/^\(.*\)\n\1$/\1/
This basically compares lines on a file in vi
1
I think the easiest solution is to add another system (can be an old, slow one) in Network1. This system detects the breakdown of server1 (either by itself or it gets notified by server2 when it takes over) and takes over the floating IP. It also does NAT for this IP so that all traffic for server1 is forwarded to server2.
I have no experience with ...
3
Don't do it. Dedupe on ZFS is bad news if you haven't planned well for it...
What can happen?
Your system can slow down considerably in certain operations. Holding the dedplication table in RAM isn't the best use of resources.
Your system can stall for DAYS if you delete data or filesystems the wrong way.
If there's any doubt, you shouldn't be using ...
1
Ah... good ol'Solaris and it's wonderful default policies.
When you created the users on a new system install, there was an account expiration time set. This is in the /etc/shadow file, I believe. You will need to unlock the account and then set an expiration time far far into the future.
I've tried the "never expires" flag in the past, but it's never ...
0
This command will show all deleted files still open on a Solaris system:
find /proc/*/fd -type f -links 0
You can truncate the ones you are sure you want with this command:
:> /proc/p/fd/x
with p being the process id and x the file descriptor returned by the first command.
Don't worry if with some programs the size reported by ls is restored to ...
0
Here is a simple exemple with less:
let's assume we have a file my10MBfile
$ dd if=/dev/zero of=/tmp/my10MBfile bs=1M count=10
10+0 enregistrements lus
10+0 enregistrements écrits
10485760 octets (10 MB) copiés, 0,0454491 s, 231 MB/s
$ ls -l /tmp/my10MBfile
-rw-r--r-- 1 max max 10485760 avril 23 22:49 /tmp/my10MBfile
$ df -m /tmp
...
0
You can try to go to /proc//fd directory and the truncate corresponding file descriptor. Let say fd=3 points to deleted file of pid == 123:
# echo "" >! /proc/123/fd/3
1
The limitation is caused by the fact that the disk label is an EFI Disk Label aka GPT and not SMI aka VTOC.
Partitions (or slices) cannot overlap with the primary or backup label, nor with any other partitions. The size of the EFI label is usually 34 sectors, so partitions usually start at sector 34. This feature means that no partition can start at ...
0
In general, no. You will need the process that has the handle open to either release the handle or empty the file for you. While a handle is open for writing, another process can not write to that file, and emptying the file is a write action.
0
Specify another location for dumpadm to use crash dumps instead of just disabling them.
dumpadm -d swap
Source: http://comments.gmane.org/gmane.os.solaris.opensolaris.zfs/19529
1
Press the keys:
Ctrl + Function (Fn) + F12 (which should be "pause") and a message should appear on screen.
Do this AFTER all the probing, and give it a try to understand when it's the right time to give those key strokes.
I'm using SecureCRT.
SC Alert: SC Request to send Break to host.
SC Alert: SC Request to send Break to host.
Probing system devices
...
Top 50 recent answers are included



