Unable to create file system (newfs)


 
Thread Tools Search this Thread
Operating Systems Solaris Unable to create file system (newfs)
# 1  
Old 08-10-2015
Unable to create file system (newfs)

Hi

I have the following cenario:

I have requested a LUN from the NetApp to create a file system, and the netapp admin provide me with one as you can see below, but after following all the steps, I could not create a file system on the device:

Code:
# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c0t5000C50039BE40B7d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c50039be40b7
       1. c0t5000C50039D8324Fd0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /scsi_vhci/disk@g5000c50039d8324f
       2. c5t500A09818DE3E799d0 <NETAPP-LUN-8020 cyl 6142 alt 2 hd 16 sec 640>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,0
       3. c5t500A09818DE3E799d1 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,1
       4. c5t500A09818DE3E799d2 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,2
       5. c5t500A09818DE3E799d3 <NETAPP-LUN-8020 cyl 6526 alt 2 hd 16 sec 5120>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,3
       6. c5t500A09818DE3E799d4 <NETAPP-LUN-8030 cyl 6489 alt 2 hd 16 sec 9088>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,4
       7. c5t500A09818DE3E799d5 <NETAPP-LUN-8030 cyl 6480 alt 2 hd 16 sec 10112>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,5
       8. c5t500A09819DE3E799d0 <NETAPP-LUN-8020 cyl 6142 alt 2 hd 16 sec 640>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09819de3e799,0
       9. c5t500A09819DE3E799d1 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09819de3e799,1
      10. c5t500A09819DE3E799d2 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09819de3e799,2
      11. c5t500A09819DE3E799d3 <NETAPP-LUN-8020 cyl 6526 alt 2 hd 16 sec 5120>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09819de3e799,3
      12. c5t500A09819DE3E799d4 <NETAPP-LUN-8030 cyl 6489 alt 2 hd 16 sec 9088>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09819de3e799,4
      13. c6t500A09828DE3E799d0 <NETAPP-LUN-8020 cyl 6142 alt 2 hd 16 sec 640>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/ssd@w500a09828de3e799,0
      14. c6t500A09828DE3E799d1 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/ssd@w500a09828de3e799,1
      15. c6t500A09828DE3E799d2 <NETAPP-LUN-8020 cyl 61809 alt 2 hd 255 sec 252>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/ssd@w500a09828de3e799,2
      16. c6t500A09828DE3E799d3 <NETAPP-LUN-8020 cyl 6526 alt 2 hd 16 sec 5120>
          /pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0,1/fp@0,0/ssd@w500a09828de3e799,3

Specify disk (enter its number): 7
selecting c5t500A09818DE3E799d5
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> partition


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> print
Current partition table (original):
Total disk cylinders available: 6480 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0       root    wm       0               0         (0/0/0)             0
  1       swap    wu       0               0         (0/0/0)             0
  2     backup    wu       0 - 6479      499.92GB    (6480/0/0) 1048412160
  3 unassigned    wm       0               0         (0/0/0)             0
  4 unassigned    wm       0               0         (0/0/0)             0
  5 unassigned    wm       0               0         (0/0/0)             0
  6        usr    wm       0 - 6479      499.92GB    (6480/0/0) 1048412160
  7 unassigned    wm       0               0         (0/0/0)             0

partition> 6
Part      Tag    Flag     Cylinders        Size            Blocks
  6        usr    wm       0 - 6479      499.92GB    (6480/0/0) 1048412160

Enter partition id tag[usr]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 0
Enter partition size[1048412160b, 6480c, 6479e, 511920.00mb, 499.92gb]: 499.92gb
partition> label
Ready to label disk, continue? yes

partition> quit


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> quit
# newfs /dev/rdsk/c5t500A09818DE3E799d5s6
newfs: /dev/rdsk/c5t500A09818DE3E799d5s6: No such file or directory
# newfs /dev/rdsk/c5t500A09818DE3E799d5s6
newfs: /dev/rdsk/c5t500A09818DE3E799d5s6: No such file or directory

So I went into /dev/rdskdirectory, and did an ls -lrt and could not find the selected lun:

Code:
bash-3.00# cd /dev/rdsk
You have new mail in /var/mail//root
bash-3.00# ls c5t500A09818DE3E799d5
c5t500A09818DE3E799d5: No such file or directory
bash-3.00# ls -lrt c5t500A09818DE3E799d5s6
c5t500A09818DE3E799d5s6: No such file or directory
bash-3.00#


Please can you help, what could have gone wrong?

Last edited by rbatte1; 08-10-2015 at 08:04 AM.. Reason: Replaced ICODE tags with CODE tags
# 2  
Old 08-10-2015
Try to run :
Code:
devfsadm

Then check if the device file exists.

Take a look at the system logs (/var/adm/messages) for hints if devices are created.
Are you using multipath of some kind ?
# 3  
Old 08-10-2015
Hi

thanks for the reply, the output of devfsadm is:

Code:
# devfsadm
devfsadm: line 80: configuration file /etc/devlink.tab has a missing tab -- ignoring
devfsadm: inst_sync failed for /etc/path_to_inst.58886: No space left on device
devfsadm: WARNING: failed to update /etc/path_to_inst
#

in the logs I can see the following:

Code:
bash-3.00# tail messages
Aug 10 10:45:13 nikira-db last message repeated 2 times
Aug 10 10:45:14 nikira-db usba: [ID 691482 kern.warning] WARNING: /pci@400/pci@1/pci@0/pci@7/pci@0/usb@0,1 (ohci1): Connecting device on port 2 failed
Aug 10 10:45:14 nikira-db ldc: [ID 717221 kern.warning] WARNING: ldc_open: (0x5) channel rx queue unconf failed
Aug 10 10:45:17 nikira-db last message repeated 3 times
Aug 10 10:45:17 nikira-db usba: [ID 691482 kern.warning] WARNING: /pci@400/pci@1/pci@0/pci@7/pci@0/usb@0,1 (ohci1): Connecting device on port 2 failed
Aug 10 10:45:18 nikira-db ldc: [ID 717221 kern.warning] WARNING: ldc_open: (0x5) channel rx queue unconf failed
Aug 10 10:45:21 nikira-db last message repeated 3 times
Aug 10 10:45:21 nikira-db usba: [ID 691482 kern.warning] WARNING: /pci@400/pci@1/pci@0/pci@7/pci@0/usb@0,1 (ohci1): Connecting device on port 2 failed
Aug 10 10:45:21 nikira-db ufs: [ID 845546 kern.notice] NOTICE: alloc: /: file system full
Aug 10 10:45:22 nikira-db ldc: [ID 717221 kern.warning] WARNING: ldc_open: (0x5) channel rx queue unconf failed
bash-3.00#

the entry related to file system is because of :

Code:
bash-3.00# df -h /
Filesystem             size   used  avail capacity  Mounted on
/dev/md/dsk/d10        9.8G   9.8G     0K   100%    /
bash-3.00#

# 4  
Old 08-10-2015
Assuming that you have a standard Solaris install, try adding these switches to devfsadm:

Code:
 
 # devfsadm -r / -p /etc/path_to_inst

then, as Peasant says, see if the device in /dev/rdsk is created.
This User Gave Thanks to hicksd8 For This Post:
# 5  
Old 08-10-2015
it looks like its there now:

Code:
bash-3.00# devfsadm -r / -p /etc/path_to_inst
devfsadm: line 80: configuration file /etc/devlink.tab has a missing tab -- ignoring
bash-3.00# cd /dev/rdsk
bash-3.00# ls -lrt c5t500A09818DE3E799d5s6
lrwxrwxrwx   1 root     root          99 Aug 10 10:44 c5t500A09818DE3E799d5s6 -> ../../devices/pci@400/pci@1/pci@0/pci@4/pci@0/pci@2/SUNW,qlc@0/fp@0,0/ssd@w500a09818de3e799,5:g,raw
bash-3.00#

Shall I create a file system now? Will I be able to newfs now?
# 6  
Old 08-10-2015
Go for it! Post any error that you get.
# 7  
Old 08-10-2015
You might want to clean up the root filesystem.

Being on 100% on / will lead to these (and worst) kind of problems.

Also, if you are using slices, consider starting from sector 1 instead of 0.
Dunno if UFS will honor that, but if you overwrite the first sector you will be in trouble.

Regards.
Peasant.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to extend file system

Hi, I have inherited this AIX 5.3 host. I'm unable to increase the /usr file system. It gives me this error. What needs to be done to remove this error? vios:/home/padmin$ chfs -a size=+128M /usr 0516-304 lquerypv: Unable to find device id 0002ef4df616f9690000000000000000 in the Device ... (14 Replies)
Discussion started by: dn888
14 Replies

2. Red Hat

Unable to mount a clone file system (NetApp)

Hi I have the following difficulty: the NetApp admin has clone one file system from one red hatserver and presented this cloned LUN into another redhat server. I can see the LUN as: fdisk -l Disk /dev/sda: 64.4 GB, 64424509440 bytes 255 heads, 63 sectors/track, 7832 cylinders Units =... (1 Reply)
Discussion started by: fretagi
1 Replies

3. HP-UX

Unable to create a tar file due to link

Hi, I am trying to tar a directory structure. but unable to do due to a symbolic link. Please help indomt@behpux $ tar -cvf test.tar /home/indomt a /home/indomt symbolic link to /dxdv/03/ap1dm1 Thanks (1 Reply)
Discussion started by: nag_sathi
1 Replies

4. Solaris

Solaris file system unable to use available space

Hi, The solaris filesystem /u01 shows available space as 100GB, and used space as 6 GB. The Problem is when iam trying to install some software or copy some files in this file system /u01 Iam unable to copy or install in this file system due to lack of space. ofcourse the software... (31 Replies)
Discussion started by: iris1
31 Replies

5. Red Hat

unable to open / create any file in vi

Hi, I am unable to create/open any file in vi editor for normal user, though using root I am able to create/open any file, using redhat 5.5, example vi test it showing nothing after entering command (9 Replies)
Discussion started by: manoj.solaris
9 Replies

6. UNIX for Advanced & Expert Users

Unable to clean up file system

Hi, Has anyone ever encountered the following scenario: I am working on a SUN server with solaris 10 installed and veritas managing the filesystem. One of the file systems has become full: df -kh /ossrc/dbdumps Filesystem size used avail capacity Mounted on... (6 Replies)
Discussion started by: eeidel
6 Replies

7. UNIX for Advanced & Expert Users

Using newfs to make file system on a sata disk using Acard adaptor

Hi All: I am using an adaptor between a 1TB SATA hard drive and solaris 8 box with 68 pin scsi. I use the format utility to partition the HD which works fine but when I use newfs, I get some errors. I will place them below. I have blocked and the error message is in red. Anybody got any... (1 Reply)
Discussion started by: mndavies
1 Replies

8. UNIX for Dummies Questions & Answers

How to create a new file system

Is there any URL or procedure to create a new file system on solaris 8/9/10.. (3 Replies)
Discussion started by: tintedwindow
3 Replies

9. AIX

User unable to create a file over 2 GB's in size

Hello, this is my first post. I have a user who cannot create a file over 2 GB's in size eventhough the FS is large file enabled and I added a special stanza in /etc/security/limits to allow an unlimited file size for this particular user (user1 - see below). ibm:/home/root (4062)#cat... (7 Replies)
Discussion started by: AIXtexas
7 Replies

10. SCO

create a new file system

I have just installed 5.0.7 of openserver and forgot to create a /u filesystem. I have a root filesystem that takes up most of the hard disc space and I want to reduce the size of that and create a /u. I have tried divvy amd mkdev fs but to no avail. Could somebody give me some idea as to how I... (2 Replies)
Discussion started by: rongrout
2 Replies
Login or Register to Ask a Question

Featured Tech Videos