You are here

Part 10. Sun Cluster 3.2: Grow a cluster filesytem(SVM)

[root@vm1:/]# clrg status (12-02 18:44)

=== Cluster Resource Groups ===

Group Name Node Name Suspended Status
---------- --------- --------- ------
NFSrg vm1 No Online
vm2 No Offline
vm3 No Offline

APACHE1rg vm2 No Offline
vm1 No Offline
vm3 No Online

APA2-rg vm1:zone1 No Offline
vm2:zone1 No Offline

Working!.

No we need to grow a FS in the APACHE1rg, so first we are going to add a disk to the metaset and then grow the FS:

First we add the new iscsi lun in the 3 nodes:

[root@vm2:/]# iscsiadm add static-config iqn.1986-03.com.sun:02:784f8336-bcb4-c4a3-ef11-f939cac7767c,19.132.168.180:3260
[root@vm2:/]# devfsadm -c iscsi (12-02 13:08)
[root@vm2:/]# dmesg
Dec 2 13:06:48 vm2 scsi: [ID 799468 kern.info] sd11 at iscsi0: name 0000iqn.1986-03.com.sun%3A02%3A784f8336-bcb4-c4a3-ef11-f939cac7767c0001,0, bus address 0000iqn.1986-03.com.sun%3A02%3A784f8336-bcb4-c4a3-ef11-f939cac7767c0001,0
Dec 2 13:06:48 vm2 genunix: [ID 936769 kern.info] sd11 is /iscsi/disk@0000iqn.1986-03.com.sun%3A02%3A784f8336-bcb4-c4a3-ef11-f939cac7767c0001,0
Dec 2 13:06:49 vm2 genunix: [ID 408114 kern.info] /iscsi/disk@0000iqn.1986-03.com.sun%3A02%3A784f8336-bcb4-c4a3-ef11-f939cac7767c0001,0 (sd11) online

Ok, so now that we have the new disk, let's create the did global device:

[root@vm2:/]# cldev populate (12-02 13:08)
Configuring DID devices
did instance 13 created.
did subpath vm2:/dev/rdsk/c1t11d0 created for instance 13.
cldev: (C659924) Could not open "/dev/rdsk/c0t1d0s2" to verfiy device ID - Device busy.
Configuring the /dev/global directory (global devices)
obtaining access to all attached disks

Add the device to our metaset:

[root@vm2:/]# metaset -s otros2 (12-02 13:11)

Set name = otros2, Set number = 5

Host Owner
vm1
vm2
vm3

Driv Dbase

d6 Yes

[root@vm2:/]# metaset -s otros2 -a /dev/did/dsk/d13 (12-02 13:12)
Proxy command to: vm1
[root@vm2:/]# metaset -s otros2 (12-02 13:13)

Set name = otros2, Set number = 5

Host Owner
vm1
vm2
vm3

Drive Dbase

d6 Yes

d13 Yes

we are ready to grow our FS: /global/apache and the md is /dev/md/otros2/dsk/d100
[root@vm1:/]# metastat -s otros2 -p (12-02 19:09)
otros2/d200 -p /dev/md/otros2/rdsk/d1 -o 204864 -b 122880
otros2/d1 -m otros2/d10 1
otros2/d10 1 1 /dev/did/rdsk/d6s0
otros2/d100 -p /dev/md/otros2/rdsk/d1 -o 32 -b 204800
[root@vm1:/]# metattach -s otros2 d10 /dev/did/dsk/d13s0 (12-02 19:11)
otros2/d10: component is attached
[root@vm1:/]# metastat -s otros2 -p (12-02 19:11)
otros2/d200 -p /dev/md/otros2/rdsk/d1 -o 204864 -b 122880
otros2/d1 -m otros2/d10 1
otros2/d10 2 1 /dev/did/rdsk/d6s0 \n 1 /dev/did/rdsk/d13s0
otros2/d100 -p /dev/md/otros2/rdsk/d1 -o 32 -b 204800

Now we can grow our softpartition:

[root@vm1:/]# metattach -s otros2 d100 +500mb (12-02 19:13)
otros2/d100: Soft Partition has been grown

Take a look at the size before we grow to compair:
[root@vm1:/]#bdf
/dev/md/otros2/dsk/d100
93M 1.0M 83M 2% /global/apache
/dev/md/otros2/dsk/d200
56M 1.0M 50M 3% /global/dns
/dev/zvol/dsk/rpool/lvtest
480M 5.8M 426M 2% /global/.devices/node@2

[root@vm1:/]# growfs -M /global/apache /dev/md/otros2/rdsk/d100 (12-02 19:15)
/dev/md/otros2/rdsk/d100: 1228800 sectors in 600 cylinders of 64 tracks, 32 sectors
600.0MB in 38 cyl groups (16 c/g, 16.00MB/g, 7680 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 32832, 65632, 98432, 131232, 164032, 196832, 229632, 262432, 295232,
918432, 951232, 984032, 1016832, 1049632, 1082432, 1115232, 1148032, 1180832,
1213632
/dev/md/otros2/dsk/d100
564M 1.0M 553M 1% /global/apache
/dev/md/otros2/dsk/d200
56M 1.0M 50M 3% /global/dns
/dev/zvol/dsk/rpool/lvtest
480M 5.8M 426M 2% /global/.devices/node@2

Unix Systems: 

Add new comment

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
By submitting this form, you accept the Mollom privacy policy.
Error | HP-UX Tips & Tricks Site

Error

Error message

  • Warning: Cannot modify header information - headers already sent by (output started at /homepages/37/d228974590/htdocs/includes/common.inc:2567) in drupal_send_headers() (line 1207 of /homepages/37/d228974590/htdocs/includes/bootstrap.inc).
  • PDOException: SQLSTATE[42000]: Syntax error or access violation: 1142 INSERT command denied to user 'dbo229817041'@'217.160.155.192' for table 'watchdog': INSERT INTO {watchdog} (uid, type, message, variables, severity, link, location, referer, hostname, timestamp) VALUES (:db_insert_placeholder_0, :db_insert_placeholder_1, :db_insert_placeholder_2, :db_insert_placeholder_3, :db_insert_placeholder_4, :db_insert_placeholder_5, :db_insert_placeholder_6, :db_insert_placeholder_7, :db_insert_placeholder_8, :db_insert_placeholder_9); Array ( [:db_insert_placeholder_0] => 0 [:db_insert_placeholder_1] => cron [:db_insert_placeholder_2] => Attempting to re-run cron while it is already running. [:db_insert_placeholder_3] => a:0:{} [:db_insert_placeholder_4] => 4 [:db_insert_placeholder_5] => [:db_insert_placeholder_6] => http://hpuxtips.es/?q=content/part-10-sun-cluster-32-grow-cluster-filesytemsvm [:db_insert_placeholder_7] => [:db_insert_placeholder_8] => 54.162.3.15 [:db_insert_placeholder_9] => 1503351616 ) in dblog_watchdog() (line 157 of /homepages/37/d228974590/htdocs/modules/dblog/dblog.module).
The website encountered an unexpected error. Please try again later.