Visit Our UNIX and Linux User Community


repartitioning


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers repartitioning
# 1  
Old 02-08-2002
repartitioning

Hi. I am working on a Sunblade with Solaris 8 installed. 2 hard disks, not mirrored or striped. The person who set it up originally had not given /usr it's own partition. The second disk is one large partition with a directory mounted on it. We are running Apache on this machine to work with Blast databases. The www files are all under /usr. Problem is that root is full now with all these www and db files, so I would like to repartition disk2 to make room for a /usr mount. However, the directory currently mounted on disk2 has files in it also. I would like to be able to repartition disk2 without disturbing these files. Help please!
# 2  
Old 02-08-2002
"had not given /usr it's own partition" This is always a matter of choice. /usr does not have to be it's own partition. Putting /usr on a second disk may be more confusing than leaving it where it is. If you were moving /var to a different disk, not as bad but to move /usr requires you boot up off of a cdrom into single user.

"The www files are all under /usr" Are they under /usr in their own directory? If so, that is what you should move to it's own partition (leaving /usr where it is). If they are in /usr/www/, then boot into single user and tar the /usr/www/* and put it on the second disk. Then create a link from /usr/www to the new directory on the second disk (/www). This is also better for security reasons not to have the web pages (and cgi-scripts) loaded on /usr. You probably don't have to change the Apach config files at all for this (although that is also easy enough)
thehoghunter
# 3  
Old 02-11-2002
You are right about putting WWW on the second disk. I was considering that too but was not sure. However, your reply didn't mention whether it is possible to repartition disk2 so that I can put www on its own partition there (without having to move the files currently on disk2 somewhere else).

Or did you mean that I should just put www in disk2 as a subfolder of the folder currently present? Currently /usr/home/data has the whole of the disk2 partition. If I put www as a subfolder there, would that be too deep and create slow access for users? Perhaps it makes no difference as it will be only accessed internally on our LAN.
# 4  
Old 02-11-2002
Sorry, sometimes it's hard to remember which problems I was helping with...takes time to re-find them.

Anyway, putting a link for the web pages onto the second disk would be easier and the fact that the directory would be down 4 levels would not matter. What would matter is the security of those pages (don't want a disgruntal employee messing with them).

To repartition, you would have to put the info on disk 2 to tape and then restore it after repartition of the drive.
thehoghunter
# 5  
Old 02-12-2002
Thanks for your help. I was afraid that the only way to repartition was to backup to tape first. Just hoping on the off chance that there might be an obscure utility to use. Anyway, I will be implementing the changes. Thanks again.
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #929
Difficulty: Medium
Vernor Vinge's novel A Deepness in the Sky describes a spacefaring trading civilization thousands of years in the future that still uses the Unix epoch.
True or False?

6 More Discussions You Might Find Interesting

1. Ubuntu

Ubuntu very slow after repartitioning

Good evening, i don't know if this is the right section, so forgive me if it's wrong. i have an Asus Gl503v in dual boot w10-ubuntu18. hard disk is hybrid ssd-hhd. w10 is the native system and it is on ssd. I partitioned the hdd left a part ntfs and a part ext4. In the ext4 part i created... (15 Replies)
Discussion started by: Marcov
15 Replies

2. Solaris

Metaset repartitioning

Dear all, This metaset stuff drive me crazy. The story begin with the Solaris 8 upgrade.... We have a pair of Solaris 8 with Sun Cluster 3.1, to prevent a long downtime, the Live Upgrade was chosen. As metadb cannot use LU to upgrade directly, we remove the diskset before upgrade, and put it... (0 Replies)
Discussion started by: donaldfoo
0 Replies

3. Solaris

formating and repartitioning an external hard drives

Version: solaris 10 x86 I just got a western digital external harddrive formated with fat 32. this drive came with some setup files which is meant for windows or mac. I want to reformat and partition this drive into two ( for solaris and windows) such that the setup files will still be there... (2 Replies)
Discussion started by: seyiisq
2 Replies

4. UNIX for Advanced & Expert Users

Resizing and repartitioning NTFS with gParted?

Sorry that this is slightly OT, but in my defence, I intend to install Linux (and probably others). I just bought a new computer with Windows Vista preinstalled; and though there is no love between me and MS, I would like to keep it (I paid for it after all). I have 2 x 500GB HDD. The extra... (1 Reply)
Discussion started by: koppe
1 Replies

5. Solaris

Repartitioning hard drive on Solaris10

Hello, Is it possible to repartition hard drive on Solaris10 without deleting all the content of the drive? I have a workstation with 40G drive that has two partitions 4G and 36G. The big partition is allocated for /export/home and small for everything else (don't ask me why, I did not set it up... (1 Reply)
Discussion started by: pn8830
1 Replies

6. Filesystems, Disks and Memory

Repartitioning scsi drive in Nextstep

Need to change the partitions on a SCSI drive with Nextstep. df shows filesystem kbytes used avail cap mounted on /dev/sd0a 2051824 231924 13% / /dev/sd0b 998332 9 0% /Vol2 /dev/sd0c 998332 9 0% /Vol3 /dev/sd0d 998332 9 0% /Vol4 /dev/sd0e 998332 9 0% /Vol5... (3 Replies)
Discussion started by: Mace
3 Replies

Featured Tech Videos