[OpenIndiana-discuss] mount ext2/3
Hello, What did I do wrong? I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe I installed fuse-ext2 package: pkg install fuse-ext2 Then it complained about the missing libfuse.so, so I installed them too: pkg install libfuse fusefs It still complained, and then I did pkg remove, and pkg install for the fuse-ext2 package: didn't helped BTW: Are there any similar thing here, like the ldconfig command in linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which describes the directories, where should the dynamic linker find so's other then /lib and /usr/lib? So, I used my linux routine: LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /home/pasztor/e2t.img /mnt/e2t This command run, but gave 252 as return code... I didn't find explanation in fuse-ext2's manpage, since i didn't find that even... And of course, it didn't mount that image file... I tried lofiadm -a /home/pasztor/e2t.img and LD_LIBRARY_PATH=/usr/gnu/lib fuse-ext2 /dev/lofi/1 /mnt/e2t/ But the result was the same: nothing... Hint's, ideas, anything? Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] mount ext2/3
Hi, "Michael Schuster" írta 2014-02-27 18:00-kor: > I'm not an ext2/ext3 expert, but usually /var/adm/messages or > 'dmesg'-output should indicate something. Where there any other error > messages that you may not have quoted in your initial email? There were no error message, nor other indication of fail, it just failed silently. Nor dmesg contains relevant info: root@oi:~# dmesg |tail Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: sdbc0 Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] sdbc0 is /pseudo/sdbc@0 Feb 27 13:52:09 oi pseudo: [ID 129642 kern.info] pseudo-device: ii0 Feb 27 13:52:09 oi genunix: [ID 936769 kern.info] ii0 is /pseudo/ii@0 Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:01:17 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:32:12 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 0 irq 0xe vector 0x42 ioapic 0x2 intin 0xe is bound to cpu 1 Feb 27 15:32:13 oi pcplusmp: [ID 805372 kern.info] pcplusmp: ide (ata) instance 1 irq 0xf vector 0x42 ioapic 0x2 intin 0xf is bound to cpu 0 Neither truss: root@oi:~# LD_LIBRARY_PATH=/usr/gnu/lib truss fuse-ext2 /dev/lofi/1 /mnt/e2t/ execve("/usr/bin/fuse-ext2", 0x08047E0C, 0x08047E1C) argc = 3 sysinfo(SI_MACHINE, "i86pc", 257) = 6 mmap(0x, 32, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFB mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEFA sysconfig(_CONFIG_PAGESIZE) = 4096 mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF9 mmap(0x, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF8 memcntl(0xFEFB7000, 32140, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 memcntl(0x0805, 24156, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 resolvepath("/usr/lib/ld.so.1", "/lib/ld.so.1", 1023) = 12 resolvepath("/usr/bin/fuse-ext2", "/usr/bin/fuse-ext2", 1023) = 18 stat64("/usr/bin/fuse-ext2", 0x08047A50)= 0 open("/var/ld/ld.config", O_RDONLY) Err#2 ENOENT stat64("/usr/gnu/lib/libc.so.1", 0x08047200)Err#2 ENOENT stat64("/lib/libc.so.1", 0x08047200)= 0 resolvepath("/lib/libc.so.1", "/lib/libc.so.1", 1023) = 14 open("/lib/libc.so.1", O_RDONLY)= 3 mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEF7 mmapobj(3, MMOBJ_INTERPRET, 0xFEF70018, 0x0804726C, 0x) = 0 close(3)= 0 memcntl(0xFEE3, 179708, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 mmap(0x0001, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON|MAP_ALIGN, -1, 0) = 0xFEE2 getcontext(0x080478B0) getrlimit(RLIMIT_STACK, 0x080478A8) = 0 getpid()= 1818 [1817] lwp_private(0, 1, 0xFEE22A40) = 0x01C3 setustack(0xFEE22AA0) sysi86(SI86FPSTART, 0xFEF69C2C, 0x133F, 0x1F80) = 0x0001 brk(0x0807A3B8) = 0 brk(0x0807C3B8) = 0 stat64("/dev/lofi/1", 0x08047D30) = 0 brk(0x0807C3B8) = 0 brk(0x0807E3B8) = 0 open("/dev/lofi/1", O_RDWR) = 3 fstat64(3, 0x08047A70) = 0 brk(0x0807E3B8) = 0 brk(0x080803B8) = 0 llseek(3, 1024, SEEK_SET) = 1024 read(3, " X d\0\0\09001\0\014\0\0".., 1024) = 1024 close(3)= 0 stat64("/usr/gnu/lib/libfuse.so", 0x08047288) = 0 resolvepath("/usr/gnu/lib/libfuse.so", "/usr/gnu/lib/libfuse.so.2.7.1", 1023) = 29 open("/usr/gnu/lib/libfuse.so", O_RDONLY) = 3 mmapobj(3, MMOBJ_INTERPRET, 0xFEF70C38, 0x080472F4, 0x) = 0 close(3)= 0 mmap(0x, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_ANON, -1, 0) = 0xFEDD memcntl(0xFEDE, 43104, MC_ADVISE, MADV_WILLNEED, 0, 0) = 0 stat64("/usr/gnu/lib/libxnet.so.1", 0x080471C8) Err#2 ENOENT stat64("/lib/libxnet.so.1", 0x080471C8) = 0 resolvepath("/lib/libxnet.so.1", "/lib/libxnet.so.1", 1023) = 17 open("/lib/libxnet.so.1", O_RDONLY) = 3 mmapobj(3, MMOBJ_INTERPRET, 0xFEDD0578, 0x08047234, 0x) = 0 close(3)= 0 mprotect(0xFEDE, 128915, PROT_READ|PROT_WRITE|PROT_EXEC) = 0 stat64("/usr/gnu/lib/libsocket.so.1", 0x08046DD8) Err#2
Re: [OpenIndiana-discuss] mount ext2/3
Hi, "Jean-Pierre André" írta 2014-02-28 08:48-kor: > PÁSZTOR György wrote: > >What did I do wrong? > >I added the sfe repo: pkg set-publisher -p http://pkg.openindiana.org/sfe > >I installed fuse-ext2 package: pkg install fuse-ext2 > > > >Then it complained about the missing libfuse.so, so I installed them too: > >pkg install libfuse fusefs > > > >It still complained, and then I did pkg remove, and pkg install for the > >fuse-ext2 package: didn't helped > >BTW: Are there any similar thing here, like the ldconfig command in > >linux, which updates the symlinks, etc, and the /etc/ld.so.conf file, which > >describes the directories, where should the dynamic linker find so's other > >then /lib and /usr/lib? > > libfuse.so is the library used by the user space file systems. > It is of no use if you do not have the fuse kernel module. > I do not know whether the fuse-ext2 package contains both the > kernel part and the user space part. Check whether you have > /usr/kernel/drv/amd64/fuse and/or /usr/kernel/drv/fuse Fuse works ok: I created a zvol, exported on iSCSI, mapped from a W7 machine, partitioned, formatted, copied some files onto it, unexported, then dd -d the partition into a file, then mounted that, then copied the files from there, copied another files to there, umount, dd-d back the partition with the proper offset, exported again, and the W7 machine saw the new files, etc. So, I didn't take a very deep check, but mount, and some basic read and write operations surely work with ntfs-3g. BTW.: Do someone know a best practice to access a partition in an image? I googled a lot about that, and there were a plan to add an extra option to lofiadm, and there you could gave a specific offset, but at least the OI/Solaris line of lofiadm don't support that yet. As far as I could conclude that, that feature was never implemented. I tried to build a newer fuse-ext2, and downloaded 0.0.7 from http://alperakcan.net/?open=projects&project=fuse-ext2 But It didn't worked. e2fsprogs had some errors on the beggining, but I left it out, and just tried to build the fuse-ext2 part... I added some include into fuse-ext2.h (fuse.h -> fuse/fuse.h, fcntl.h, sys/types.h, sys/stat.h, strings.h, unistd.h), and most of the compiler errors gone, but op_readdir.c still tried to use some macros/constants (DT_REG, DT_DIR, etc.) which I can't provide. Better ideas? Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
[OpenIndiana-discuss] smartmontools related messages
Hi, I just installed smartmontools 6.2. I started smartd, and it leaves it's trace continously in /var/adm/messages: Apr 7 03:20:30 oi scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/disk@g50014ee209742361 (sd7): Apr 7 03:20:30 oi Error for Command: Error Level: Recovered Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Requested Block: 0 Error Block: 0 Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Vendor: ATA Serial Number: WD-WMC4 Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Sense Key: Soft_Error Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]ASC: 0x0 (), ASCQ: 0x1d, FRU: 0x0 It comes from my WD Red's, even if I manually "fixed" the /usr/share/smartmontools/drivedb.h manually, and also from my Samsung SSD: Apr 7 03:20:30 oi scsi: [ID 107833 kern.warning] WARNING: /scsi_vhci/disk@g50025388500865cc (sd6): Apr 7 03:20:30 oi Error for Command: Error Level: Recovered Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Requested Block: 0 Error Block: 0 Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Vendor: ATA Serial Number: S1DKNEAD9051 Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]Sense Key: Soft_Error Apr 7 03:20:30 oi scsi: [ID 107833 kern.notice]ASC: 0x0 (), ASCQ: 0x1d, FRU: 0x0 If I do manually a smartd -q onecheck, than these messages come instantly into my messages file. Is that normal operation, or some bug in smartmontools, some bug in illumos/ OI, or... Does anyone any clue? Thanks! György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] smartmontools related messages
Hi, "Udo Grabowski (IMK)" írta 2014-04-07 10:53-kor: > On 07/04/2014 10:50, PÁSZTOR György wrote: > >undecoded cmd 0x85 > > <https://www.illumos.org/issues/1787> Thanks for that. I realized, that I read about that bug. months ago... However, I still don't understand sg.: This bug is fixed in Illumos since 2013 Dec, and OI151a9 is released in 2014 Jan. So, how "fresh" is the a9's kernel? Is there any way, to interpret in a human readable form the tag: "hg:14187:68927c785889 git:52e13e00ba" ? (I'm still reading illumos and oi docs, but didn't find a web-based repo browser, changelog, or sg similar.) Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Formula raidz storage space caclulation
Hi, "Randy S" írta 2014-04-08 16:16-kor: > The information that I have about the formula to use is (n-1) x storage space > per disk > n=number of disks > 1=is de disk used for parity in a raidz1 configuration. > In the case of Raidz2 , this number would be 2 (n-2) x space. > > My question is: is this formula correct? > Reason, my outcome always differs with from the outcome on the following > website: http://www.servethehome.com/raid-calculator/ > What would be the correct formula to use? Did you count in your calculations what the manufacturers cheat on the meaning of kilo (1024 vs 1000)? They also note that: " *Usable storage is the actual post-format amount where kilo = 1024, not 1000 " Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] Formula raidz storage space caclulation
Hi, "Randy S" írta 2014-04-08 17:05-kor: > RAID-Z > *Raw Storage: 30.0 TB / 3.0 GB > *Usable Storage: 24.6 TB / 25145.7 GB > RAID-Z uses one disk for Parity much like RAID5 and requires at least three > drives to be used. > *Usable storage is the actual post-format amount where kilo = 1024, not 1000 > > If I use the (n-1)formula this would amount to: > (10-1) * 3 TB = 27 TB (27000 GB) > even if you use 1 TB=1024 GB: > (10-1) * 3072 GB = 27.648 GB > > Somewhere theres about 2.5 TB being used for something in their calculations. > Maybe someone can explain or show me where my calculation is going wrong? You are wrong, where round "up" instead of down when you count "27TB" "27 TB" mean 27TiB "Usable" bytes, which is 27*10^12 bytes. That you divide with 1024, and get kilos, that you divide with 1024 to get mega, that you divide with 1024 to get giga. So, if you type in this: pasztor@daedalus:~$ echo -e 'scale=1\n27*10^12/1024^3' | bc 25145.7 You get the same results. Regards, György ___ OpenIndiana-discuss mailing list OpenIndiana-discuss@openindiana.org http://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] arp response tuning for IP Source Guard
Hi, "Tim Mooney" írta 2017-01-05 14:37-kor: > > I'm running hipster, updated a few days ago, illumos-b106467 > > Our network engineers recently enabled Cisco's IP Source Guard on the > subnet my workstation is on. The IP Source Guard overview is here: > > > http://www.cisco.com/c/en/us/td/docs/switches/lan/catalyst6500/ios/12-2SY/configuration/guide/sy_swcg/ip_source_guard.html#66969 > [...] > Anyone have any suggestions for what tuning I should be looking at > that would tell the Illumos network stack that it's OK to respond to > semi-frequent batches of ARP probes? Have you run any tcpdump / anything to check what exactly happens? As far as I remember this feature does the following: It has a dhcp snooping database, which basicaly tracks all dhcp requests. When a host/ mac at a port got a valid dhcp offer, it writes that into it's snooping database. So, in the snooping database, the records are tuples like this: ip, mac, switch, port Therefor it can validate the "unsafe" ports, that every incoming packet must have the that source ip, the frame should have the given src mac, and it allows that to come in only from the given switchport. There are "trusted" ports. Practically the switches trust each other, thats how switching remain working. As far as I remember the feature, one port may have more than one entries. Eg. if you put a soho switch / hub to an edge port, then it's you responsibility, that those machines should not steal / spoof each other's mac address / ip. So the whole thing is about valid dhcp leases. Does you host / hosts have valid dhcp leases? Cheers, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] send break on Supermicro sol1 to enter kmdb
Hi, "Carsten Grzemba" írta 2017-01-23 16:28-kor: > > If some other component, your terminal emulator for example, uses the > > same escape character, you will have to double it or change it in > > ipmitool. ^^^ > > > > Does this not work for you? > > > Hm, it writes only: > > -bash-4.3$ ~B [sent break] > > but it did not break. Maybe it sent the break, just not for the ipmi, but to your ssh session. Did you pressed the ~ twice, as it was suggested for those cases when another component in the stack uses the same escape character? Regards, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool on the second partition of an external disk
Hi, "Apostolos Syropoulos via openindiana-discuss" írta 2017-09-07 19:58-kor: > Hello, > I have an external USB disk. The disk is pre-formatted with NTFSbut I would > like to use it to back up things from hard disks.An ideal solution would be > to create two partitions on thisdisks and have an NTFS partition and a second > partition whereI can create a zpool and then a zfs. I have used google to > find something useful but I could not find anything. Ok, but what is the problem? What is the output and stderr of your zpool create cXtYdZp2 command? Does it gives any error? Cheers, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool on the second partition of an external disk
Hi, "Udo Grabowski (IMK)" írta 2017-09-08 17:39-kor: > On 08/09/2017 17:33, Apostolos Syropoulos via openindiana-discuss wrote: > >>I should mind my p's and s's. Thanks, Andrew; you're right. I was > >>thinking of s2, not p2. > > > >So what I did what correct, right? I have mounted both partitions and the > >dataare there and I can read and write. > > No. Your boot slice #8 is overlapped by s2. It is not > recommended to use s2 for anything. > > Configure s0 instead with tag root, and use only the region > above the boot slice (that is, from cylinder 1 upwards). I don't think he configured any slice by hand. It was zpool what prepared the whole stuff. And there is NO overlap here. As it was already told: s2 (NOT p2) means the whole "drive"/ "partition". Depends on the case. Everything is right. No need to scare him away. Regards, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] zpool on the second partition of an external disk
Hi, "Udo Grabowski (IMK)" írta 2017-09-09 13:12-kor: > No, s2 has been actively configured to be used as a zpool slice, Yepp. That is the normal behaviour. > zfs tools don't do that. Therefore, the next one that will touch I think, You are wrong. ZFS does that. At least according to docs. > slice s8 will destroy the data on "slice" s2 (the problem is just Ho doesn't actively use s8. It's default behaviour again. > the other way round than you think). Therefore, by convention don't > use s2 actively, any other activity on s (/=2) will destroy > data. If you read the docs, his scenario perfectly fits to the layout what the docs says: https://wiki.openindiana.org/oi/Advanced+-+Creating+aligned+rpool+partitions The only difference here, that he uses p1 for the "other" os, and uses p2 for the pool. But besides that, it's a textbook example: s8 is created as "boot slice". boot slice is one cylinder long. No useful data there, and he didn't intend to use s8 directly. He just wants to use the zpool. Cheers, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] VirtualBox 5.2.0 causes segmentation fault
Hi. "russell" írta 2017-10-26 16:15-kor: > Successfully installed VirtualBox 5.2.0 using following instructions > > $ pkgtrans VirtualBox-5.2.0-SunOS-amd64-r118431.pkg . all > $ rm SUNWvbox/install/checkinstall > $ sed -i /checkinstall/d SUNWvbox/pkgmap > $ pfexec pkgadd -d . SUNWvbox > > VirtualBox fails with a segmentation fault Sorry for not answering for your question. But curiosity is much stronger, to not ask: Where did you found those install instructions? I tried to install virtualbox to a 151022 omnios without success. Maybe, this could work there aswell, just I don't know if any extra steps is needed, like touch /etc/vboxinst_vboxflt or anything similar? That's why I'm interested in the source of your wisdom! ;-) Cheers, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] VirtualBox 5.2.0 causes segmentation fault
Hi, "John D Groenveld" írta 2017-10-28 15:30-kor: > In message <20171028182558.ga14...@linux.gyakg.u-szeged.hu>, > =?iso-8859-2?Q?P=C > 1SZTOR_Gy=F6rgy?= writes: > >Where did you found those install instructions? > > https://wiki.openindiana.org/oi/7.2+VirtualBox> > > >I tried to install virtualbox to a 151022 omnios without success. > > Native Illumos KVM is possibly a better virtualization solution on OmniOS: > https://www.omniosce.org/info/virtualmachineskvm> On intel processors it _might_ be better. Since the problems given with installing Virtualbox, on intel based systems, I use kvm. But on AMD based systems, afaik kvm is still not an option. Cheers, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss
Re: [OpenIndiana-discuss] X apps in lx zone?
Hi, "Alan Coopersmith" írta 2020-02-05 09:11-kor: > Right - applications expecting DRI/KMS interfaces are going to be sorely > disappointed, and limited to what the underlying illumos kernel provides. Are you 100% sure about this? If apps would have direct access to those devices at the same time X11server does, that could lead to serious deadlock issues, or one writes over parts in the graphic card's memory what is under the control of the other one. If you would say, that the Xserver mmap-s or does some other magic to access the card's memory, than shares the memory area using some X11 extenson and the client (wm/de) could access that like some sysv ipc-way (eg. shmem), I could understand if that would not work. Or like fdpassing. Btw.: In X11 the partys can negotiate who supports which feature. I would think if the Xserver doesn't support some linux-specific drm/kms interface (which can be easily the point here) than it would just fallback to some legacy solution. But if wm's and de's work this way, that sounds like a serious design issue to me. Btw.: What is the situation with joyent's pkgsrc repo? I never checked but If memory serves well I read about that on this list, that one used pkgsrc repo + omnios to have some decent-recent gui. Maybe not kde, which needed linux-specific drm/kms interface. Some first hands experience: To cut my action camera's recordings I usually copy my files to my nas (omnios). I have a 16.04 ubuntu lx zone there + the extra repo for the avidemux, and ssh -Y there from my arch desktop to run the avidemux. That way files should be copied to the nas once. Than only the editors gui should be transferred to my desktop, but the actual data-process stays inbox. Regards, Gyu ___ openindiana-discuss mailing list openindiana-discuss@openindiana.org https://openindiana.org/mailman/listinfo/openindiana-discuss