Adding an additional harddrive in solaris 9


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Adding an additional harddrive in solaris 9
# 1  
Old 08-04-2006
Adding an additional harddrive in solaris 9

Hello,

I have a system which a new harddrive was installed for additional space. I now need to mount the drive and transfer data from /home to the new drive with a mount point named /home. How do I go about doing this? Thanks in advance.
# 2  
Old 08-04-2006
The first thing you need to do is make sure the system is seeing the new drive. On a sparc box you'd use the format command, if you're using Solaris x86 I'm not sure if format is there, you may have a different command.

The new disk will have a name something like c0t1d0. You use the format command to create a partition, I'd recommend making one big partition (probably c0t1d0s0) with all the space for a data disk like you're wanting - obviously you can choose to do it different if you prefer multiple partitions. In the format command you can choose your new disk, then the menus will give you the options you need to format the partition.

Once you have your partition made, do a reconfigure boot with reboot -- -r. Then you'll have a device entry like /dev/c0t1d0s0. Use the mkfs command to make a filesystem on it. After that you'd just mount it with the mount command, and add a line to /etc/vfstab so it is mounted on boot from now on. You probably just want to mount the new drive on /mnt by hand and copy your home directory stuff over first time, then set up /etc/vfstab to mount it on /home once you're done with they copying. You can't have both drives mounted on /home at the same time.

For details of the commands I'm talking about see the manpages for format, mkfs, and mount.

Good luck.
# 3  
Old 08-04-2006
Quote:
Originally Posted by rhfrommn
The first thing you need to do is make sure the system is seeing the new drive. On a sparc box you'd use the format command, if you're using Solaris x86 I'm not sure if format is there, you may have a different command.

The new disk will have a name something like c0t1d0. You use the format command to create a partition, I'd recommend making one big partition (probably c0t1d0s0) with all the space for a data disk like you're wanting - obviously you can choose to do it different if you prefer multiple partitions. In the format command you can choose your new disk, then the menus will give you the options you need to format the partition.

Once you have your partition made, do a reconfigure boot with reboot -- -r. Then you'll have a device entry like /dev/c0t1d0s0. Use the mkfs command to make a filesystem on it. After that you'd just mount it with the mount command, and add a line to /etc/vfstab so it is mounted on boot from now on. You probably just want to mount the new drive on /mnt by hand and copy your home directory stuff over first time, then set up /etc/vfstab to mount it on /home once you're done with they copying. You can't have both drives mounted on /home at the same time.

For details of the commands I'm talking about see the manpages for format, mkfs, and mount.

Good luck.

Thanks a lot, imgoing to give this a try. i'll report back the results.
# 4  
Old 08-07-2006
MySQL

Thanks rhfrommn!, Everything went perfect! Smilie
# 5  
Old 08-07-2006
Sweet! Glad to hear it all worked for you.
# 6  
Old 08-09-2006
never mind...figured it out.....

Last edited by GLJ@USC; 08-09-2006 at 08:49 PM..
 
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

Adding Additional Capacity with megacli

I'm trying to add 6 more hard drives to my RAID array, none of the drives are foreign, they won't be replacing any drives either. I just need to add them to the RAID array. I can't seem to get them added, what am I missing? ---------- Post updated 08-03-12 at 12:28 PM ---------- Previous... (0 Replies)
Discussion started by: eccentricson
0 Replies

2. Shell Programming and Scripting

Adding an additional blank field to a file

Hi, I have the following file, I'd like to add an additional blank field to this file This is a tab delimited file, I have tried the same thing on excel, but looking for a unix solution. Here is my input: Country Postal Admin4 StreetBaseName StreetType HUN 2243 Kóka Dózsa György ... (3 Replies)
Discussion started by: ramky79
3 Replies

3. Solaris

Sun Blade 150 will not boot off harddrive after install of solaris 10

Hello, I cant get my blade box to boot off the harddrive after installing solaris 10.I can get to a root prompt after issuing "boot cdrom -s".I tried booting off disk0 and disk1,but I get "the file just loaded does not seem to be executable".Thanks for any help.:wall: (4 Replies)
Discussion started by: chucky
4 Replies

4. AIX

Any Additional Steps After Adding New RAM To Sever?

Hi All, We have a server at a client site running AIX 5.3, which we just up the RAM to 32GB, from initially 16GB (if I'm not mistaken). This server is our Application server running J2EE applications on top of Oracle Internet Application Server. Recently we encountered one of the batch jobs... (12 Replies)
Discussion started by: a_sim
12 Replies

5. Shell Programming and Scripting

Adding additional characters while preserving original text

Hi Forum. I'm struggling on this relatively easy request to add additional 4 0's to an existing text in a file (whenever I see the pattern -# where # represents any number) using sed command while preserving the rest of the text in the files. Original Text: $DBConnection_EDW=SAS2EDW... (5 Replies)
Discussion started by: pchang
5 Replies

6. Shell Programming and Scripting

Adding additional column at the end

I have a file like below. The separator between reconds is ">" Each record consists of 2 numbers separated by a space. I want to write an awk script that copies the second number and puts it in the third column. :rolleyes: > 10 0 13 5.92346 16 10.3106 19 13.9672 22 16.9838 25... (5 Replies)
Discussion started by: kristinu
5 Replies

7. UNIX for Dummies Questions & Answers

How to copy MBR from old harddrive to new harddrive?

How do I copy the master boot record from one harddrive to another or how to install just the MBR? (7 Replies)
Discussion started by: shorty
7 Replies

8. UNIX for Advanced & Expert Users

adding additional drive to sco the is xenix

I am taking an old xenix drive and installing it in a recent SCO Build Server. I have gone through the process of running mkdev hd twice since the drive is a SCSI then proceed to run mkdev fs and when I attempt to add one of the shown partitions I get the following: fsck: cannot determine... (1 Reply)
Discussion started by: justenglabs
1 Replies
Login or Register to Ask a Question