home *** CD-ROM | disk | FTP | other *** search
- Well, now that there are multiple mailing lists for NetBSD, I'm not
- sure this is the right place for this...
-
- I've been using the IBM RS/6000 lately and I've come to respect the
- Logical Volume abstraction for allocation of disk space (other things
- cause no end of annoyance, but..) This message is to ask about the
- possibility of including state-of-the-art disk space management
- technology into NetBSD-Amiga.
-
- Basically, their "LVM" product (Logical Volume Manager) creates the
- idea of a virtual disk drive in which disk space need not be allocated
- contiguously. Since the "virtual drive" is really multiple drives,
- the space does not even need to be on a single drive. In addition,
- since the LVM is a layer between the /dev/hdxx software interface and
- the physical device drivers, filesystems can be extended dynamically
- *while the filesystem is mounted and in use*!! (Of course, shrinking
- them back again is a might bit more difficult :-) Mirroring can be
- done at this level also, in which case the LVM simply puts the disk
- buffer into two device driver queues instead of one.
-
- Using IBM terminology (ugh!), multiple "physical volumes", ie. disk
- drives, are organized together into "volume groups". All allocations
- take place within a volume group so a filesystem can't be larger than
- a VG. The VG is a software entity and does not need to be on a single
- SCSI adapter or whatever. Each PV is broken down into chunks of a
- given size (usually 4MB on the rs6k) and this size becomes the minimum
- unit of allocation.
-
- For instance, the default installation of the rs6k creates a single
- VG, "rootvg". The required filesystems are put into this VG: / (root),
- /usr, /tmp, /var, and /home. Paging space and the dump device are also
- allocated at install time, but don't have filesystems on them as the
- others do.
-
- The above scenario would result in an entry in /dev for each logical
- volume:
-
- Device Name: Filesystem Used For:
- /dev/hd1 /usr
- /dev/hd2 /tmp
- /dev/hd3 /home
- /dev/hd4 /
- /dev/hd5 /blv (used only to hold the boot image stuff)
- /dev/hd6 paging space
- /dev/hd7 dumpdev
- /dev/hd8 logdev (for journalled filesystems)
-
- /dev/hdisk0 access to raw disk drive
- :
- :
-
- This scheme works fairly well. FSCK and friends can still access
- /dev/whatever to do their job, the mount command still uses the same
- syntax, etc. But when the system gets low on space in a given
- filesystem, it can be dynamically extended by grabbing space from the
- part of the VG that hasn't been allocated yet. So the ideal strategy
- is to not allocate space unless you need it. That way there will be
- unallocated chunks that can be used later as needed.
-
- Anyway, this is the software that the OSF has adopted. It provides a
- good layer of insulation from the hassles of disk space management and
- filesystem quirkiness.
- --
- Frank "Crash" Edwards Edwards & Edwards Consulting
- Voice: 813/786-3675 Unix/AIX & OS/2: Training, Programming, and SysAdmin
- Data: 813/787-3675 crash@azhrei.EEC.COM
- "You can't have everything. Where would you put it?"
- -- Steven Wright
-
-