Update SUMMARY: removing quota files / diskconfig



Hello Admin wizwards,

Michael James Bradford pointed out that in the example supplied by Bard Tesaker the partition /dev/rz0c was to be added, which would represent the whole disk.

I would like to point out that of course everyone has to replace it with the letter representing the disk partition in question (in my case it was /dev/rz0h).

Thank you, Michael!

CW


once again thanks for all the answers and a big hand for:

Tom Blinn (!), Bl Venkatesh, Bard Tesaker, Peter Stern, Armin Olig

Consensus was that:

a) quota files MUST not be deleted cause they are used by the AdvFS;
they are however only sparse files so that most of the pages are nopt
really there (Tom)

b) it is highly recommended NOT to resize the disk partition (eg
/dev/rz0h) w/ diskconfig while the system is running.

c) However the following way proved to be useful for the main
clusternode (and failed on the failover node for obscure reasons): use
disklabel to mark the partition h as used by advfs and use addvol to add
 it as a volume to the filedomain usr_domain. Bard Tesaker supplied
this procedure:
#######################################################################
Example under assumes the system disk /dev/rz0 (rawdevice /dev/rrz0)
and "ed" as EDITOR.

* First edit the disklabel so the h partition covers the unused blocks:

#stamme:/> disklabel -re /dev/rrz0c
1068
/ h:
  h:   0     0    unused    0   0     # (Cyl.    0 - -1)
s/0/135143/
s/0/1817930/
-1
  h:   135143     1817930    unused    0   0     # (Cyl.    0 - -1)
w
1079
q
write new label? [y]: y
re-edit the label? [y]: n
#stamme:/>

* Then add the h partition to the usr_domain (require advfs licence)

#stamme:/> addvol /dev/rz0c usr_domain
#stamme:/>


"df /usr" and "showfdmn usr_domain" should now reflect the change. /etc/usr_domain should contain rz0g and rz0h.

This procedure should be "tamper-safe" since both disklabel and addvol
verifies that your actions are safe, checking overlap with acive
partitions etc.

##########################################################

d) workaround on the failover cluster: I created the partition h as
described and also created a new domain (var_domain) and a fset (var) on
it. Then, i edited fstab to mount this new partition as /var and moved
the complete content of /var (i.e. /usr/var) to it.

thank you all!!

CW



Relevant Pages

  • Re: Problem in Solaris 10 Installation - UPDATE
    ... I tried to resize backup partition so that it is: ... Ready to label disk, continue? ... In this way, I can label the disk without error, but the installation gives the same error. ...
    (comp.sys.sun.admin)
  • Re: Linux community software-update-anarchy polemic
    ... Remember, I'm just a monkey. ... That implies that if you have one disk per partition, ... Trust the kernel or don't trust the kernel, but either way, both ...
    (comp.os.linux.misc)
  • Re: format OK, but mount still fail.
    ... AVAILABLE DISK SELECTIONS: ... # format /dev/rdsk/c1t5d0s0 ... partition - select a partition table ... label - write label to the disk ...
    (comp.unix.solaris)
  • Re: Problem in Solaris 10 Installation - UPDATE
    ... Please delete the partition and install the OS. ... Ready to label disk, continue? ... In this way, I can label the disk without error, but the installation gives the same error. ...
    (comp.sys.sun.admin)
  • SUMMARY: Moving /usr From Under Root "/" To Its Own Partition
    ... One of the reasons for doing this is to end up with a smaller root ... Install the boot block and boot off the new drive. ... " In order for the root partition to be fscked and remounted ... D> temporarily on the existing disk. ...
    (SunManagers)