Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can I get second system disk online without reboot 1

Status
Not open for further replies.

mingx98

Technical User
Mar 16, 2000
78
CA
Thanks in advance,
My boss ask me add second system disk in weekend for
our production box ( sol 2.6), but I think I can do this
online without reboot the box, so I need not work in
weekend.
Who can give a way to finish this ?
ThANKS AND bEST WISH
 
with the drive attached to the scsi bus, run the following commands:

/usr/sbin/drvconfig
/usr/sbin/devlinks

you should then be able to newfs it and mount it.

Mark
:)
 
Or try

#drvconfig;devlinks;disks

This does not always work! There is no other way.
 
You can add the new disk to the system without rebooting by doing the following:
1> add new disk to open drive slot
2> # drvconfig
3> # disks
4> # devlinks
5> # format (choose whatever options you need)
6> # newfs
7> add mount point to /etc/vfstab to enable automount at system startup
8> # mountall (mount new filesystem, or mount <filesystem>)

This should work, I did it recently to add a new disk myself. If you have RAID implemented its a lot different cause you'll need to do a system backup, destroy the RAIDed filesystems, and re-create the RAIDed filesystems to include the new filessytem. Obviously RAID is more involved, but I'm thinking there must be a different method , isn't there always :).

Regards.

- Stuart
 
I'm trying to add a second IDE drive to an Ultra 10 as well. I have been through the steps mentioned above and receive no errors until I try to mount /dev/rdsk/c0t1d0s7. Then I get a:

mount: /dev/rdsk/c0t1d0s7 not a block device

I did the drvconfig, disks, and devlinks. Ran format for the device, did partition->modify->All Free Hog base number 7, verified it. No problem. newfs for this device (s7)creates a filesystem just fine. What am I missing?

By the way, newfs only works for s2 and s7, that makes sense looking at the partition table, right? Other devices give me an I/O Error.

Thanks

 
You cannot use partition s2 to create a filesystem, s2 is the backup partition, if you want to create a filesystem that is your entire new hardisk, just use format and configure a partition (eg: s0), to contain entire disk space, don't forget to save the new label, then to create the filesystem you can use something like:

# newfs -m 1 /dev/rdsk/c0t1d0s0

and if you want to mount your new filesystem on eg: /newdisk just:

# mkdir /newdisk
# mount /dev/dsk/c0t1d0s0 /newdisk

don use &quot;rdsk&quot; on mount (block device), use &quot;dsk&quot; block device or you receive the error &quot;mount: /dev/rdsk/c0t1d0s0 not a block device&quot;, you can also change &quot;/etc/vfstab&quot; to contain the new filesystem for eg: mount at boot time, etc.

Also when add a new disk if your are using Solaris 8, you can use &quot;devfsadm&quot; in place &quot;drvconfig,disks,devlinks&quot;, devfsadm to the job in just one command...

Regards,

Carlos Almeida,


Hope it helps,

Carlos Almeida
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top