Hosed /usr partition, cannot mkfs

Hosed /usr partition, cannot mkfs

Post by Deepak Nara » Wed, 19 Feb 1992 08:12:05



I just hosed the /usr partition on an RS/6000 (530, AIX 3.1.7).
How?  I am still not sure!!!  But that comes later, because what
I want to do  is fix the thing first.

I was trying to incease the size of the partition using smit,
and I am kind of hazy on the details after that (should take a
look at the smit.log file, but only if I can get the danged thing
fixed first). Anyway, I killed the superblock on the partition.

I thought that I could boot up in single user mode, mkfs on /dev/hd2
(which is where /usr was mounted from), and restore from another
RS/6K machine.  But was I mistaken.  The manual starts talking about
volume groups and varyoff and varyon on the vg's etc.  I thought that
I was following all that, except the manual does not talk of partitions
(with the mkdev command), only physical disks.  I would go back into
smit, but the terminal is all screwed up (cannot use the up/down arrow
keys after I booted from the floppies), and that makes smit useless
too.

Help!!! All I want to do is mkfs on /dev/hd2 and I then hopefully
can get the lpp's and other stuff back (and life will be fun).
How?

Thanks,
Deepak Narain

 
 
 

Hosed /usr partition, cannot mkfs

Post by Deepak Nara » Wed, 19 Feb 1992 17:15:37


Yesterday I posted a thingy describing a problem that I had
after I hosed the /usr partition, and couldn't mkfs it in single
user mode.  Anyway, I fixed that problem.  (after lots of pain
too, I might add).  Anyway, now here's another question:

Aren't the /dev/hd? that are made in the installation process
logical volumes?  If not, why  bother not naming them lv?? (which
is what crfs does by default).  I did a file on one of the
/dev/hd? and the /dev/lv?? files and both of them have the same
major device id, only different minor device id's.  Which leads
me to think that they might be the same.  Am I right/wrong/ignorant
here.  Please let me know either way.

Thanks,
deepak narain


 
 
 

Hosed /usr partition, cannot mkfs

Post by Lynn Osbu » Thu, 20 Feb 1992 00:22:37


In AIX, filesystems and logical volumes are not the same...in fact, are only
faintly related.  Filesystems are not radically different from vanilla unix,
but the logical volume manager (LVM) is a breed unto itself.  You asked if
/dev/hd? are the logical volumes...not exactly.  They are, as you pointed
out, devices to *access* the logical volumes.  Perhaps it will help if you
think of logical volumes as "partitions" (term we used with System V) of the
actual, physical hard disk(s).  The beauty of the LVM is its easy extensibility.Yesterday I "glued" an extra 3 PPs (physical partitions in AIXspeak) onto
an existing filesystem without having to stop anybody from working.  On one
of my SysV boxes, that would have meant dismounting the f/s and running it
off to tape, followed by re-partitioning (and possibly reformatting) the disk,
followed by a restore of the tape.  Being able to just "slap 12 meg onto the
end of a filesystem like a lump of play-doh" saved me hours of time.

If you have access to it, there is a pretty fair explanation of the LVM in
"General Concepts & Proceedures", IBM part # SC23-2202-00.

oz

 
 
 

Hosed /usr partition, cannot mkfs

Post by Marc Ausland » Thu, 20 Feb 1992 00:12:05


...

Quote:>Aren't the /dev/hd? that are made in the installation process
>logical volumes?  If not, why  bother not naming them lv?? (which
>is what crfs does by default).  I did a file on one of the
>/dev/hd? and the /dev/lv?? files and both of them have the same
>major device id, only different minor device id's.  Which leads
>me to think that they might be the same.  Am I right/wrong/ignorant
>here.  Please let me know either way.

In a word - history.  The conventional naming of the "disk devices" in
RT AIX was /dev/hd...  These names where retained in AIX V3.  So the
install code specifies those names for the logical volumes it creates.
If you create logical volumes, their default names are of the form
/dev/lv..., but you can specify any device names you like.

The logical volume device model uses a major number for each volume
group, and a minor number for each logical volume in that volume group.
--



 
 
 

Hosed /usr partition, cannot mkfs

Post by Julie A. Leve » Fri, 21 Feb 1992 03:47:16



>Aren't the /dev/hd? that are made in the installation process
>logical volumes?  If not, why  bother not naming them lv?? (which
>is what crfs does by default).  I did a file on one of the
>/dev/hd? and the /dev/lv?? files and both of them have the same
>major device id, only different minor device id's.  Which leads
>me to think that they might be the same.  Am I right/wrong/ignorant
>here.  Please let me know either way.

>Thanks,
>deepak narain


The hd? names are logical volumes, but the names are left-overs
from the RT days (I think).  All the "system" logical volumes are
called "hd1, hd2.....".  mklv (which crfs calls) will use a
default prefix of "lv" when it create logical volumes, unless
you specify a name with the -y flag.

The reason the hd's and the lv's have the same major numbers is
because they are all in the same volume group.  The volume group is
the device that gets the major number in the kernel, and each lv
has it's own minor number.  

Later,
Julie
--
*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*=*

IBMNET: JULIEL at AUSVMQ 2F-007/903  (512) 838-2677 (Tie 678-2677)
"I'm not getting defensive!"

 
 
 

1. mkfs, hda1, and /usr/local

Yes, you can do all of that.  Just make sure that:
1) You make your FAT partition into ext2 partition Before copying files over.  
2) Copy the files over and make sure that you can mount and use /usr/local
Before you delete the old one.
3) Use the correct cp.  Read the man page.  I think 'cp -a' will give you what
you want.

2. PCI/SCSI NCR controller problem

3. RedHat Glint (weird) problem

4. I hosed /var and /usr

5. mustek scanner on aha1542

6. Questions about partitions (eg /usr vs /usr/local, etc)

7. apache on aix 3.1.2

8. Multiple Partitions For /usr /usr/local

9. I hosed owner/groups in /usr/bin...Help

10. How do I know /usr directory is on /usr partition?

11. mkfs under solaris 2.6 cannot be mounted on sunos 4.X

12. Help: Bad sector on sda -- cannot mkfs, mke2fs