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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create new Filesystem

Status
Not open for further replies.

kozlow

MIS
Mar 3, 2003
326
US
This is a newbe ?, but I am in a jam....

They ran out of space in a filesystem on a Solaris server SunOS 5.8.

I cut a new LUN on our EMC, attached it to the Server...

Now I am not sure how to have the OS recognize the new device and either add it to the existing Filesystem or create a new filesystem.

I look on the Web, but never found a step - by -step....

Any help would be appreciated...

Yes, I inherited the server from a consultant that left the company. It is in another State.....

I am an Admin for HP-UX and AIX... Learning Solaris while I earn.....

Thanks.....
 
kozlow.
To get the OS to see the new disk:

login as root
enter command touch /reconfigure
enter command init 6

or

From the ok# prompt, boot -r

or

Since this server is in another state, you may not want to shut it down. You can try command devfsadm which should load the device driver, create the device links in /dev and /devices and also maintain the file /etc/path_to_inst.

You may want to partition your new disk. You do this via the format command. Select the new disk from the list. Select partition.

Once the disk is partitioned, you create a file file system with the newfs command.

Example newfs /dev/rdsk/c#t#d#s#

I always verify the newly created file system with the fsck command.

Example fsck /dev/rdsk/c#t#d#s#

 
Thanks... We thought you would have to re-boot. Did not make the users happy... We understood that there was a touch file, but had no idea what it should be called.

The disk are puesdo drives and in /dev/disk with links to /devices/puesdo...

they are all labeled emcpower followed by a number and then a letter from a to g.

Plan on running "format" when the system comes up and look for the new emcpower entry....

I am guessing that the letter is like the s in cXtXdXs

Would g be the whole drive? I noticed our mount command shows /dev/dsk/emcpowerXg for each of the filesystems...
 
You do not need to reboot. From Solaris 5.8 you can use the command devfsadm, as root, which will build the new paths in /dev /devices
# devfsadm <enter and wait>
 
The drive was a newly created LUN off an EMC CX300. It did not show up when I ran the devfsadm. I tried it several times with no luck. Maybe because it is a pseudo device.

After the boot, it showed up.

I had some problems using the newfs command. Had to use mkfs with option -F vxfs in order to get everything to work properly.

I called sun support on the emcpowerXa thru f and they did not have an answer. I used g and it seems to be using the total LUN. I will continue to look up information on that.


Live and learn by your mistakes........

Thanks again for all the help and information.....
 
I know on our EMC servers we have to modify /kernel/drv/lpfc.conf and /kernel/drv/sd.conf. Also you probably have EMC Powerpath installed you need to look into the powermt command. I believe it is located under the /etc/ directory.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top