Summary 2: Extend file system

From: Howard Arnold (arnoldh@celerent.com)
Date: Sat Jan 22 2005 - 23:40:51 EST


I want to thank Bill Kirk who told me that if I increased the size of the c
partition the way I was doing I also needed to change the sectors/unit:
40135120 of the disk to match. I did another test and this worked. This step
is missing in the manual.

I then did a test by putting in a larger value, larger than the actual disk
size, but had the sectors/unit match the c partition and the disk label
took. I than did a mount -u -o extend and it failed by stating that it would
extend past the end of the disk. I was glad of this because I wanted to see
if there a check to make sure that you couldn't just type any size in.

Original question:

I have a quick question on extending a file system. I have an HSV110 and I
have extend my virtual disk by 100gig. I want to extend the file system
without umounted it. This is what I did

1) Extended virtual disk by 100gig
2) disklabel -rw dsk100
3) mount -u -o test_domain#test /test

The file system showed the increase in size and I was able to read and write
the file system.

The reason I'm asking the question is the system admin guide has you reading
the disklabel to a file and then modifying the label and reading it back
onto the disk (section 6.3). This didn't work for me because is said that
the open partition extend pass the end of the disk.

Howard Arnold
Technical Consultant
Phone:(603) 685-6060 ext:206
Fax: (603) 685-6060
Email: arnoldh@celerent.com
www.celerent.com



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:50:14 EDT