Sample Header Ad - 728x90

Unix & Linux Stack Exchange

Q&A for users of Linux, FreeBSD and other Unix-like operating systems

Latest Questions

3 votes
1 answers
1264 views
Why can't I import an ZFS pool without partitioning the data disk with fdisk?
I have a strange situation here, in which I am unable to import an ZFS pool that I brought from another OS UNLESS I fdisk the disk of the pool. I am puzzled as to why this is happening and hoping to get an answer or an advice. The flow: An ZFS pool containing a single 3TB disk is created on a "NAS4F...
I have a strange situation here, in which I am unable to import an ZFS pool that I brought from another OS UNLESS I fdisk the disk of the pool. I am puzzled as to why this is happening and hoping to get an answer or an advice. The flow: An ZFS pool containing a single 3TB disk is created on a "NAS4Free 9.3.0.2" system (FreeBSD). I export the pool and attach it to a "NexentaStor 4.0.4" system (OpenSolaris). zpool import then shows root@nexenta:/volumes# zpool import pool: tank1 id: 17717822833491017053 state: UNAVAIL status: One or more devices are missing from the system. action: The pool cannot be imported. Attach the missing devices and try again. see: http://illumos.org/msg/ZFS-8000-3C config: tank1 UNAVAIL insufficient replicas c2t50014EE2B5B23B15d0p0 UNAVAIL cannot open zdb -l on the disk shows label0 and label1 as expected but -------------------------------------------- LABEL 2 -------------------------------------------- failed to read label 2 -------------------------------------------- LABEL 3 -------------------------------------------- failed to read label 3 I then run fdisk c2t50014EE2B5B23B15d0p0. It says the disk is not initialized and offers to initialize and create 1 Linux partition. I let it do it. Then optionally delete the new partition and save. At this point an MBR is created on the first sector of the disk. The disk as a whole is still a device of the zpool. With the MBR on the disk, I am able to import the pool and as expected. Important details: Same process with a 256GB disk works as expected without fdisk involvement. I suspect this issue is related to disks over 2TB. What I have tried: See if disk size is detected correctly and the same on the different systems. It seems that disk geometry is different for fdisk on NexentaStor than for other systems. I am not certain how to verify. Why does the creation of the MBR on such a disk allows for proper read of the ZFS labels on the end of the disk?
Arik Yavilevich (139 rep)
Sep 30, 2015, 02:10 PM • Last activity: Aug 2, 2019, 03:01 AM
2 votes
1 answers
511 views
Could not perform immediate configuration on 'libstdc++6' on Nexenta
My original goal was setup service-network-ssh on Nexenta Illumos. As a result of the command apt-get install service-network-ssh I got the following message Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt-get -f install' to correct these:...
My original goal was setup service-network-ssh on Nexenta Illumos. As a result of the command apt-get install service-network-ssh I got the following message Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libstdc++6-4.2-dev : Depends: g++-4.2 (= 4.2.3-2nexenta7) but it is not going to be installed Depends: gcc-4.2-base (= 4.2.3-2nexenta7) but it is not going to be installed Depends: libstdc++6 (>= 4.2.3-2nexenta7) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). I tried to do apt-get -f install and received Reading package lists... Building dependency tree... Reading state information... Correcting dependencies... Done The following extra packages will be installed: apt apt-utils base-passwd binutils ca-certificates coreutils cpp-4.2 debconf debconf-i18n debootstrap diff dpkg ed findutils g++-4.2 gawk gcc-4.2 gcc-4.2-base gettext-base gnupg gpgv grep hostname lib64gcc1 libbz2-1.0 libcomerr2 libcurl3-gnutls libdb4.6 libgcc1 libgcrypt11 libgnutls13 libgomp1 libgpg-error0 libgpmg1 libiconv libidn11 libkrb53 libldap-2.4-2 liblocale-gettext-perl liblzo2-2 libncurses5 libnspr4 libnspr4-0d libnss3 libnss3-0d libnss3-1d libopencdk10 libreadline5 libsasl2-2 libsasl2-modules libsqlite3-0 libssl0.9.8k libstdc++6 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtspi1 lzma makedev nexenta-lu nexenta-sunw nexenta-zones perl-base readline-common sed sunwbridgeu sunwcakr sunwcar sunwckr sunwcnetr sunwcsl sunwcslr sunwcsr sunwcsu sunwgrubr sunwkvm sunwlibm sunwpool sunwpoolr sunwsmapi sunwtecla sunwtoo sunwtsg sunwtsr sunwtsu sunwzfsr sunwzfsu sunwzoner sunwzoneu ubuntu-keyring zlib1g Suggested packages: apt-doc aptitude synaptic gnome-apt wajig dpkg-dev binutils-doc gcc-4.2-locales debconf-doc debconf-utils libgnome2-perl libnet-ldap-perl libqt-perl libterm-readline-gnu-perl diff-doc mlocate locate slocate g++-4.2-multilib gcc-4.2-doc libstdc++6-4.2-dbg gcc-4.2-multilib libgcc1-dbg libgomp1-dbg libmudflap0-4.2-dbg libmudflap0-4.2-dev gnupg-doc xloadimage rng-tools gnutls-bin krb5-doc krb5-user libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal libsasl2-modules-ldap libsasl2-modules-otp libsasl2-modules-sql The following NEW packages will be installed: apt apt-utils base-passwd binutils ca-certificates coreutils cpp-4.2 debconf debconf-i18n debootstrap diff dpkg ed findutils g++-4.2 gawk gcc-4.2 gcc-4.2-base gettext-base gnupg gpgv grep hostname lib64gcc1 libbz2-1.0 libcomerr2 libcurl3-gnutls libdb4.6 libgcc1 libgcrypt11 libgnutls13 libgomp1 libgpg-error0 libgpmg1 libiconv libidn11 libkrb53 libldap-2.4-2 liblocale-gettext-perl liblzo2-2 libncurses5 libnspr4 libnspr4-0d libnss3 libnss3-0d libnss3-1d libopencdk10 libreadline5 libsasl2-2 libsasl2-modules libsqlite3-0 libssl0.9.8k libstdc++6 libtasn1-3 libtext-charwidth-perl libtext-iconv-perl libtext-wrapi18n-perl libtspi1 lzma makedev nexenta-lu nexenta-sunw nexenta-zones perl-base readline-common sed sunwbridgeu sunwcakr sunwcar sunwckr sunwcnetr sunwcsl sunwcslr sunwcsr sunwcsu sunwgrubr sunwkvm sunwlibm sunwpool sunwpoolr sunwsmapi sunwtecla sunwtoo sunwtsg sunwtsr sunwtsu sunwzfsr sunwzfsu sunwzoner sunwzoneu ubuntu-keyring zlib1g 0 upgraded, 92 newly installed, 0 to remove and 416 not upgraded. Need to get 0 B/91.4 MB of archives. After this operation, 83.9 MB of additional disk space will be used. Do you want to continue [Y/n]? Y E: Could not perform immediate configuration on 'libstdc++6'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2) Based on the error log of the first command, I tried to remove the package from gсс, to set gсс version 4.2.3 and with the command apt-get --purge remove developer-gcc-44 I got Reading package lists... Building dependency tree... Reading state information... You might want to run 'apt-get -f install' to correct these: The following packages have unmet dependencies: libstdc++6-4.2-dev : Depends: g++-4.2 (= 4.2.3-2nexenta7) but it is not going to be installed Depends: gcc-4.2-base (= 4.2.3-2nexenta7) but it is not going to be installed Depends: libstdc++6 (>= 4.2.3-2nexenta7) but it is not going to be installed E: Unmet dependencies. Try 'apt-get -f install' with no packages (or specify a solution). What to do - to delete gcc manually (and again to set, and then to set ssh through a repository, but my chief considers, what for the Nexenta operating system gcc shall be set through the package manager) or to try to set service-network-ssh manually, not through a repository? If the second option preferable, I need links to service-network-ssh installation instructions to Nexenta.
user1851132 (121 rep)
Jan 12, 2013, 04:43 PM • Last activity: Mar 9, 2019, 09:21 AM
1 votes
0 answers
344 views
Add Solaris utf-8 support for Postgresql
I need to use utf-8, but "locale -a" produces: C POSIX iso_8859_1 the os is: SunOS cteraportal 5.11 NexentaOS_134f i86pc i386 i86pc Solaris Additional info: root@cteraportal:~# dpkg -l locales Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-a...
I need to use utf-8, but "locale -a" produces: C POSIX iso_8859_1 the os is: SunOS cteraportal 5.11 NexentaOS_134f i86pc i386 i86pc Solaris Additional info: root@cteraportal:~# dpkg -l locales Desired=Unknown/Install/Remove/Purge/Hold | Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad) ||/ Name Version Description +++-==============-==============-============================================ ii locales 1:5.11.134-1 Transitional package How can i add utf-8? **More info** Back to this issue after some time... I installed 2 locale packages: SUNWeu8os SUNWeuluf ( other packages from https://docs.oracle.com/cd/E19253-01/html/817-0545/eezez.html#scrolltoc fail on dependency packages that I didn't find ) now locale -e shows: C POSIX en_US.UTF-8 iso_8859_1 but building a postgresql db with en_US.UTF-8 still isn't supported. I need to find and install the right packages for nexenta
csny (1585 rep)
May 7, 2014, 10:55 AM • Last activity: Nov 18, 2018, 04:06 PM
2 votes
0 answers
576 views
Tools to debug slow NFS on OSX
I have 2 mac pros connected to a Nexenta NAS. They have a fast network connection, the same ping time, and the routes to the server are the same (both are plugged into the same switch). One computer has very slow reads and writes on the NAS when the files are larger that about 20 KB (found with `iop...
I have 2 mac pros connected to a Nexenta NAS. They have a fast network connection, the same ping time, and the routes to the server are the same (both are plugged into the same switch). One computer has very slow reads and writes on the NAS when the files are larger that about 20 KB (found with ioping). It responds to ping, doesn't drop packets, it can be accessed with SSH and works fine.I've checked the network over that interface and as far as I can tell there is nothing wrong unless I am connecting to the NAS **with NFS specifically**. **What tools are available on Mac OS to understand NFS performance problems?**
Dan (9622 rep)
Dec 15, 2017, 10:54 PM
1 votes
1 answers
195 views
Nexenta (Solaris), strange user membership from LDAP
Why do run id command in the Nexenta OS (Solaris+Ubuntu), I get different result? a_ay@nexenta:/etc$ id -G 513 512 1000 201 203 1010 1013 1019 1020 1036 1039 1040 1041 1045 1046 1047 a_ay@nexenta:/etc$ id -G a_ay 513 1019 1041 1047 512 1039 1036 201 3333 1000 1013 1020 1046 1057 1100 1040 1045 1048...
Why do run id command in the Nexenta OS (Solaris+Ubuntu), I get different result? a_ay@nexenta:/etc$ id -G 513 512 1000 201 203 1010 1013 1019 1020 1036 1039 1040 1041 1045 1046 1047 a_ay@nexenta:/etc$ id -G a_ay 513 1019 1041 1047 512 1039 1036 201 3333 1000 1013 1020 1046 1057 1100 1040 1045 1048 203 1010 Moreover, I'm having a membership in one of the secondary group (1048) and I can not enter to the folder 'Folder' with GID permission is 1048. drw-r-xr-x 1 1062 1048 0 Apr 12 16:13 Folder All users in LDAP. *gentent group* work fine, and get all users correct. root@nexenta:/tmp# getent group | grep 1048 mygroupname::1048:a_ay,fred,john,superman
Anton Shevtsov (143 rep)
Apr 12, 2013, 10:35 AM • Last activity: Jul 13, 2017, 11:59 AM
2 votes
1 answers
3439 views
update openssh and openssl on solaris
I got a nexenta system, I updated openssl to 1.0.1j, which I compiled from source code. I updated openssh to 6.7, from source code as well, and I get this: root@cteraportal:/root# openssl version OpenSSL 1.0.1j 15 Oct 2014 root@cteraportal:/root# ssh -V OpenSSH_6.7p1, OpenSSL 0.9.8k 25 Mar 2009 Shou...
I got a nexenta system, I updated openssl to 1.0.1j, which I compiled from source code. I updated openssh to 6.7, from source code as well, and I get this: root@cteraportal:/root# openssl version OpenSSL 1.0.1j 15 Oct 2014 root@cteraportal:/root# ssh -V OpenSSH_6.7p1, OpenSSL 0.9.8k 25 Mar 2009 Should I expect the OpenSSL version to be updated on ssh?
csny (1585 rep)
Oct 30, 2014, 05:18 PM • Last activity: Oct 30, 2014, 05:37 PM
2 votes
1 answers
2429 views
shellshock solution for nexenta/solaris
I'm trying to solve the shellshock issue on my system: SunOS localhost 5.11 NexentaOS_134f i86pc i386 i86pc Solaris # bash --version GNU bash, version 3.2.48(1)-release (i386-pc-solaris2.11) Copyright (C) 2007 Free Software Foundation, Inc. Has anybody fixed it for nexenta? How can I find the correc...
I'm trying to solve the shellshock issue on my system: SunOS localhost 5.11 NexentaOS_134f i86pc i386 i86pc Solaris # bash --version GNU bash, version 3.2.48(1)-release (i386-pc-solaris2.11) Copyright (C) 2007 Free Software Foundation, Inc. Has anybody fixed it for nexenta? How can I find the correct patch? Tried apt-get, but I can't find an active, updated repository. I'm ok with downloading patches and compiling them, just don't really know where to download nexenta packages from...
csny (1585 rep)
Sep 28, 2014, 04:43 PM • Last activity: Oct 7, 2014, 03:44 PM
3 votes
3 answers
1093 views
Nexenta bash script uses /usr/sun/bin/sed instead of /usr/bin/sed
I'm using a script for Linux and for Solaris (Nexenta). This line works on Linux, but not on solaris (but when run from shell it works): cat "pg_hba.conf" | sed "0,/^local/{s/md5/trust/}" The error message is: sed: command garbled: 0,/^local/{s/md5/trust/} After some research, I found out that the `...
I'm using a script for Linux and for Solaris (Nexenta). This line works on Linux, but not on solaris (but when run from shell it works): cat "pg_hba.conf" | sed "0,/^local/{s/md5/trust/}" The error message is: sed: command garbled: 0,/^local/{s/md5/trust/} After some research, I found out that the sed that bash uses in the script is different. from shell: /usr/bin/sed from script: /usr/sun/bin/sed I want to make the script use /usr/bin/sed. What I tried to do: 1. call sed with full path. Same results. It seems that it is still uses the other sed... 2. tried to call it via bash -l. Same results. 3. tried to declare a different command: S=/usr/lib/sed and use $S instead. Same results. 4. checked PATH - both cmd and script have /usr/bin in it. 5. Tried replacing the double quotes to single. Same results. 6. tried running the sed with -r flag. Output is : `# /usr/xpg4/bin/sed -r /usr/xpg4/bin/sed: illegal option -- r Usage: sed [-n] script [file...] sed [-n] [-e script]...[-f script_file]...[file...]` HELP?? What I need to do is to replace the first match of "md5" with "trust" on the first line that starts with "local"). I know I can do it otherwise but I the sed issue is itching me too much! # EDIT: I hope this makes a little order... 1. PATH from login shell = /usr/local/ctera/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/ctera/apache-ant-1.8.2/bin 2. PATH from script = /usr/sbin:/usr/bin:/usr/local/ctera/apache-ant-1.8.2/bin:/usr/local/ctera/apache-ant-1.8.2/bin 3. PATH from script when PATH=$(command -p getconf PATH):$PATH is called = /usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin:/usr/xpg4/bin:/usr/ccs/bin:/usr/bin:/opt/SUNWspro/bin:/usr/sbin:/usr/bin:/usr/local/ctera/apache-ant-1.8.2/bin:/usr/local/ctera/apache-ant-1.8.2/bin 4. truss -f sed from login shell calls /usr/bin/sed 5. truss -f sed from script calls /usr/sun/bin/sed 6. truss -f /usr/bin/sed from script calls /usr/sun/bin/sed !!! 7. After setting PATH=$(command -p getconf PATH):$PATH: 7.1 truss -f sed from script calls /usr/xpg4/bin/sed 7.2 truss -f /usr/bin/sed from script calls /usr/sun/bin/sed !!! #MORE INFO: Commands output: (run both from shell prompt and from within the script) 1. truss -ft execve /usr/bin/sed q as shell command: 8604: execve("/usr/bin/sed", 0x08047D20, 0x08047D2C) argc = 2 from script: 8545: execve("/usr/sun/bin/sed", 0x08047768, 0x08047774) argc = 2 2. file /usr/bin/sed as shell command: /usr/bin/sed: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), stripped from script: `file: /usr/bin/sed zero size or zero entry ELF section - ELF capabilities ignored file: /usr/bin/sed: can't read ELF header /usr/bin/sed: data` 3. ls -l /usr/bin/sed as shell command: -rwxr-xr-x 1 root root 96440 May 31 2008 /usr/bin/sed from script: -rwxr-xr-x 1 root root 96440 May 31 2008 /usr/bin/sed 4. ls -ld $(type -pa sed) as shell command: `-rwxr-xr-x 1 root root 96440 May 31 2008 /bin/sed -rwxr-xr-x 1 root root 96440 May 31 2008 /usr/bin/sed` from script: -rwxr-xr-x 1 root root 96440 May 31 2008 /usr/bin/sed 5. md5sum $(type -pa sed) as shell command: `385361c5111226c8eac8e25b53fed29c /bin/sed 385361c5111226c8eac8e25b53fed29c /usr/bin/sed` from script: 385361c5111226c8eac8e25b53fed29c /usr/bin/sed * The script is invoced by JAVA code. * uname -a SunOS cteraportal 5.11 NexentaOS_134f i86pc i386 i86pc Solaris * This might add info about the sed version on my machine ~# ll find / -name sed -rwxr-xr-x 1 root root 96440 May 31 2008 /usr/bin/sed -r-xr-xr-x 1 root bin 35656 Sep 7 2010 /usr/sun/bin/sed -r-xr-xr-x 1 root bin 32104 Sep 7 2010 /usr/ucb/sed -r-xr-xr-x 1 root bin 35636 Sep 7 2010 /usr/xpg4/bin/sed /usr/share/doc/sed: total 113 -rw-r--r-- 1 root root 168 Jun 21 2005 AUTHORS.gz -rw-r--r-- 1 root root 2507 Jun 21 2005 BUGS.gz -rw-r--r-- 1 root root 6584 Feb 3 2006 NEWS.gz -rw-r--r-- 1 root root 285 Jun 21 2005 README.gz -rw-r--r-- 1 root root 1071 Jan 12 2006 THANKS.gz -rw-r--r-- 1 root root 4806 May 31 2008 changelog.Debian.gz -rw-r--r-- 1 root root 32312 Feb 3 2006 changelog.gz -rw-r--r-- 1 root root 796 May 31 2008 copyright drwxr-xr-x 2 root root 3 May 30 2011 examples drwxr-xr-x 2 root root 3 May 30 2011 sed-4.1.5 -rw-r--r-- 1 root root 56538 May 31 2008 sedfaq.txt.gz
csny (1585 rep)
Aug 18, 2014, 03:47 PM • Last activity: Aug 21, 2014, 12:03 PM
1 votes
1 answers
156 views
zfs replication temporary file
I'm running a zfs replication task, of a snapshot size ~2.5GB. I see that there is traffic going between the master and the slave, by using snoop, but I want to monitor the transmission. Is there a temporary file that I can see being created? It's Nexenta OS on both master and slave.
I'm running a zfs replication task, of a snapshot size ~2.5GB. I see that there is traffic going between the master and the slave, by using snoop, but I want to monitor the transmission. Is there a temporary file that I can see being created? It's Nexenta OS on both master and slave.
csny (1585 rep)
May 26, 2014, 09:30 AM • Last activity: Jun 11, 2014, 03:01 AM
Showing page 1 of 9 total questions