|
Re: [osol-discuss] zpool attach, prtvtoc, fmthard fmthard: Cannot open de: msg#00800opensolaris-discuss
Actually, I have a theory that I think might explain what is causing the problem. I don't think you can use pipes with pfexec because pfexec causes commands to run in their own privileged shell and that privileged shell won't go through a pipe (I'm not really a Solaris expert, I'm just guessing here). I don't think you can be a normal user at a BASH prompt and do: $ pfexec prtvtoc /dev/rdsk/c8t0d0s2 | fmthard -s - /dev/rdsk/c8t2d0s2 instead, I think you have to be a root user and do this: # prtvtoc /dev/rdsk/c8t0d0s2 | fmthard -s - /dev/rdsk/c8t2d0s2 So type in this command: su - root and enter in the root password to become the root user and then type in your command: prtvtoc /dev/rdsk/c8t0d0s2 | fmthard -s - /dev/rdsk/c8t2d0s2 If you look at the explanation at the link that I gave you in my previous post, you will see that all of the commands were done as the root user and were not executed through pfexec. If you still think that "the drive is busy with something", you can check what processes are using the drive or file system by using the "fuser" command. Type this in at the command line: man fuser for details. I also recommend reading the man pfexec and man pfsh man pages to check if it says anything about using pipes or not (to be honest, I don't really remember off the top of my head whether it does and I'm working on a Debian machine right now, so I didn't bother to check the Solaris man page before posting this). This link might also be useful: http://developers.sun.com/developer/technicalArticles/opensolaris/pfexec.html -- This message posted from opensolaris.org _______________________________________________ opensolaris-discuss mailing list opensolaris-discuss@xxxxxxxxxxxxxxx
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |