I think you are out of luck unfortunately. UFS filesystems generally can't be grown. I believe your only choice would be to make a full backup, reinstall solaris laying out the filesystems how you want, then restore from your backup.
If you are using Solaris disksuite you might be able to get around that limitation, but I don't know how. I know with Veritas Volume Manager you can increase a volume and filesystem on the fly. But even then, if it is your encapsulated root volume it is an awfully painful process.
... for your first time doing this, i suggest you try to boot the 2nd drive as an alternate boot device as failure of that drive to boot means you missed a step and swapping drives will not make it work any better ...
anyways, i've found through the years that having the / filesystem include everything gave me much more flexibility than breaking out some of it's components --- i.e., the unused spaces in /home, /usr and /var are easily reclaimed if i need more space in /, i can create as many directories as i want without resorting to creative symlinks all over the place, etc. ...
however, there are times i'd at least want some of the sub-directories broken off --- i.e., /var should be it's own filesystem if there is a massive amount of system log activity or if the server is a mail server, /home should be it's own filesystem if you want to contain and enforce quotas on user data, etc.
you need to figure out how you folks want to support the server and how the server is going to be used in the long term so you'll know your better if you want to split out sub-directories into their own filesystems ...
I think you are out of luck unfortunately. UFS filesystems generally can't be grown. I believe your only choice would be to make a full backup, reinstall solaris laying out the filesystems how you want, then restore from your backup.
sry, but that's not true:
see:
you see? disksuite is complicated, but mighty.... if you are dealing with root partitions it's a pit more sophisticated. i am not sure if it will work to make a concat on the root partitions, never tried it, but i think it won't work. depending on how big your /export/home is you could dump it somewhere to, repartion your harddisk and increase the number of blocks for your root partition with the "format" menue, let the rootslice grow with "growfs", make a new fs on /export/home and restore the dump. i could imagine many ways to do it, e.g. you could use your second disk for /export/home, use the solaris feature to use a file for swapping (could be changed on the fly) and make new partitions on the 2nd disk and restore the system configuration...
but to be honest, if you are not used with solaris, it would be the easiest way for you to reinstall the system, sry
Quote:
Just Ice
also a way to do it, i like your script... but on that, you would need a downtime.... belongs to you
pressy --- thanks for the compliment but that script is a hack of a hack of a hack (and so on and so forth) and not mine completely ...
anyways, the reformat and the data copies into the 2nd drive can be done during normal working hours with the reboot waiting until after the users are off the system ... i would suggest trying that option first --- maybe there's no need to reinstall the os at all ...
Can you do a ufsdump | ufsrestore disk to disk on different size slices conatining root?
source root partition which contains usr, var, and /. and is 2GB size.
If I do a ufsdump | ufsrestore to the new disk, and then make it boot from the new disk. will this work?
Hi
Please let me know how to increase the size of /tmp file system from 512m to 1024m dynamically without reboot in solaris zone
# df -h
Filesystem size used avail capacity Mounted on
zones/zone1 11G 1.0G 10.0G 10% /
/dev 11G 1.0G ... (6 Replies)
Hi,
I have recently taken up to support these SunOS 5.9 sun4u sparc SUNW,Sun-Fire-V240 boxes and got a request to increase the size of /backup01 as its getting filled up quickly and can't play much on it as these are production servers. As I have no idea about how to do this, can anyone let me... (0 Replies)
Hey all!
I was hoping someone knew anything about this one...
I know with Solaris Volume Manager the default Database Replica size is 8192 blocks (4MB approximately)
Now I know you can increase this amount but is there any point?
The reason I am asking this is that I've setup mirroring on... (2 Replies)
Hi All,
I am writing a block driver for a 2GB SD card where i get the total amount of data per request as follows:
struct request *req;
uint card_addr,total_bytes;
struct request_queue *rq = BlkDev->queue;
req = elv_next_request(rq);
..
..
card_addr = req->sector*512;... (1 Reply)
Hi frnz,
Need an urgent help...
I have installed solaris 8 in a sunblade workstation with 136GB hdd.
While installation it has taken a default filesystem size as 1.37GB for root.
AFtr completing the installation i have extended the root partition to 130GB.
But still df output shows... (4 Replies)
Hi
I am a bit green to AIX - but when our backup operator tries to do a restore from one AIX box to another, he get's the error:
'A file cannot be larger than the value set by ulimit'
I am wondering what is the impact of increasing the AIX filesize limit of 2 gb to unlimited. And how would... (1 Reply)
Hello all,
I'm ufs file system, how can u use the same disk in another machine with the data in tact? to make it clear, I've an ufs FS in a mount point /file1 ( 8GB). now they decide to reintall the OS. After the reinstall, how can i get the same data as it is? will mounting the disk as /file1... (3 Replies)
I tried to build a 1.3 TB volume with disk suite, and recieved an error (don't remember the exact verbage, it was very late). It only built a 1 TB volume. newfs completed without error. I rebuilt the volume to be just under 1TB, and all was fine. Is there a limitation with disk suite, or ufs, that... (3 Replies)