ITEM: H7252L

Unable to create a filesystem.


Question:

We had a filesystem before making a backup. But it was deleted
after the backup was completed. Now, when we are trying to 
restore the files, it doesn't see the filesystem and is restoring
them to the root filesystem. We don't want that.  

We tried creating the filesystem, but we are getting errors.  How 
can we create the filesystem and assign to the same logical volume
as before?  

Also, during this process, I accidentally removed /dev/lv01 and 
/dev/loglv01.  How can I get these files back?  I've tried rebooting.

Response:

We checked to see if /dev/lv01 existed with "ls -al /dev/lv01".  We also
checked to see if /dev/rlv01 existsed with "ls -al /dev/rlv01".  Both 
files had been recreated during re-boot.  However, /dev/loglv01 did not 
exist (although /dev/rloglv01 did).  We ran the following commands in order 
to add /dev/loglv01:

  lslv loglv01 \<-- to get minor number (2)
  ls -l /dev/lvg04 \<-- to get major number (41)
  mknod /dev/loglv01 b 41 2

Tried to create a filesystem through SMIT but it returned errors about
a file already existing.  In order to find out what logical volume the
mklv command was trying to create we issued the following command:

  getlvname -Y lv jfs

This returned that mklv was trying to create lv17.  There was a lv17 in 
the /dev directory, but "lslv lv17" showed no logical volume by that name.  
We ran "rm /dev/lv17" to delete the file.  "rm /dev/rlv17" was unnecessary
because the file did not exist.

After doing this we were able to successfully add a new logical volume
and filesystem.


Support Line: Unable to create a filesystem. ITEM: H7252L
Dated: April 1994 Category: N/A
This HTML file was generated 99/06/24~13:30:47
Comments or suggestions? Contact us