Re: [zfs-discuss] grrr, How to get rid of mis-touched file named `-c'

2011-11-28 Thread Smith, David W.

You could list by inode, then use find with rm.

# ls -i
7223 -O

# find . -inum 7223 -exec rm {} \;

David

On 11/23/11 2:00 PM, Jason King (Gmail) jason.brian.k...@gmail.com
wrote:

 Did you try rm -- filename ?
 
 Sent from my iPhone
 
 On Nov 23, 2011, at 1:43 PM, Harry Putnam rea...@newsguy.com wrote:
 
 Somehow I touched some rather peculiar file names in ~.  Experimenting
 with something I've now forgotten I guess.
 
 Anyway I now have 3 zero length files with names -O, -c, -k.
 
 I've tried as many styles of escaping as I could come up with but all
 are rejected like this:
 
  rm \-c 
  rm: illegal option -- c
  usage: rm [-fiRr] file ...
 
 Ditto for:
 
  [\-]c
  '-c'
  *c
  '-'c
 \075c
 
 OK, I'm out of escapes.  or other tricks... other than using emacs but
 I haven't installed emacs as yet.
 
 I can just ignore them of course, until such time as I do get emacs
 installed, but by now I just want to know how it might be done from a
 shell prompt.
 
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
 ___
 zfs-discuss mailing list
 zfs-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] Zpool metadata corruption from S10U9 to S11 express

2011-06-23 Thread Smith, David W.


On 6/22/11 10:28 PM, Fajar A. Nugraha w...@fajar.net wrote:

 On Thu, Jun 23, 2011 at 9:28 AM, David W. Smith smith...@llnl.gov wrote:
 When I tried out Solaris 11, I just exported the pool prior to the install of
 Solaris 11.  I was lucky in that I had mirrored the boot drive, so after I
 had
 installed Solaris 11 I still had the other disk in the mirror with Solaris 10
 still
 installed.
 
 I didn't install any additional software in either environments with regards
 to
 volume management, etc.
 
 From the format command, I did remember seeing 60 luns coming from the DDN
 and
 as I recall I disk see multiple paths as well under Solaris 11.  I think you
 are
 correct however in that for some reason Solaris 11 could not read the
 devices.
 
 
 So you mean the root cause of the problem is Solaris Express failed to
 see the disks? Or are the disks available on solaris express as well?
 
 When you boot with Solaris Express Live CD, what does zpool import show?


Under Solaris 11 express, disks were seen with the format command, or like
luxadm probe, etc.  So I'm not sure why zpool import failed, or why I assume
could not read the devices.  I have not tried the Solaris Express live CD,
but I was booted off an installed version.

David

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss