Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.20 How can I look at what my system is doing?"
Next document is "7.22 How can I print man pages successfully?"

7.21 How can I partition HP-UX disks on 700s at 9.x?

Here is a sample file which lists the sdsadmin commands to partition a disk
into 2 partitions. Note that this is specific to the M2654SA disk;
your mileage may vary. The mediainit is probably not required if the vendor
has formatted/verified the disk. It is not "supported" to partition
the boot disk, and you have to go through some contortions to do it.
Note also that in order to have several partitions on the root disk
AND have swap, you must create another partition which you dedicate
to swap.

Note that 10.x s700 systems support LVM, which allows great flexibility
in partitioning.

#
# SDS configuration file for this node.
#
# To rebuild the /u1 and /news Fujitsu M2654SA disk partitions, do:
#    mediainit -v /dev/rdsk/c201d5s0
#    sdsadmin -m -C /usr/local/etc/sdsadmin.config.u1news /dev/dsk/c201d5s0
#    newfs -L -n -v -m 2 -i 16384 /dev/rdsk/c201d5s1 HP_M2654Su1x1-2
#    newfs -L -n -v -m 2 -i  2048 /dev/rdsk/c201d5s2 HP_M2654Su1x1-2
#
# Disk partitions:
#
# 1   /u1     145xxxx 1K blocks (/dev/dsk/c201d5s1, /dev/rdsk/c201d5s1)
# 2   /news    55xxxx 1K blocks (/dev/dsk/c201d5s2, /dev/rdsk/c201d5s2)
# -   -----   -------
#             2006016 1K blocks
#

type    M2654Su1x1-2
label   u1_news

partition 1
   size 1450000K

partition 2
   size      max

(Thanks to Mike Petersen and Timothy Mooney <mooney@pinky.cc.ndsu.nodak.edu>)


Here's some more text on this from "Jeff L. Cooke"<jeff.cooke@lmco.com>

           (1) Create an Array Description File (in this case, you might
            want to call it a partition description file):

           # SDS array description file.
           #
           type           TYPE_NAME   # Anything you want to make up
           label         sample       # again, anything you like
           # /filesystem1
           partition  1
           size           100M
           # /filesystem2
           partition  2
           size           100M
           # /filesystem3
           partition  3
           size           max

            Details on creating ADFs are in man 1M sdsadmin.

           (2) Initialize your media (if required): mediainit -v /dev/rdsk/
           c201d5s0

            (we'll use the name /dev/rdsk/c201d5s0 for the raw device name
            in the examples here)

           (3) Use the sdsadmin command to create the partitions:

            sdsadmin -m -C <filename of your ADF> /dev/rdsk/c201d5s0

           (4) Make the filesystems with newfs:

            newfs -L -n -v /dev/rdsk/c201d5s1 HP_TYPE_NAME
            newfs -L -n -v /dev/rdsk/c201d5s2 HP_TYPE_NAME
            newfs -L -n -v /dev/rdsk/c201d5s3 HP_TYPE_NAME

           (5) Make these manual additions to /etc/checklist:

            /dev/dsk/c201d5s1  /usr/spool/filesystem1 hfs defaults  0 1 #
            /dev/dsk/c201d5s2  /usr/spool/filesystem2 hfs defaults  0 2 #
            /dev/dsk/c201d5s3  /usr/spool/filesystem3 hfs defaults  0 3 #

           (6) Prepare to mount the new filesystems:

            If this is a "clean" machine (i.e. these filesystems are not
            currently directories), then you must simply create the mount
            points (i.e. make empty directories with the same name as the
            filesystems you are creating.

             mkdir /usr/spool/filesystem1
             mkdir /usr/spool/filesystem2
             mkdir /usr/spool/filesystem3

            If the new filesystems correspond to existing directories,
            then you will need to move the content of the directories
            aside or remove the content (since, after mounting the
            directories will be inaccessible).  Make sure you leave the
            directories as mount points.

           (7) Mount the filesystems: mount -a

           (8) Replace all of the files/directories you moved in step (5).

Parent document is top of "comp.sys.hp.hpux FAQ"
Previous document is "7.20 How can I look at what my system is doing?"
Next document is "7.22 How can I print man pages successfully?"