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
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 .
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.
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 "rdsk" on mount (block device), use "dsk" block device or you receive the error "mount: /dev/rdsk/c0t1d0s0 not a block device", you can also change "/etc/vfstab" 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 "devfsadm" in place "drvconfig,disks,devlinks", devfsadm to the job in just one command...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.