Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and unable to recreate it

2008-08-22 Thread Nils Goroll
Hi François,

some suggestions:

* Recreate /dev

   mkdir /dev.new
   cd /dev ; find . | cpio -ldump /dev.new
   mv dev dev.old  mv dev.new dev
   devfsadm

* Have you checked that your system isn't compromised?

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


Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and unable to recreate it

2008-08-22 Thread Nils Goroll
cd /dev ; find . | cpio -ldump /dev.new

Sorry, ldump did only work when /dev was not a seperate fs, use dump instead:

cd /dev ; find . | cpio -dump /dev.new

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


Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and unable to recreate it

2008-08-21 Thread Cindy . Swearingen
Francois,

I'm reposting this on indiana-discuss to see if anyone on that list
can provide some input.

Is this happening during a netinstall?
Can you provide the output of ls -l /dev/null?

Cindy

François Feugeas wrote:
 Hello,
 
 We're having a strange issue on one of our OpenSolaris 64bit installs. For 
 some unknown reason, /dev/null disappeared. We tried to reboot but it didn't 
 help. We're running SNV93.
 
 /devices/pseudo/[EMAIL PROTECTED]:null does exist and permissions are correct 
 :
 # ls -l /devices/pseudo/[EMAIL PROTECTED]:null 
 crw-rw-rw-   1 root sys   13,  2 août 21 15:59 /devices/pseudo/[EMAIL 
 PROTECTED]:null
 
 devfsadm and devfsadm -P fail :
 # devfsadm -V chatty | grep null
 devfsadm: cannot create link: /dev/null - ../devices/pseudo/[EMAIL 
 PROTECTED]:null.  max attempts exceeded
 devfsadm[2456]: chatty: minor_process: node=mm, minor=null
 devfsadm[2456]: chatty: reset_node_permissions: 
 phy_path=/devices/pseudo/[EMAIL PROTECTED]:null lphy_path=/pseudo/[EMAIL 
 PROTECTED]:null
 
 /dev is writable by root and I can create files or symlinks into it, as long 
 as they're not named, you guessed it, null.
 
 I didn't find any reference to that particular issue. Has anyone encountered 
 that issue already ?
  
  
 This message posted from opensolaris.org
 ___
 sysadmin-discuss mailing list
 [EMAIL PROTECTED]
 http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and unable to recreate it

2008-08-21 Thread Vikram Hegde
Hi,

Looks like the devname filesystem is confused. DO the following

1. Use ln  -s  to create /dev/null manually

#  ln -s  ../devices/pseudo/[EMAIL PROTECTED]:null/dev/null

2. Do a reboot -d to generate a kernel core file

3. File a bug and attach core file to bug report.

The system should come up normally after a reboot.

BTW, mention the exact conditions when this problem happened (was it normal 
boot or install boot - did you do anything in /dev etc.)

Vikram



- Original Message 
From: [EMAIL PROTECTED] [EMAIL PROTECTED]
To: François Feugeas [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; indiana-discuss@opensolaris.org
Sent: Thursday, August 21, 2008 1:10:48 PM
Subject: Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and 
unable to recreate it

Francois,

I'm reposting this on indiana-discuss to see if anyone on that list
can provide some input.

Is this happening during a netinstall?
Can you provide the output of ls -l /dev/null?

Cindy

François Feugeas wrote:
 Hello,
 
 We're having a strange issue on one of our OpenSolaris 64bit installs. For 
 some unknown reason, /dev/null disappeared. We tried to reboot but it didn't 
 help. We're running SNV93.
 
 /devices/pseudo/[EMAIL PROTECTED]:null does exist and permissions are correct 
 :
 # ls -l /devices/pseudo/[EMAIL PROTECTED]:null 
 crw-rw-rw-   1 root sys   13,  2 août 21 15:59 /devices/pseudo/[EMAIL 
 PROTECTED]:null
 
 devfsadm and devfsadm -P fail :
 # devfsadm -V chatty | grep null
 devfsadm: cannot create link: /dev/null - ../devices/pseudo/[EMAIL 
 PROTECTED]:null.  max attempts exceeded
 devfsadm[2456]: chatty: minor_process: node=mm, minor=null
 devfsadm[2456]: chatty: reset_node_permissions: 
 phy_path=/devices/pseudo/[EMAIL PROTECTED]:null lphy_path=/pseudo/[EMAIL 
 PROTECTED]:null
 
 /dev is writable by root and I can create files or symlinks into it, as long 
 as they're not named, you guessed it, null.
 
 I didn't find any reference to that particular issue. Has anyone encountered 
 that issue already ?
  
  
 This message posted from opensolaris.org
 ___
 sysadmin-discuss mailing list
 [EMAIL PROTECTED]
 http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss
___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and unable to recreate it

2008-08-21 Thread Vikram Hegde
Hi,

ok in that case you will have to take the risk of rebooting without creating 
/dev/null.

Do a reboot -d to create a core dump file and reboot.

If you have problems on reboot due to missing /dev/null, boot the Live CD, 
mount the hard disk and create /dev/null via ln. That should succeed as you 
are then operating outside devname filesystem

Vikram



- Original Message 
From: François Feugeas [EMAIL PROTECTED]
To: Vikram Hegde [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED]; indiana-discuss@opensolaris.org
Sent: Thursday, August 21, 2008 2:05:20 PM
Subject: Re: [indiana-discuss] [sysadmin-discuss] /dev/null disappeared and 
unable to recreate it


Hello,


I weren't clear the first time, but this issue is encountered on a 
system that has been running perfectly for a few weeks (and not during 
an install). Nothing special happened on that system, though OpenSSH 
(which we use on that system in replacement of SunSSH) crashed on us 10 
minutes before we noticed /dev/null went missing. Maybe one issue caused 
the other.

Nothing was done under /dev.

As stated earlier, I am not able to create *anything* named null under 
/dev/ :

#  ln -s  ../devices/pseudo/[EMAIL PROTECTED]:null/dev/null
ln: cannot create /dev/null: No such file or directory

# touch /dev/null
touch: /dev/null cannot create

touch /dev/anything succeeds, though


Best regards,
François Feugeas

 - Original Message 
 From: [EMAIL PROTECTED] [EMAIL PROTECTED]
 To: François Feugeas [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]; indiana-discuss@opensolaris.org
 Sent: Thursday, August 21, 2008 1:10:48 PM
 Subject: Re: [indiana-discuss] [sysadmin-discuss] /dev/null 
 disappeared and unable to recreate it

 Francois,

 I'm reposting this on indiana-discuss to see if anyone on that list
 can provide some input.

 Is this happening during a netinstall?
 Can you provide the output of ls -l /dev/null?

 Cindy

 François Feugeas wrote:
  Hello,
 
  We're having a strange issue on one of our OpenSolaris 64bit 
 installs. For some unknown reason, /dev/null disappeared. We tried to 
 reboot but it didn't help. We're running SNV93.
 
  /devices/pseudo/[EMAIL PROTECTED]:null does exist and permissions are 
  correct :
  # ls -l /devices/pseudo/[EMAIL PROTECTED]:null
  crw-rw-rw-  1 rootsys  13,  2 août 21 15:59 
 /devices/pseudo/[EMAIL PROTECTED]:null
 
  devfsadm and devfsadm -P fail :
  # devfsadm -V chatty | grep null
  devfsadm: cannot create link: /dev/null - 
 ../devices/pseudo/[EMAIL PROTECTED]:null.  max attempts exceeded
  devfsadm[2456]: chatty: minor_process: node=mm, minor=null
  devfsadm[2456]: chatty: reset_node_permissions: 
 phy_path=/devices/pseudo/[EMAIL PROTECTED]:null lphy_path=/pseudo/[EMAIL 
 PROTECTED]:null
 
  /dev is writable by root and I can create files or symlinks into it, 
 as long as they're not named, you guessed it, null.
 
  I didn't find any reference to that particular issue. Has anyone 
 encountered that issue already ?
  
  
  This message posted from opensolaris.org http://opensolaris.org
  ___
  sysadmin-discuss mailing list
  [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED]
  http://mail.opensolaris.org/mailman/listinfo/sysadmin-discuss
 ___
 indiana-discuss mailing list
 indiana-discuss@opensolaris.org mailto:indiana-discuss@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/indiana-discuss


-- 
François Feugeas

Directeur technique
Oxileo Micro

tél.  : +33.8 20 48 02 50
port. : +33.6 28 05 53 50
-- 
Société Oxileo
Siège Social : 9, rue du Gué, F-92500 Rueil Malmaison
RCS Nanterre B 483 520 375  - Forme Sociale : S.A.S.
Capital Social : 40 000 E   - SIREN/SIRET   : 483 520 375 00013
-- 
Ce message électronique constitue, avec ses pièces jointes, une correspondance 
confidentielle exclusivement réservée à son ou ses destinataires désignés. Les 
vues et opinions exprimées dans ce message ne reflètent pas nécessairement les 
vues ou opinions de la société Oxileo. Compte tenu de la nature du réseau 
Internet, Oxileo n'est pas en mesure de garantir l'authenticité ni l'intégrité 
de cette correspondance qui ne peut par conséquent pas l'engager ni lui être 
opposée. 
Si vous n'êtes pas destinataire de ce message, il vous est rappelé que toute 
utilisation, divulgation ou reproduction de ce message ou de son contenu est 
strictement interdite. Si vous avez reçu ce message par erreur, veuillez nous 
avertir aussitôt par courrier électronique et le supprimer de votre messagerie. 
Merci.___
indiana-discuss mailing list
indiana-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/indiana-discuss