ilk olarak sunucumuza eklenen diskin OS tarafından görünmesi için ya sunucunuzu reboot etmeniz ya da devfsadm komutunu çalıştırmamız gerekiyor. (Bu dediğim işlem sanal ortamda çalışan solaris sunucular için)
# ls /dev/rdsk/*s0
/dev/rdsk/c0t0d0s0 /dev/rdsk/c1t0d0s0 # sistemde tanımlı olan mevcut diskler.
# devfsadm
# ls /dev/rdsk/*s0Daha sonra format komutunu kullanarak yeni diskimizi formatalamamız gerekiyor.
/dev/rdsk/c0t0d0s0 /dev/rdsk/c1t0d0s0 #/dev/rdsk/c1t1d0s0 yeni eklenen disk işletim sistemi tarafından görülmüştür.
# formatBizim eklediğimiz disk “ 1 “ de gösterildiği için onu seçerek devam ediyoruz.
Searching for disks…done
AVAILABLE DISK SELECTIONS:
0. c1t0d0
/pci@0,0/pci1000,30@10/sd@0,0
1. c1t1d0
/pci@0,0/pci1000,30@10/sd@1,0
Specify disk (enter its number):
selecting c1t1d0 # Disk önceden formatlanmış olabilir.Eğer disk önceden formatlanmamışsa fdisk komutu ile yeni partition oluşturmamız gerekiyor. fdisk ile oluştururken type olarak “y” dediğimizde default Solaris partition oluşturulur.
[disk formatted]
format> fdiskDaha sonra partition oluşturmamız gerekiyor.
No fdisk table exists. The default partition for the disk is:
a 100% “SOLARIS System” partition
Type “y” to accept the default partition, otherwise type “n” to edit the
partition table.
y
format> partition
partition> print # mevcut partition listesini görmemizi sağlar.Eklediğimiz diskten tek bir partition oluşturacağım.
partition> 0daha sonra diske bir isim veriyoruz.
Part Tag Flag Cylinders Size Blocks
0 unassigned wm 0 0 (0/0/0) 0
Enter partition id tag[unassigned]:
Enter partition permission flags[wm]:
Enter new starting cyl[0]: 1
Enter partition size[0b, 0c, 1e, 0.00mb, 0.00gb]: 1019c
partition> label
Ready to label disk, continue? y
partition> quitŞimdi file sistemini oluşturuyoruz.
format> quit
#
# newfs /dev/rdsk/c1t1d0s0Dosya sisteminin temiz olduğunu kontrol etmek için;
newfs: construct a new file system /dev/rdsk/c1t1d0s0: (y/n)? y
/dev/rdsk/c1t1d0s0: 4173824 sectors in 1019 cylinders of 128 tracks, 32 sectors
2038.0MB in 45 cyl groups (23 c/g, 46.00MB/g, 11264 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 94272, 188512, 282752, 376992, 471232, 565472, 659712, 753952, 848192,
3298432, 3392672, 3486912, 3581152, 3675392, 3769632, 3863872, 3958112,
4052352, 4146592
# fsck /dev/rdsk/c1t1d0s0Şimdi de diski reboot sonrası mount olması için vfstab a eklememiz gerekiyor.
** /dev/rdsk/c1t1d0s0
** Last Mounted on
** Phase 1 – Check Blocks and Sizes
** Phase 2 – Check Pathnames
** Phase 3a – Check Connectivity
** Phase 3b – Verify Shadows/ACLs
** Phase 4 – Check Reference Counts
** Phase 5 – Check Cylinder Groups
2 files, 9 used, 2020758 free (14 frags, 252593 blocks, 0.0% fragmentation)
vi /etv/vfstabmout edeceğimiz disk2 alanını oluşturup elle mount edelim.
/dev/dsk/c1t1d0s0 /dev/rdsk/c1t1d0s0 /disk2 ufs 2 yes –
# mkdir /disk2
# mount /disk2
# df -h /disk2
Filesystem size used avail capacity Mounted on
/dev/dsk/c1t1d0s0 1.9G 2.0M 1.9G 1% /disk2
Hiç yorum yok:
Yorum Gönder